Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion js/ReactFireMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ var ReactFireMixin;
/*************/
/* Returns true if the inputted object is a JavaScript array */
_isArray: function(obj) {
return (obj && typeof obj === "object" && obj instanceof Array);
return Object.prototype.toString.call(obj) === "[object Array]";
},

/* Converts a Firebase object to a JavaScript array */
Expand Down
2 changes: 1 addition & 1 deletion js/ReactFireMixin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.