Only bind additional view models from plugins if they specify a target to bind to
This commit is contained in:
1 parent
254145da22
commit
a677ffc90e
1 file changed
+4
@@ -441,6 +441,10 @@ $(function() {
|
||||
|
||||
// apply bindings and signal startup
|
||||
_.each(additionalViewModels, function(additionalViewModel) {
|
||||
if (additionalViewModel[1] === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (additionalViewModel[0].hasOwnProperty("onBeforeBinding")) {
|
||||
additionalViewModel[0].onBeforeBinding();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user