vendor/assets/javascripts/webshims/shims/dom-extend.js in webshims-rails-1.11.1 vs vendor/assets/javascripts/webshims/shims/dom-extend.js in webshims-rails-1.11.2

- old
+ new

@@ -4,11 +4,11 @@ var supportHrefNormalized = !('hrefNormalized' in $.support) || $.support.hrefNormalized; var supportGetSetAttribute = !('getSetAttribute' in $.support) || $.support.getSetAttribute; webshims.assumeARIA = supportGetSetAttribute || Modernizr.canvas || Modernizr.video || Modernizr.boxsizing; if($('<input type="email" />').attr('type') == 'text' || $('<form />').attr('novalidate') === "" || ('required' in $('<input />')[0].attributes)){ - webshims.error("IE browser modes are busted in IE10. Please test your HTML/CSS/JS with a real IE version or at least IETester or similiar tools"); + webshims.error("IE browser modes are busted in IE10+. Please test your HTML/CSS/JS with a real IE version or at least IETester or similiar tools"); } if(!$.parseHTML){ webshims.error("Webshims needs jQuery 1.8+ to work properly. Please update your jQuery version or downgrade webshims."); } @@ -557,11 +557,11 @@ this.width = docObserve.getWidth(); setInterval(this.test, 600); $(this.test); webshims.ready('WINDOWLOAD', this.test); $(document).on('updatelayout', this.handler); - $(window).bind('resize', this.handler); + $(window).on('resize', this.handler); (function(){ var oldAnimate = $.fn.animate; var animationTimer; $.fn.animate = function(){ @@ -579,10 +579,17 @@ webshims.docObserve = function(){ webshims.ready('DOM', function(){ docObserve.start(); + if($.support.boxSizing == null){ + $(function(){ + if($.support.boxSizing){ + docObserve.handler({type: 'boxsizing'}); + } + }); + } }); }; return function(nativeElem, shadowElem, opts){ if(nativeElem && shadowElem){ opts = opts || {}; @@ -739,11 +746,16 @@ }, defineNodeNameProperty: function(nodeName, prop, descs){ havePolyfill[prop] = true; if(descs.reflect){ - webshims.propTypes[descs.propType || 'standard'](descs, prop); + if(descs.propType && !webshims.propTypes[descs.propType]){ + webshims.error('could not finde propType '+ descs.propType); + } else { + webshims.propTypes[descs.propType || 'standard'](descs, prop); + } + } ['prop', 'attr', 'removeAttr'].forEach(function(type){ var desc = descs[type]; if(desc){ @@ -925,11 +937,11 @@ var currentLang; var shortLang; var notLocal = /:\/\/|^\.*\//; var loadRemoteLang = function(data, lang, options){ var langSrc; - if(lang && options && $.inArray(lang, options.availabeLangs || []) !== -1){ + if(lang && options && $.inArray(lang, options.availableLangs || options.availabeLangs || []) !== -1){ data.loading = true; langSrc = options.langSrc; if(!notLocal.test(langSrc)){ langSrc = webshims.cfg.basePath+langSrc; } @@ -1084,6 +1096,6 @@ addRole(footer, 'contentinfo'); } } }); -})(webshims.$, document); +})(webshims.$, document); \ No newline at end of file