Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion knockout.mapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,11 @@
};

function canHaveProperties(object) {
if (object === null) {
return false;
}
var type = exports.getType(object);
return ((type === "object") || (type === "array")) && (object !== null);
return (type === "object") || (type === "array");
}

// Based on the parentName, this creates a fully classified name of a property
Expand Down