Skip to content

Commit

Permalink
1.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aFarkas committed Aug 12, 2014
1 parent 4c7407a commit f606d03
Show file tree
Hide file tree
Showing 73 changed files with 2,368 additions and 416 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webshim",
"version": "1.14.6",
"version": "1.15.0-RC1",
"homepage": "https://github.com/aFarkas/webshim",
"authors": [
"aFarkas <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion demos/demos/forms.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

<div id="sidebar" class="interface">

<a class="toc_title" href="../index.html"> Webshim <span class="version">(<span class="ws-version">1.14.6</span>)</span></a>
<a class="toc_title" href="../index.html"> Webshim <span class="version">(<span class="ws-version">1.15.0-RC1</span>)</span></a>
<ul class="toc_section">
<li>
&raquo; <a href="https://github.com/aFarkas/webshim">GitHub Repository</a>
Expand Down
2 changes: 1 addition & 1 deletion demos/demos/mediaelement.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@

<div id="sidebar" class="interface">

<a class="toc_title" href="../index.html"> Webshim <span class="version">(<span class="ws-version">1.14.6</span>)</span></a>
<a class="toc_title" href="../index.html"> Webshim <span class="version">(<span class="ws-version">1.15.0-RC1</span>)</span></a>
<ul class="toc_section">
<li>
&raquo; <a href="https://github.com/aFarkas/webshim">GitHub Repository</a>
Expand Down
4 changes: 2 additions & 2 deletions demos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<div id="sidebar" class="interface">

<a class="toc_title"> Webshim <span class="version">(<span class="ws-version">1.14.6</span>)</span></a>
<a class="toc_title"> Webshim <span class="version">(<span class="ws-version">1.15.0-RC1</span>)</span></a>
<ul class="toc_section">
<li>
&raquo; <a href="https://github.com/aFarkas/webshim">GitHub Repository</a>
Expand Down Expand Up @@ -143,7 +143,7 @@
<h3 id="downloads">Downloads &amp; Dependencies</h3>
<span style="padding-left: 7px; font-size:11px; font-weight: normal;" class="interface">(Right-click, and use "Save As")</span>
<p>
<a href="https://github.com/aFarkas/webshim/archive/1.14.6.zip" class="download-button"> <strong><i>Download</i></strong> </a>
<a href="https://github.com/aFarkas/webshim/archive/1.15.0-RC1.zip" class="download-button"> <strong><i>Download</i></strong> </a>
</p>

<p>
Expand Down
2 changes: 1 addition & 1 deletion js-webshim/dev/polyfiller.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
}

$.extend(webshims, {
version: '1.14.6',
version: '1.15.0-RC1',

cfg: {
enhanceAuto: window.Audio && (!window.matchMedia || matchMedia('(min-device-width: 721px)').matches),
Expand Down
14 changes: 0 additions & 14 deletions js-webshim/dev/shims/combos/1.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,20 +524,6 @@ webshims.isReady('swfmini', true);
}
});

$(function(){
var fileReaderReady = ('FileReader' in window && 'FormData' in window);
if(!fileReaderReady){
webshims.addReady(function(context){
if(!fileReaderReady && !modules.filereader.loaded && !modules.moxie.loaded){
if(context.querySelector('input.ws-filereader')){
webshims.reTest(['filereader', 'moxie']);
fileReaderReady = true;
}
}
});
}
});

if(options.addValidators && options.fastValidators){
webshims.reTest(['form-validators', 'form-validation']);
}
Expand Down
14 changes: 0 additions & 14 deletions js-webshim/dev/shims/combos/15.js
Original file line number Diff line number Diff line change
Expand Up @@ -1537,20 +1537,6 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
}
});

$(function(){
var fileReaderReady = ('FileReader' in window && 'FormData' in window);
if(!fileReaderReady){
webshims.addReady(function(context){
if(!fileReaderReady && !modules.filereader.loaded && !modules.moxie.loaded){
if(context.querySelector('input.ws-filereader')){
webshims.reTest(['filereader', 'moxie']);
fileReaderReady = true;
}
}
});
}
});

if(options.addValidators && options.fastValidators){
webshims.reTest(['form-validators', 'form-validation']);
}
Expand Down
14 changes: 0 additions & 14 deletions js-webshim/dev/shims/combos/16.js
Original file line number Diff line number Diff line change
Expand Up @@ -1760,20 +1760,6 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
}
});

$(function(){
var fileReaderReady = ('FileReader' in window && 'FormData' in window);
if(!fileReaderReady){
webshims.addReady(function(context){
if(!fileReaderReady && !modules.filereader.loaded && !modules.moxie.loaded){
if(context.querySelector('input.ws-filereader')){
webshims.reTest(['filereader', 'moxie']);
fileReaderReady = true;
}
}
});
}
});

if(options.addValidators && options.fastValidators){
webshims.reTest(['form-validators', 'form-validation']);
}
Expand Down
14 changes: 0 additions & 14 deletions js-webshim/dev/shims/combos/2.js
Original file line number Diff line number Diff line change
Expand Up @@ -1760,20 +1760,6 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
}
});

$(function(){
var fileReaderReady = ('FileReader' in window && 'FormData' in window);
if(!fileReaderReady){
webshims.addReady(function(context){
if(!fileReaderReady && !modules.filereader.loaded && !modules.moxie.loaded){
if(context.querySelector('input.ws-filereader')){
webshims.reTest(['filereader', 'moxie']);
fileReaderReady = true;
}
}
});
}
});

if(options.addValidators && options.fastValidators){
webshims.reTest(['form-validators', 'form-validation']);
}
Expand Down
28 changes: 27 additions & 1 deletion js-webshim/dev/shims/combos/25.js
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,12 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
var img = new mOxie.Image();

img.onload = function() {
cb(img.getAsBlob());
var blob = img.getAsBlob();
webshim.defineProperty(blob, '_wsDataURL', {
value: dataURL,
enumerable: false
});
cb(blob);
};
img.load(dataURL);

Expand All @@ -1629,6 +1634,27 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
}
});

webshim.ready('url', function(){
var _nativeCreateObjectURL = URL.createObjectURL;
var _nativeRevokeObjectURL = URL.revokeObjectURL;

URL.createObjectURL = function(obj){
var url = obj;
if(obj._wsimgDataURL) {
url = obj._wsimgDataURL;
} else if(_nativeCreateObjectURL){
return _nativeCreateObjectURL.apply(this, arguments);
}
return url;
};

URL.revokeObjectURL = function(url){
if (_nativeRevokeObjectURL){
return _nativeRevokeObjectURL.apply(this, arguments);
}
};
});

window.FileReader = notReadyYet;
window.FormData = notReadyYet;
webshim.ready('moxie', function(){
Expand Down
28 changes: 27 additions & 1 deletion js-webshim/dev/shims/combos/27.js
Original file line number Diff line number Diff line change
Expand Up @@ -1636,7 +1636,12 @@ webshims.register('form-shim-extend2', function($, webshims, window, document, u
var img = new mOxie.Image();

img.onload = function() {
cb(img.getAsBlob());
var blob = img.getAsBlob();
webshim.defineProperty(blob, '_wsDataURL', {
value: dataURL,
enumerable: false
});
cb(blob);
};
img.load(dataURL);

Expand All @@ -1645,6 +1650,27 @@ webshims.register('form-shim-extend2', function($, webshims, window, document, u
}
});

webshim.ready('url', function(){
var _nativeCreateObjectURL = URL.createObjectURL;
var _nativeRevokeObjectURL = URL.revokeObjectURL;

URL.createObjectURL = function(obj){
var url = obj;
if(obj._wsimgDataURL) {
url = obj._wsimgDataURL;
} else if(_nativeCreateObjectURL){
return _nativeCreateObjectURL.apply(this, arguments);
}
return url;
};

URL.revokeObjectURL = function(url){
if (_nativeRevokeObjectURL){
return _nativeRevokeObjectURL.apply(this, arguments);
}
};
});

window.FileReader = notReadyYet;
window.FormData = notReadyYet;
webshim.ready('moxie', function(){
Expand Down
14 changes: 0 additions & 14 deletions js-webshim/dev/shims/combos/3.js
Original file line number Diff line number Diff line change
Expand Up @@ -1537,20 +1537,6 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
}
});

$(function(){
var fileReaderReady = ('FileReader' in window && 'FormData' in window);
if(!fileReaderReady){
webshims.addReady(function(context){
if(!fileReaderReady && !modules.filereader.loaded && !modules.moxie.loaded){
if(context.querySelector('input.ws-filereader')){
webshims.reTest(['filereader', 'moxie']);
fileReaderReady = true;
}
}
});
}
});

if(options.addValidators && options.fastValidators){
webshims.reTest(['form-validators', 'form-validation']);
}
Expand Down
14 changes: 0 additions & 14 deletions js-webshim/dev/shims/combos/30.js
Original file line number Diff line number Diff line change
Expand Up @@ -1537,20 +1537,6 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
}
});

