diff options
author | Pacien TRAN-GIRARD | 2014-05-12 22:16:53 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-05-12 22:16:53 +0200 |
commit | 589b7856a8127dd050ca7c66ea73245dc0b328eb (patch) | |
tree | edf3296b50d6d1d3870945792cd6f345c7484423 /js/polyfills/dataset.min.js | |
parent | d672828022e5886436237f94eaecefd5e36df123 (diff) | |
download | io-slides-remote-589b7856a8127dd050ca7c66ea73245dc0b328eb.tar.gz |
Update polyfills
Diffstat (limited to 'js/polyfills/dataset.min.js')
-rw-r--r-- | js/polyfills/dataset.min.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/polyfills/dataset.min.js b/js/polyfills/dataset.min.js index 3f2a564..21d841b 100644 --- a/js/polyfills/dataset.min.js +++ b/js/polyfills/dataset.min.js | |||
@@ -1,2 +1,2 @@ | |||
1 | (function(){function c(){d=!0;this.removeEventListener("DOMAttrModified",c,!1)}function g(b){return b.replace(h,function(b,a){return a.toUpperCase()})}function e(){var b={};i.call(this.attributes,function(a){if(f=a.name.match(j))b[g(f[1])]=a.value});return b}var i=[].forEach,j=/^data-(.+)/,h=/\-([a-z])/ig,a=document.createElement("div"),d=!1,f;a.dataset==void 0&&(a.addEventListener("DOMAttrModified",c,!1),a.setAttribute("foo","bar"),Element.prototype.__defineGetter__("dataset",d?function(){if(!this._datasetCache)this._datasetCache= | 1 | /*! @source https://github.com/remy/polyfills/blob/master/dataset.js */ |
2 | e.call(this);return this._datasetCache}:e),document.addEventListener("DOMAttrModified",function(a){delete a.target._datasetCache},!1))})(); \ No newline at end of file | 2 | (function(){function c(){d=!0;this.removeEventListener("DOMAttrModified",c,!1)}function g(b){return b.replace(h,function(b,a){return a.toUpperCase()})}function e(){var b={};i.call(this.attributes,function(a){if(f=a.name.match(j))b[g(f[1])]=a.value});return b}var i=[].forEach,j=/^data-(.+)/,h=/\-([a-z])/ig,a=document.createElement("div"),d=!1,f;a.dataset==void 0&&(a.addEventListener("DOMAttrModified",c,!1),a.setAttribute("foo","bar"),Element.prototype.__defineGetter__("dataset",d?function(){if(!this._datasetCache)this._datasetCache=e.call(this);return this._datasetCache}:e),document.addEventListener("DOMAttrModified",function(a){delete a.target._datasetCache},!1))})(); \ No newline at end of file |