vendor/assets/javascripts/webshims/shims/combos/25.js in webshims-rails-1.11.1 vs vendor/assets/javascripts/webshims/shims/combos/25.js in webshims-rails-1.11.2

- old
+ new

@@ -1259,11 +1259,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."); } @@ -1812,11 +1812,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(){ @@ -1834,10 +1834,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 || {}; @@ -1994,11 +2001,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){ @@ -2180,11 +2192,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; } @@ -2340,10 +2352,9 @@ } } }); })(webshims.$, document); - webshims.register('filereader', function( $, webshims ){ "use strict"; /** * Code is based on https://github.com/Jahdrien/FileReader * \ No newline at end of file