$(function(){
var fileReaderReady = ('FileReader' in window && 'FormData' in window);
if(!fileReaderReady){
webshims.addReady(function(context){
if(!fileReaderReady && !modules.filereader.loaded && !modules.moxie.loaded){
if(context.querySelector('input.ws-filereader')){
webshims.reTest(['filereader', 'moxie']);
fileReaderReady = true;
}
}
});
}
});

if(options.addValidators && options.fastValidators){
webshims.reTest(['form-validators', 'form-validation']);
}
Expand Down
14 changes: 0 additions & 14 deletions js-webshim/dev/shims/combos/31.js
Original file line number Diff line number Diff line change
Expand Up @@ -1537,20 +1537,6 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
}
});

$(function(){
var fileReaderReady = ('FileReader' in window && 'FormData' in window);
if(!fileReaderReady){
webshims.addReady(function(context){
if(!fileReaderReady && !modules.filereader.loaded && !modules.moxie.loaded){
if(context.querySelector('input.ws-filereader')){
webshims.reTest(['filereader', 'moxie']);
fileReaderReady = true;
}
}
});
}
});

if(options.addValidators && options.fastValidators){
webshims.reTest(['form-validators', 'form-validation']);
}
Expand Down
14 changes: 0 additions & 14 deletions js-webshim/dev/shims/combos/7.js
Original file line number Diff line number Diff line change
Expand Up @@ -1760,20 +1760,6 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
}
});

$(function(){
var fileReaderReady = ('FileReader' in window && 'FormData' in window);
if(!fileReaderReady){
webshims.addReady(function(context){
if(!fileReaderReady && !modules.filereader.loaded && !modules.moxie.loaded){
if(context.querySelector('input.ws-filereader')){
webshims.reTest(['filereader', 'moxie']);
fileReaderReady = true;
}
}
});
}
});

if(options.addValidators && options.fastValidators){
webshims.reTest(['form-validators', 'form-validation']);
}
Expand Down
14 changes: 0 additions & 14 deletions js-webshim/dev/shims/combos/8.js
Original file line number Diff line number Diff line change
Expand Up @@ -1760,20 +1760,6 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
}
});

$(function(){
var fileReaderReady = ('FileReader' in window && 'FormData' in window);
if(!fileReaderReady){
webshims.addReady(function(context){
if(!fileReaderReady && !modules.filereader.loaded && !modules.moxie.loaded){
if(context.querySelector('input.ws-filereader')){
webshims.reTest(['filereader', 'moxie']);
fileReaderReady = true;
}
}
});
}
});

