Use _.isPlainObject over $.isPlainObject
This commit is contained in:
1 parent
0827ae10f2
commit
5c83aef52d
1 file changed
+2
-2
@@ -252,8 +252,8 @@ $(function() {
|
||||
while (unprocessedViewModels.length > 0){
|
||||
var viewModel = unprocessedViewModels.shift();
|
||||
|
||||
// wrap anything not object related into an object (use jQuery since lodash returns invalid results)
|
||||
if(!$.isPlainObject(viewModel)) {
|
||||
// wrap anything not object related into an object
|
||||
if(!_.isPlainObject(viewModel)) {
|
||||
viewModel = {
|
||||
construct: (_.isArray(viewModel)) ? viewModel[0] : viewModel,
|
||||
dependencies: viewModel[1] || [],
|
||||
|
||||
Reference in new issue
Block a user