diff options
author | Pacien TRAN-GIRARD | 2014-06-16 19:30:53 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-06-16 19:30:53 +0200 |
commit | add331408b0f207b82f3ec1b76251c700197e807 (patch) | |
tree | efee398fbd8811adbad16dbe98b1b0506dddc363 /slides/intermediaire/js/polyfills/dataset.min.js | |
parent | c59a0f4780502c949c0d19287bea51a4c40fb109 (diff) | |
download | labviewplayer-master.tar.gz |
Diffstat (limited to 'slides/intermediaire/js/polyfills/dataset.min.js')
-rw-r--r-- | slides/intermediaire/js/polyfills/dataset.min.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/slides/intermediaire/js/polyfills/dataset.min.js b/slides/intermediaire/js/polyfills/dataset.min.js new file mode 100644 index 0000000..21d841b --- /dev/null +++ b/slides/intermediaire/js/polyfills/dataset.min.js | |||
@@ -0,0 +1,2 @@ | |||
1 | /*! @source https://github.com/remy/polyfills/blob/master/dataset.js */ | ||
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 | ||