Make WordPress Core

Ticket #26438: 26438.patch

File 26438.patch, 877 bytes (added by ocean90, 11 years ago)
  • src/wp-includes/js/customize-base.js

     
    255255
    256256                /**
    257257                 * Internal recursive comparison function for `isEqual`.
    258                  * Copied from Underscore.js.
     258                 * Modified version from Underscore.js v1.5.2.
    259259                 */
    260260                /* jshint ignore:start */
    261261                _eq: function(a, b, aStack, bStack) {
    262262                        if (a === b) return a !== 0 || 1 / a == 1 / b;
    263263                        if (a == null || b == null) return a === b;
    264264
    265                         var className = toString.call(a);
    266                         if (className != toString.call(b)) return false;
     265                        var className = Object.prototype.toString.call(a);
     266                        if (className != Object.prototype.toString.call(b)) return false;
    267267                        switch (className) {
    268268                                case '[object String]':
    269269                                        return a == String(b);