Use _.isPlainObject over $.isPlainObject
This commit is contained in:
parent
0827ae10f2
commit
5c83aef52d
1 changed files with 2 additions and 2 deletions
|
|
@ -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] || [],
|
||||
|
|
|
|||
Loading…
Reference in a new issue