if(options.addValidators && options.fastValidators){
webshims.reTest(['form-validators', 'form-validation']);
}
Expand Down
1 change: 1 addition & 0 deletions js-webshim/dev/shims/combos/98.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ webshims.register('jmebase', function($, webshims, window, doc, undefined){
if(!e){
e.type = 'playing';
}

if(isInitial && (!isYt || !hasYtBug || e.type == 'playing' || data.media.prop('readyState') > 1)){
isInitial = false;
data.player.removeClass('initial-state');
Expand Down
1 change: 1 addition & 0 deletions js-webshim/dev/shims/combos/99.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ webshims.register('jmebase', function($, webshims, window, doc, undefined){
if(!e){
e.type = 'playing';
}

if(isInitial && (!isYt || !hasYtBug || e.type == 'playing' || data.media.prop('readyState') > 1)){
isInitial = false;
data.player.removeClass('initial-state');
Expand Down
2 changes: 1 addition & 1 deletion js-webshim/dev/shims/combos/comboinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"1.14.6","features":{"swfmini":[16,7,2,8,1,12,23],"dom-support":[16,7,2,8,15,30,3,4,9,10,25,31,34],"forms":[16,7,2,8,1,15,30,3,4,9,31,6,5,14,29,28,27,33],"mediaelement":[16,7,2,8,1,12,23,25,21,13],"track":[12,34,21,22,13],"range-ui":[9,10,6,5,17,11],"forms-ext":[9,10,6,5,14,29,28,17,33,11],"filereader":[25,27],"picture":[18],"matchMedia":[18],"geolocation":[21],"details":[21,22],"jmebase":[98,99,97],"mediacontrols":[98,99],"playlist":[98,97]},"files":{"src/shims/combos/16.js":["src/shims/swfmini.js","src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-shim-extend.js","src/shims/form-message.js","src/shims/form-datalist.js","src/shims/mediaelement-core.js"],"src/shims/combos/7.js":["src/shims/swfmini.js","src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-message.js","src/shims/form-datalist.js","src/shims/mediaelement-core.js"],"src/shims/combos/2.js":["src/shims/swfmini.js","src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-datalist.js","src/shims/mediaelement-core.js"],"src/shims/combos/8.js":["src/shims/swfmini.js","src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-message.js","src/shims/mediaelement-core.js"],"src/shims/combos/1.js":["src/shims/swfmini.js","src/shims/form-core.js","src/shims/mediaelement-core.js"],"src/shims/combos/12.js":["src/shims/swfmini.js","src/shims/mediaelement-core.js","src/shims/track.js"],"src/shims/combos/23.js":["src/shims/swfmini.js","src/shims/mediaelement-core.js"],"src/shims/combos/15.js":["src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-shim-extend.js","src/shims/form-message.js","src/shims/form-datalist.js"],"src/shims/combos/30.js":["src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-message.js","src/shims/form-datalist.js"],"src/shims/combos/3.js":["src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-message.js"],"src/shims/combos/4.js":["src/shims/dom-extend.js","src/shims/form-message.js"],"src/shims/combos/9.js":["src/shims/dom-extend.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js","src/shims/form-datalist.js"],"src/shims/combos/10.js":["src/shims/dom-extend.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js"],"src/shims/combos/25.js":["src/shims/dom-extend.js","src/shims/filereader.js","src/shims/mediaelement-jaris.js"],"src/shims/combos/31.js":["src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-datalist.js"],"src/shims/combos/34.js":["src/shims/dom-extend.js","src/shims/track.js"],"src/shims/combos/18.js":["src/shims/picture.js","src/shims/matchMedia.js"],"src/shims/combos/21.js":["src/shims/geolocation.js","src/shims/details.js","src/shims/mediaelement-jaris.js","src/shims/track.js"],"src/shims/combos/6.js":["src/shims/form-native-extend.js","src/shims/form-number-date-api.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js","src/shims/form-datalist.js"],"src/shims/combos/5.js":["src/shims/form-native-extend.js","src/shims/form-number-date-api.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js"],"src/shims/combos/14.js":["src/shims/form-native-extend.js","src/shims/form-message.js","src/shims/form-number-date-api.js"],"src/shims/combos/29.js":["src/shims/form-native-extend.js","src/shims/form-number-date-api.js"],"src/shims/combos/28.js":["src/shims/form-shim-extend.js","src/shims/form-message.js","src/shims/form-number-date-api.js","src/shims/form-datalist.js"],"src/shims/combos/27.js":["src/shims/form-shim-extend2.js","src/shims/filereader.js"],"src/shims/combos/17.js":["src/shims/form-number-date-api.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js"],"src/shims/combos/33.js":["src/shims/form-number-date-api.js","src/shims/form-datalist.js"],"src/shims/combos/11.js":["src/shims/range-ui.js","src/shims/form-number-date-ui.js"],"src/shims/combos/22.js":["src/shims/details.js","src/shims/track.js"],"src/shims/combos/13.js":["src/shims/mediaelement-core.js","src/shims/track.js"],"src/shims/combos/98.js":["src/shims/jme/base.js","src/shims/jme/mediacontrols.js","src/shims/jme/playlist.js"],"src/shims/combos/99.js":["src/shims/jme/base.js","src/shims/jme/mediacontrols.js"],"src/shims/combos/97.js":["src/shims/jme/base.js","src/shims/jme/playlist.js"]}}
{"version":"1.15.0-RC1","features":{"swfmini":[16,7,2,8,1,12,23],"dom-support":[16,7,2,8,15,30,3,4,9,10,25,31,34],"forms":[16,7,2,8,1,15,30,3,4,9,31,6,5,14,29,28,27,33],"mediaelement":[16,7,2,8,1,12,23,25,21,13],"track":[12,34,21,22,13],"range-ui":[9,10,6,5,17,11],"forms-ext":[9,10,6,5,14,29,28,17,33,11],"filereader":[25,27],"picture":[18],"matchMedia":[18],"geolocation":[21],"details":[21,22],"jmebase":[98,99,97],"mediacontrols":[98,99],"playlist":[98,97]},"files":{"src/shims/combos/16.js":["src/shims/swfmini.js","src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-shim-extend.js","src/shims/form-message.js","src/shims/form-datalist.js","src/shims/mediaelement-core.js"],"src/shims/combos/7.js":["src/shims/swfmini.js","src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-message.js","src/shims/form-datalist.js","src/shims/mediaelement-core.js"],"src/shims/combos/2.js":["src/shims/swfmini.js","src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-datalist.js","src/shims/mediaelement-core.js"],"src/shims/combos/8.js":["src/shims/swfmini.js","src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-message.js","src/shims/mediaelement-core.js"],"src/shims/combos/1.js":["src/shims/swfmini.js","src/shims/form-core.js","src/shims/mediaelement-core.js"],"src/shims/combos/12.js":["src/shims/swfmini.js","src/shims/mediaelement-core.js","src/shims/track.js"],"src/shims/combos/23.js":["src/shims/swfmini.js","src/shims/mediaelement-core.js"],"src/shims/combos/15.js":["src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-shim-extend.js","src/shims/form-message.js","src/shims/form-datalist.js"],"src/shims/combos/30.js":["src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-message.js","src/shims/form-datalist.js"],"src/shims/combos/3.js":["src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-message.js"],"src/shims/combos/4.js":["src/shims/dom-extend.js","src/shims/form-message.js"],"src/shims/combos/9.js":["src/shims/dom-extend.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js","src/shims/form-datalist.js"],"src/shims/combos/10.js":["src/shims/dom-extend.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js"],"src/shims/combos/25.js":["src/shims/dom-extend.js","src/shims/filereader.js","src/shims/mediaelement-jaris.js"],"src/shims/combos/31.js":["src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-datalist.js"],"src/shims/combos/34.js":["src/shims/dom-extend.js","src/shims/track.js"],"src/shims/combos/18.js":["src/shims/picture.js","src/shims/matchMedia.js"],"src/shims/combos/21.js":["src/shims/geolocation.js","src/shims/details.js","src/shims/mediaelement-jaris.js","src/shims/track.js"],"src/shims/combos/6.js":["src/shims/form-native-extend.js","src/shims/form-number-date-api.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js","src/shims/form-datalist.js"],"src/shims/combos/5.js":["src/shims/form-native-extend.js","src/shims/form-number-date-api.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js"],"src/shims/combos/14.js":["src/shims/form-native-extend.js","src/shims/form-message.js","src/shims/form-number-date-api.js"],"src/shims/combos/29.js":["src/shims/form-native-extend.js","src/shims/form-number-date-api.js"],"src/shims/combos/28.js":["src/shims/form-shim-extend.js","src/shims/form-message.js","src/shims/form-number-date-api.js","src/shims/form-datalist.js"],"src/shims/combos/27.js":["src/shims/form-shim-extend2.js","src/shims/filereader.js"],"src/shims/combos/17.js":["src/shims/form-number-date-api.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js"],"src/shims/combos/33.js":["src/shims/form-number-date-api.js","src/shims/form-datalist.js"],"src/shims/combos/11.js":["src/shims/range-ui.js","src/shims/form-number-date-ui.js"],"src/shims/combos/22.js":["src/shims/details.js","src/shims/track.js"],"src/shims/combos/13.js":["src/shims/mediaelement-core.js","src/shims/track.js"],"src/shims/combos/98.js":["src/shims/jme/base.js","src/shims/jme/mediacontrols.js","src/shims/jme/playlist.js"],"src/shims/combos/99.js":["src/shims/jme/base.js","src/shims/jme/mediacontrols.js"],"src/shims/combos/97.js":["src/shims/jme/base.js","src/shims/jme/playlist.js"]}}
Loading

0 comments on commit f606d03

Please sign in to comment.