Closed nurfgun closed 7 years ago
FIREBASE WARNING: Exception was thrown by user callback. TypeError: s.key is not a function at http://localhost:8888/schoolbelle-board/bower_components/firebase-util/dist/firebase-util.js:1876:16
I was using Scroll with Normalized collection.
hasChild: function(snaps, key) { return util.contains(snaps, function(s) { return s.key() === key; }); }, getChildSnaps: function(snapsArray, recordId) { return util.filter(snapsArray, function(s) { return s.key() === recordId; }); },
should it be changed to 's.key' without parenthesis?
ps. thanks for your effort! I'm benefiting greatly from your work 👍
Yeah! Now the key is retrieved as a property instead of a function. Remove the parenthesis s.key === key , it should work!
s.key === key
Regards!
I was using Scroll with Normalized collection.
should it be changed to 's.key' without parenthesis?
ps. thanks for your effort! I'm benefiting greatly from your work 👍