You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like you removed these methods somewhere along the way but PF Extensions uses them.
/**
* Stringify a JSON hash so can save in a cookie or db-field
*/
, encodeJSON: function (json) {
var local = window.JSON || {};
return (local.stringify || stringify)(json);
function stringify(h) {
var D = [], i = 0, k, v, t // k = key, v = value
, a = $.isArray(h)
;
for (k in h) {
v = h[k];
t = typeof v;
if (t == 'string') // STRING - add quotes
v = '"' + v + '"';
else if (t == 'object') // SUB-KEY - recurse into it
v = parse(v);
D[i++] = (!a ? '"' + k + '":' : '') + v;
}
return (a ? '[' : '{') + D.join(',') + (a ? ']' : '}');
}
}
/**
* Convert stringified JSON back to a hash object
* @see $.parseJSON(), adding in jQuery 1.4.1
*/
, decodeJSON: function (str) {
try {
return JSON.parse(str);
} catch (e) {
return {};
}
}
The text was updated successfully, but these errors were encountered:
It looks like you removed these methods somewhere along the way but PF Extensions uses them.
The text was updated successfully, but these errors were encountered: