locks / ember-localstorage-adapter

Name says it all.
MIT License
465 stars 156 forks source link

'getItem' property error in IE 10? #17

Open sidunn opened 11 years ago

sidunn commented 11 years ago

I am still an Ember.js noob, so I'm not sure what needs to be done to make the Emberjs.com ToDoMVC application work with Internet Explorer 10. It took me numerous tries to finally make the program work with Chrome and Firefox after following each step in the Getting Started section on the Ember.js site. I built and rebuilt the ToDoMVC code from scratch at least three different times and spent a long time debugging. The app continues to work fine now with Firefox and Google Chrome. But it still doesn't work with Internet Explorer 10. Haven't tried an earlier version of IE yet.

Maybe somebody has a clue about what I am missing or overlooking or ???

Thanks.

--------------------------
DEBUG: Ember.VERSION : 1.0.0-rc.3 
DEBUG: Handlebars.VERSION : 1.0.0-rc.3 
DEBUG: jQuery.VERSION : 1.9.1 
DEBUG: ------------------------------- 
SCRIPT5007: Unable to get property 'getItem' of undefined or null reference 
local_storage_adapter.js, line 166 character 5

-------

*\ local_storage_adapter.js Line 166 is the shown below, under _loadData:

// private

_getNamespace: function() {
return this.namespace || 'DS.LSAdapter';
},

_loadData: function() {
var storage = localStorage.getItem(this._getNamespace());
this._data = storage ? JSON.parse(storage) : {};
},

etc. ***
sidunn commented 11 years ago

I accidentally closed the issue. I've re-opened it now.

kurko commented 10 years ago

@sidunn are you still around? We merged a bunch of changes into master. Is this issue still relevant?

sidunn commented 10 years ago

I'm still around but not doing much with Ember. Maybe I'll find some time to check it out again in the next few days. Thanks.

On Thu, Feb 13, 2014 at 7:07 AM, Alexandre de Oliveira < notifications@github.com> wrote:

@sidunn https://github.com/sidunn are you still around? We merged a bunch of changes into master. Is this issue still relevant?

Reply to this email directly or view it on GitHubhttps://github.com/rpflorence/ember-localstorage-adapter/issues/17#issuecomment-34975940 .

basepack commented 10 years ago

Hi,

I am getting the the same error on setItem function. Look at the screenshot: image

I was doing a:

var record = this.store.createRecord('cartitem', {
     // fields
});
record.save();

Any news on this one?

kurko commented 9 years ago

I don't think anyone will fix this unless they're blocked by this. Could you create a PR?.