fix formatting and set Ext.USE_NATIVE_JSON to true
This commit is contained in:
parent
031f75a2bb
commit
a3d98029f9
|
@ -61,21 +61,31 @@ Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
|
|||
|
||||
keys: function(obj) {
|
||||
var keys = [];
|
||||
for (i in obj) if (obj.hasOwnProperty(i))
|
||||
for (var i in obj) if (obj.hasOwnProperty(i))
|
||||
{
|
||||
keys.push(i);
|
||||
}
|
||||
return keys;
|
||||
},
|
||||
|
||||
values: function(obj) {
|
||||
var values = [];
|
||||
for (var i in obj) {
|
||||
if (obj.hasOwnProperty(i)) {
|
||||
values.push(obj[i]);
|
||||
}
|
||||
}
|
||||
return values;
|
||||
},
|
||||
|
||||
splat: function(obj) {
|
||||
var type = Ext.type(obj);
|
||||
return (type) ? ((type != 'array') ? [obj] : obj) : [];
|
||||
}
|
||||
});
|
||||
Ext.getKeys = Ext.keys;
|
||||
|
||||
Ext.BLANK_IMAGE_URL = '/images/s.gif';
|
||||
Ext.USE_NATIVE_JSON = true;
|
||||
})();
|
||||
|
||||
(function() {
|
||||
|
|
Loading…
Reference in New Issue