updroid / jquery-jstore

Automatically exported from code.google.com/p/jquery-jstore
1 stars 0 forks source link

engine.set() Exceptions #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. engine.set throw exception if there are space inside object keys
2. Simple routine below

This object can be stored:
{'one':1,'two':2}

This object can't be stored becuase space:
{'one':1,'t o':2}

Sample code:
jQuery.jStore.ready(function(engine){
  jQuery.jStore.flashReady(function(){

    engine.ready(function(){
        alert('This works\nit\'s without space inside keys');
        var tmp = {'one':1,'two':2};
        engine.set('tmp',tmp);
        alert('Type of stored object: '+engine.get('tmp'));

        alert('This don\'t works\nTHIS OBJECT HAVE SPACE INSIDE KEYS');
        var tmp2 = {'one':1,'t o':2};
        engine.set('tmp2',tmp2);
        alert('Type of stored object: '+engine.get('tmp2'));  
    })
  })
});  

Original issue reported on code.google.com by cesare.m...@gmail.com on 2 Jul 2009 at 2:46

GoogleCodeExporter commented 9 years ago
This problem will be fixed in the next milestone, which will store all objects 
as JSON.

Original comment by gars...@gmail.com on 12 Aug 2009 at 9:43

GoogleCodeExporter commented 9 years ago
Fixed in release 1.2

Original comment by gars...@gmail.com on 14 Aug 2009 at 3:04