diff -r 2f6f6f7551ca -r 32102edaa81b web/wp-admin/js/utils.dev.js --- a/web/wp-admin/js/utils.dev.js Thu Sep 16 15:45:36 2010 +0000 +++ b/web/wp-admin/js/utils.dev.js Mon Nov 19 18:26:13 2012 +0100 @@ -1,47 +1,25 @@ // utility functions -function convertEntities(o) { - var c, v; - c = function(s) { - if (/&[^;]+;/.test(s)) { - var e = document.createElement("div"); - e.innerHTML = s; - return !e.firstChild ? s : e.firstChild.nodeValue; - } - return s; - } - - if ( typeof o === 'string' ) { - return c(o); - } else if ( typeof o === 'object' ) { - for (v in o) { - if ( typeof o[v] === 'string' ) { - o[v] = c(o[v]); - } - } - } - return o; -} var wpCookies = { // The following functions are from Cookie.js class in TinyMCE, Moxiecode, used under LGPL. - each : function(o, cb, s) { + each : function(obj, cb, scope) { var n, l; - if (!o) + if ( !obj ) return 0; - s = s || o; + scope = scope || obj; - if (typeof(o.length) != 'undefined') { - for (n=0, l = o.length; n