Export to GitHub

jquery-jstore - issue #13

engine.set() Exceptions


Posted on Jul 2, 2009 by Helpful Lion

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'));  
})

}) });

Comment #1

Posted on Aug 12, 2009 by Quick Bird

This problem will be fixed in the next milestone, which will store all objects as JSON.

Comment #2

Posted on Aug 14, 2009 by Quick Bird

Fixed in release 1.2

Status: Fixed

Labels:
Type-Defect Priority-Medium