vendor/assets/javascripts/webshims/minified/shims/combos/12.js in webshims-rails-0.4.2 vs vendor/assets/javascripts/webshims/minified/shims/combos/12.js in webshims-rails-0.4.3
- old
+ new
@@ -4,21 +4,21 @@
("attr"==b&&!0===e&&(e=d),l=g.set.call(a,e));if("value"==d)g.isVal=h}else l=s(a,d,e,o,A);if((e!==p||"removeAttr"===B)&&f[v]&&f[v][d]){var u;u="removeAttr"==B?!1:"prop"==B?!!e:!0;f[v][d].forEach(function(d){if(!d.only||(d.only="prop"==b)||"attr"==d.only&&"prop"!=b)d.call(a,e,u,j?"val":B,b)})}return l};u[b]=function(a,d,e){i[a]||(i[a]={});i[a][d]||(i[a][d]={});var o=i[a][d][b],f=function(a,c,v){return c&&c[a]?c[a]:v&&v[a]?v[a]:"prop"==b&&"value"==d?function(a){return e.isVal?E(this,d,a,!1,0===arguments.length):
r[b](this,d,a)}:"prop"==b&&"value"==a&&e.value.apply?function(a){var j=r[b](this,d);j&&j.apply&&(j=j.apply(this,arguments));return j}:function(a){return r[b](this,d,a)}};i[a][d][b]=e;if(e.value===p){if(!e.set)e.set=e.writeable?f("set",e,o):h.cfg.useStrict&&"prop"==d?function(){throw d+" is readonly on "+a;}:c.noop;if(!e.get)e.get=f("get",e,o)}["value","get","set"].forEach(function(a){e[a]&&(e["_sup"+a]=f(a,o))})}});var l=!c.browser.msie||8<parseInt(c.browser.version,10),D=function(){var b=h.getPrototypeOf(m.createElement("foobar")),
a=Object.prototype.hasOwnProperty;return function(d,c,o){var f=m.createElement(d),j=h.getPrototypeOf(f);if(l&&j&&b!==j&&(!f[c]||!a.call(f,c))){var s=f[c];o._supvalue=function(){return s&&s.apply?s.apply(this,arguments):s};j[c]=o.value}else o._supvalue=function(){var a=C(this,"propValue");return a&&a[c]&&a[c].apply?a[c].apply(this,arguments):a&&a[c]},t.extendValue(d,c,o.value);o.value._supvalue=o._supvalue}}(),t=function(){var b={};h.addReady(function(a,d){var j={},s=function(b){j[b]||(j[b]=c(a.getElementsByTagName(b)),
d[0]&&c.nodeName(d[0],b)&&(j[b]=j[b].add(d)))};c.each(b,function(a,b){s(a);!b||!b.forEach?h.warn("Error: with "+a+"-property. methods: "+b):b.forEach(function(b){j[a].each(b)})});j=null});var a,d=c([]),e=function(d,e){b[d]?b[d].push(e):b[d]=[e];c.isDOMReady&&(a||c(m.getElementsByTagName(d))).each(e)};return{createTmpCache:function(b){c.isDOMReady&&(a=a||c(m.getElementsByTagName(b)));return a||d},flushTmpCache:function(){a=null},content:function(a,b){e(a,function(){var a=c.attr(this,b);null!=a&&c.attr(this,
b,a)})},createElement:function(a,b){e(a,b)},extendValue:function(a,b,d){e(a,function(){c(this).each(function(){C(this,"propValue",{})[b]=this[b];this[b]=d})})}}}(),y=function(b,a){if(b.defaultValue===p)b.defaultValue="";if(!b.removeAttr)b.removeAttr={value:function(){b[a||"prop"].set.call(this,b.defaultValue);b.removeAttr._supvalue.call(this)}};if(!b.attr)b.attr={}};c.extend(h,{getID:function(){var b=(new Date).getTime();return function(a){var a=c(a),d=a.attr("id");d||(b++,d="ID-"+b,a.attr("id",d));
-return d}}(),extendUNDEFProp:function(b,a){c.each(a,function(a,c){a in b||(b[a]=c)})},createPropDefault:y,data:C,moveToFirstEvent:function(){var b=c._data?"_data":"data";return function(a,d,e){if((a=(c[b](a,"events")||{})[d])&&1<a.length)d=a.pop(),e||(e="bind"),"bind"==e&&a.delegateCount?a.splice(a.delegateCount,0,d):a.unshift(d)}}(),addShadowDom:function(){var b,a,d,e,f={init:!1,start:function(){if(!this.init)this.init=!0,this.height=c(m).height(),this.width=c(m).width(),setInterval(function(){var a=
-c(m).height(),b=c(m).width();if(a!=f.height||b!=f.width)f.height=a,f.width=b,e({type:"docresize"})},400)}};e=function(e){clearTimeout(b);b=setTimeout(function(){if("resize"==e.type){var b=c(k).width(),s=c(k).width();if(s==a&&b==d)return;a=s;d=b;f.height=c(m).height();f.width=c(m).width()}c.event.trigger("updateshadowdom")},40)};c(k).bind("resize",e);c.event.customEvent.updateshadowdom=!0;return function(a,b,d){d=d||{};a.jquery&&(a=a[0]);b.jquery&&(b=b[0]);var v=c.data(a,x)||c.data(a,x,{}),e=c.data(b,
-x)||c.data(b,x,{}),g={};if(d.shadowFocusElement){if(d.shadowFocusElement){if(d.shadowFocusElement.jquery)d.shadowFocusElement=d.shadowFocusElement[0];g=c.data(d.shadowFocusElement,x)||c.data(d.shadowFocusElement,x,g)}}else d.shadowFocusElement=b;v.hasShadow=b;g.nativeElement=e.nativeElement=a;g.shadowData=e.shadowData=v.shadowData={nativeElement:a,shadowElement:b,shadowFocusElement:d.shadowFocusElement};d.shadowChilds&&d.shadowChilds.each(function(){C(this,"shadowData",e.shadowData)});if(d.data)g.shadowData.data=
-e.shadowData.data=v.shadowData.data=d.data;d=null;f.start()}}(),propTypes:{standard:function(b){y(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,""+a)},get:function(){return b.attr.get.call(this)||b.defaultValue}}},"boolean":function(b){y(b);if(!b.prop)b.prop={set:function(a){a?b.attr.set.call(this,""):b.removeAttr.value.call(this)},get:function(){return null!=b.attr.get.call(this)}}},src:function(){var b=m.createElement("a");b.style.display="none";return function(a,d){y(a);if(!a.prop)a.prop=
-{set:function(b){a.attr.set.call(this,b)},get:function(){var a=this.getAttribute(d),f;if(null==a)return"";b.setAttribute("href",a+"");if(!c.support.hrefNormalized){try{c(b).insertAfter(this),f=b.getAttribute("href",4)}catch(g){f=b.getAttribute("href",4)}c(b).detach()}return f||b.href}}}}(),enumarated:function(b){y(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,a)},get:function(){var a=(b.attr.get.call(this)||"").toLowerCase();if(!a||-1==b.limitedTo.indexOf(a))a=b.defaultValue;return a}}}},
-reflectProperties:function(b,a){"string"==typeof a&&(a=a.split(q));a.forEach(function(a){h.defineNodeNamesProperty(b,a,{prop:{set:function(b){c.attr(this,a,b)},get:function(){return c.attr(this,a)||""}}})})},defineNodeNameProperty:function(b,a,d){n[a]=!0;if(d.reflect)h.propTypes[d.propType||"standard"](d,a);["prop","attr","removeAttr"].forEach(function(e){var f=d[e];f&&(f="prop"===e?c.extend({writeable:!0},f):c.extend({},f,{writeable:!0}),u[e](b,a,f),"*"!=b&&h.cfg.extendNative&&"prop"==e&&f.value&&
-c.isFunction(f.value)&&D(b,a,f),d[e]=f)});d.initAttr&&t.content(b,a);return d},defineNodeNameProperties:function(b,a,d,c){for(var f in a)!c&&a[f].initAttr&&t.createTmpCache(b),d&&(a[f][d]?h.log("override: "+b+"["+f+"] for "+d):(a[f][d]={},["value","set","get"].forEach(function(b){b in a[f]&&(a[f][d][b]=a[f][b],delete a[f][b])}))),a[f]=h.defineNodeNameProperty(b,f,a[f]);c||t.flushTmpCache();return a},createElement:function(b,a,d){var f;c.isFunction(a)&&(a={after:a});t.createTmpCache(b);a.before&&t.createElement(b,
-a.before);d&&(f=h.defineNodeNameProperties(b,d,!1,!0));a.after&&t.createElement(b,a.after);t.flushTmpCache();return f},onNodeNamesPropertyModify:function(b,a,d,e){"string"==typeof b&&(b=b.split(q));c.isFunction(d)&&(d={set:d});b.forEach(function(b){f[b]||(f[b]={});"string"==typeof a&&(a=a.split(q));d.initAttr&&t.createTmpCache(b);a.forEach(function(a){f[b][a]||(f[b][a]=[],n[a]=!0);if(d.set){if(e)d.set.only=e;f[b][a].push(d.set)}d.initAttr&&t.content(b,a)});t.flushTmpCache()})},defineNodeNamesBooleanProperty:function(b,
-a,d){d||(d={});if(c.isFunction(d))d.set=d;h.defineNodeNamesProperty(b,a,{attr:{set:function(b){this.setAttribute(a,b);d.set&&d.set.call(this,!0)},get:function(){return null==this.getAttribute(a)?p:a}},removeAttr:{value:function(){this.removeAttribute(a);d.set&&d.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:d.initAttr||!1})},contentAttr:function(b,a,d){if(b.nodeName){if(d===p)return b=b.attributes[a]||{},d=b.specified?b.value:null,null==d?p:d;"boolean"==typeof d?d?b.setAttribute(a,a):
-b.removeAttribute(a):b.setAttribute(a,d)}},activeLang:function(){var b=[],a={},d,f,g=/:\/\/|^\.*\//,i=function(a,b,d){return b&&d&&-1!==c.inArray(b,d.availabeLangs||[])?(a.loading=!0,d=d.langSrc,g.test(d)||(d=h.cfg.basePath+d),h.loader.loadScript(d+b+".js",function(){a.langObj[b]?(a.loading=!1,s(a,!0)):c(function(){a.langObj[b]&&s(a,!0);a.loading=!1})}),!0):!1},j=function(b){a[b]&&a[b].forEach(function(a){a.callback()})},s=function(a,b){if(a.activeLang!=d&&a.activeLang!==f){var c=w[a.module].options;
-if(a.langObj[d]||f&&a.langObj[f])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[f],d),j(a.module);else if(!b&&!i(a,d,c)&&!i(a,f,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),j(a.module)}};return function(j){if("string"==typeof j&&j!==d)d=j,f=d.split("-")[0],d==f&&(f=!1),c.each(b,function(a,b){s(b)});else if("object"==typeof j)if(j.register)a[j.register]||(a[j.register]=[]),a[j.register].push(j),j.callback();else{if(!j.activeLang)j.activeLang="";b.push(j);s(j)}return d}}()});
-c.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(b,a){h[b]=function(b,c,f,g){"string"==typeof b&&(b=b.split(q));var j={};b.forEach(function(b){j[b]=h[a](b,c,f,g)});return j}});h.isReady("webshimLocalization",!0)});
+return d}}(),extendUNDEFProp:function(b,a){c.each(a,function(a,c){a in b||(b[a]=c)})},createPropDefault:y,data:C,moveToFirstEvent:function(){var b=c._data?"_data":"data";return function(a,d,e){if((a=(c[b](a,"events")||{})[d])&&1<a.length)d=a.pop(),e||(e="bind"),"bind"==e&&a.delegateCount?a.splice(a.delegateCount,0,d):a.unshift(d)}}(),addShadowDom:function(){var b,a,d,e,f={init:!1,start:function(){if(!this.init&&m.body)this.init=!0,this.height=c(m).height(),this.width=c(m).width(),setInterval(function(){var a=
+c(m).height(),b=c(m).width();if(a!=f.height||b!=f.width)f.height=a,f.width=b,e({type:"docresize"})},600)}};e=function(e){clearTimeout(b);b=setTimeout(function(){if("resize"==e.type){var b=c(k).width(),s=c(k).width();if(s==a&&b==d)return;a=s;d=b;if(m.body)f.height=c(m).height(),f.width=c(m).width()}c.event.trigger("updateshadowdom")},40)};c(k).bind("resize",e);c.event.customEvent.updateshadowdom=!0;return function(a,b,d){d=d||{};a.jquery&&(a=a[0]);b.jquery&&(b=b[0]);var v=c.data(a,x)||c.data(a,x,{}),
+e=c.data(b,x)||c.data(b,x,{}),g={};if(d.shadowFocusElement){if(d.shadowFocusElement){if(d.shadowFocusElement.jquery)d.shadowFocusElement=d.shadowFocusElement[0];g=c.data(d.shadowFocusElement,x)||c.data(d.shadowFocusElement,x,g)}}else d.shadowFocusElement=b;v.hasShadow=b;g.nativeElement=e.nativeElement=a;g.shadowData=e.shadowData=v.shadowData={nativeElement:a,shadowElement:b,shadowFocusElement:d.shadowFocusElement};d.shadowChilds&&d.shadowChilds.each(function(){C(this,"shadowData",e.shadowData)});
+if(d.data)g.shadowData.data=e.shadowData.data=v.shadowData.data=d.data;d=null;h.ready("DOM",function(){f.start()})}}(),propTypes:{standard:function(b){y(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,""+a)},get:function(){return b.attr.get.call(this)||b.defaultValue}}},"boolean":function(b){y(b);if(!b.prop)b.prop={set:function(a){a?b.attr.set.call(this,""):b.removeAttr.value.call(this)},get:function(){return null!=b.attr.get.call(this)}}},src:function(){var b=m.createElement("a");b.style.display=
+"none";return function(a,d){y(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,b)},get:function(){var a=this.getAttribute(d),f;if(null==a)return"";b.setAttribute("href",a+"");if(!c.support.hrefNormalized){try{c(b).insertAfter(this),f=b.getAttribute("href",4)}catch(g){f=b.getAttribute("href",4)}c(b).detach()}return f||b.href}}}}(),enumarated:function(b){y(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,a)},get:function(){var a=(b.attr.get.call(this)||"").toLowerCase();if(!a||-1==
+b.limitedTo.indexOf(a))a=b.defaultValue;return a}}}},reflectProperties:function(b,a){"string"==typeof a&&(a=a.split(q));a.forEach(function(a){h.defineNodeNamesProperty(b,a,{prop:{set:function(b){c.attr(this,a,b)},get:function(){return c.attr(this,a)||""}}})})},defineNodeNameProperty:function(b,a,d){n[a]=!0;if(d.reflect)h.propTypes[d.propType||"standard"](d,a);["prop","attr","removeAttr"].forEach(function(e){var f=d[e];f&&(f="prop"===e?c.extend({writeable:!0},f):c.extend({},f,{writeable:!0}),u[e](b,
+a,f),"*"!=b&&h.cfg.extendNative&&"prop"==e&&f.value&&c.isFunction(f.value)&&D(b,a,f),d[e]=f)});d.initAttr&&t.content(b,a);return d},defineNodeNameProperties:function(b,a,d,c){for(var f in a)!c&&a[f].initAttr&&t.createTmpCache(b),d&&!a[f][d]&&(a[f][d]={},["value","set","get"].forEach(function(b){b in a[f]&&(a[f][d][b]=a[f][b],delete a[f][b])})),a[f]=h.defineNodeNameProperty(b,f,a[f]);c||t.flushTmpCache();return a},createElement:function(b,a,d){var f;c.isFunction(a)&&(a={after:a});t.createTmpCache(b);
+a.before&&t.createElement(b,a.before);d&&(f=h.defineNodeNameProperties(b,d,!1,!0));a.after&&t.createElement(b,a.after);t.flushTmpCache();return f},onNodeNamesPropertyModify:function(b,a,d,e){"string"==typeof b&&(b=b.split(q));c.isFunction(d)&&(d={set:d});b.forEach(function(b){f[b]||(f[b]={});"string"==typeof a&&(a=a.split(q));d.initAttr&&t.createTmpCache(b);a.forEach(function(a){f[b][a]||(f[b][a]=[],n[a]=!0);if(d.set){if(e)d.set.only=e;f[b][a].push(d.set)}d.initAttr&&t.content(b,a)});t.flushTmpCache()})},
+defineNodeNamesBooleanProperty:function(b,a,d){d||(d={});if(c.isFunction(d))d.set=d;h.defineNodeNamesProperty(b,a,{attr:{set:function(b){this.setAttribute(a,b);d.set&&d.set.call(this,!0)},get:function(){return null==this.getAttribute(a)?p:a}},removeAttr:{value:function(){this.removeAttribute(a);d.set&&d.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:d.initAttr||!1})},contentAttr:function(b,a,d){if(b.nodeName){if(d===p)return b=b.attributes[a]||{},d=b.specified?b.value:null,null==d?p:d;
+"boolean"==typeof d?d?b.setAttribute(a,a):b.removeAttribute(a):b.setAttribute(a,d)}},activeLang:function(){var b=[],a={},d,f,g=/:\/\/|^\.*\//,i=function(a,b,d){return b&&d&&-1!==c.inArray(b,d.availabeLangs||[])?(a.loading=!0,d=d.langSrc,g.test(d)||(d=h.cfg.basePath+d),h.loader.loadScript(d+b+".js",function(){a.langObj[b]?(a.loading=!1,s(a,!0)):c(function(){a.langObj[b]&&s(a,!0);a.loading=!1})}),!0):!1},j=function(b){a[b]&&a[b].forEach(function(a){a.callback()})},s=function(a,b){if(a.activeLang!=d&&
+a.activeLang!==f){var c=w[a.module].options;if(a.langObj[d]||f&&a.langObj[f])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[f],d),j(a.module);else if(!b&&!i(a,d,c)&&!i(a,f,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),j(a.module)}};return function(j){if("string"==typeof j&&j!==d)d=j,f=d.split("-")[0],d==f&&(f=!1),c.each(b,function(a,b){s(b)});else if("object"==typeof j)if(j.register)a[j.register]||(a[j.register]=[]),a[j.register].push(j),j.callback();else{if(!j.activeLang)j.activeLang=
+"";b.push(j);s(j)}return d}}()});c.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(b,a){h[b]=function(b,c,f,g){"string"==typeof b&&(b=b.split(q));var j={};b.forEach(function(b){j[b]=h[a](b,c,f,g)});return j}});h.isReady("webshimLocalization",!0)});
(function(c,h){var k=c.webshims.browserVersion;if(!(c.browser.mozilla&&5<k)&&(!c.browser.msie||12>k&&7<k)){var m={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},p=function(c,h){c.getAttribute("role")||c.setAttribute("role",h)};c.webshims.addReady(function(k,q){c.each(m,function(h,f){for(var g=c(h,k).add(q.filter(h)),i=0,m=g.length;i<m;i++)p(g[i],f)});if(k===h){var r=h.getElementsByTagName("header")[0],n=h.getElementsByTagName("footer"),i=n.length;
r&&!c(r).closest("section, article")[0]&&p(r,"banner");i&&(r=n[i-1],c(r).closest("section, article")[0]||p(r,"contentinfo"))}})}})(jQuery,document);
(function(c,h,k){var m=h.audio&&h.video,p=!1,w=k.cfg.mediaelement,q=k.bugs,r=function(){k.ready("mediaelement-swf",function(){if(!k.mediaelement.createSWF)k.modules["mediaelement-swf"].test=c.noop,k.reTest(["mediaelement-swf"],m)})},n;if(m){var i=document.createElement("video");h.videoBuffered="buffered"in i;p="loop"in i;k.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));h.videoBuffered||(k.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
test:h.videoBuffered,d:["dom-support"]}),k.reTest("mediaelement-native-fix"))}if(m&&!w.preferFlash){var u=function(f){var g=f.target.parentNode;!w.preferFlash&&(c(f.target).is("audio, video")||g&&c("source:last",g)[0]==f.target)&&k.ready("DOM mediaelement",function(){n&&r();k.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){n&&!w.preferFlash&&k.mediaelement.createSWF&&!c(f.target).closest("audio, video").is(".nonnative-api-active")?(w.preferFlash=!0,document.removeEventListener("error",
u,!0),c("audio, video").mediaLoad(),k.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+f.target.src)):n||document.removeEventListener("error",u,!0)},20)})})};document.addEventListener("error",u,!0);c("audio, video").each(function(){this.error&&u({target:this})})}q.track=!1;h.track&&function(){if(!q.track)q.track="number"!=typeof c("<track />")[0].readyState;if(!q.track)try{new TextTrackCue(2,3,"")}catch(f){q.track=!0}var g=k.cfg.track,h=function(f){c(f.target).filter("track").each(i)},