-
7 Dec 2011 10:19 AM #1
Answered: Store findBy always returns -1
Answered: Store findBy always returns -1
Hi,
why is the findBy method always returning -1, which means no record could be found. I think I'm doing something wrong :/
code snippet:
This should always return the index of the first element. What is the proper way of using the findBy method?Code:var index = store.findBy(function(record,id){ return true; });
-
Best Answer Posted by testvogel
Fixed it by myself. The 'store' variable was not properly initialized :/
-
7 Dec 2011 10:33 AM #2
Fixed it by myself. The 'store' variable was not properly initialized :/


Reply With Quote