PDA

View Full Version : How to update localstorage?



ssdesign
29 Jul 2010, 12:04 AM
From the Solitaire example:


this.view.get('moves').update(text);

When I try to do the same


var t = myStore.getAt(3);
alert(t.get('name')); // WORKS - alerts the value of 'name' which is 'Some Text'
t.get('name').update('GGGGGG'); // Does not work

I get this error:
Uncaught TypeError: Object Some Text has no method 'update'

evant
29 Jul 2010, 6:35 PM
http://www.sencha.com/deploy/touch/docs/?class=Ext.data.Model

You want the set method, don't just make methods up!