Use _.isPlainObject over $.isPlainObject

This commit is contained in:
Paul de Vries 2016-03-04 18:29:05 +00:00
parent 0827ae10f2
commit 5c83aef52d

View file

@ -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] || [],