vendor/assets/javascripts/webshims/shims/es5.js in webshims-rails-1.14.3 vs vendor/assets/javascripts/webshims/shims/es5.js in webshims-rails-1.14.4
- old
+ new
@@ -1406,14 +1406,14 @@
advancedObjectProperties = false;
}
foo = null;
})();
}
+ var support = webshims.support;
+ support.objectAccessor = !!((advancedObjectProperties || (Object.prototype.__defineGetter__ && Object.prototype.__lookupSetter__)));
+ support.advancedObjectProperties = advancedObjectProperties;
- Modernizr.objectAccessor = !!((advancedObjectProperties || (Object.prototype.__defineGetter__ && Object.prototype.__lookupSetter__)));
- Modernizr.advancedObjectProperties = advancedObjectProperties;
-
if((!advancedObjectProperties || !Object.create || !Object.defineProperties || !Object.getOwnPropertyDescriptor || !Object.defineProperty)){
var call = Function.prototype.call;
var prototypeOfObject = Object.prototype;
var owns = call.bind(prototypeOfObject.hasOwnProperty);
@@ -1422,10 +1422,10 @@
var f = function(){};
f.prototype = proto;
o = new f();
- if(!no__proto__ && !('__proto__' in o) && !Modernizr.objectAccessor){
+ if(!no__proto__ && !('__proto__' in o) && !support.objectAccessor){
o.__proto__ = proto;
}
if(props){
shims.defineProperties(o, props);