Input not being initialized with insertUI if beforeStart/afterEnd

This commit is contained in:
Joe Cheng
2016-07-05 11:06:25 -07:00
parent 8b21a87175
commit 177a2a8a1e
6 changed files with 18 additions and 10 deletions

View File

@@ -39,10 +39,10 @@ exports.renderContent = function(el, content, where="replace") {
}
exports.renderHtml(html, el, dependencies, where);
exports.initializeInputs(el);
var scope = el;
if (where === "replace") {
exports.initializeInputs(el);
exports.bindAll(el);
} else {
var $parent = $(el).parent();
@@ -53,6 +53,7 @@ exports.renderContent = function(el, content, where="replace") {
if ($grandparent.length > 0) scope = $grandparent;
}
}
exports.initializeInputs(scope);
exports.bindAll(scope);
}
};