Commit be76bf3d authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

classList polyfill included for ie9

parent 87529c4a
......@@ -64,6 +64,8 @@ Reveal.initialize({
- Config option for disabling updates to URL, defaults to true
- Anchors with image children no longer rotate in 3D on hover
- Support for mouse wheel navigation ([naugtur](
- Delayed updates to URL hash to work around a bug in Chrome
- Included a classList polyfill for IE9
#### 1.1
......@@ -209,7 +209,11 @@
<script src="js/reveal.js"></script>
<!-- Optional libraries for code syntax highlighting and classList support in IE9 -->
<script src="lib/highlight.js"></script>
<script src="lib/classList.js"></script>
// Parse the query string into a key/value object
var query = {};
// classList polyfill from
(function(){function c(a){this._element=a;if(a.className!=this.classCache){this._classCache=a.className;var a=this._classCache.split(" "),b;for(b=0;b<a.length;b++),a[b])}}if(!("undefined"===typeof Element||Element.prototype.hasOwnProperty("classList"))){var d=[].indexOf,f=[].slice,e=[].push,g=[].splice,h=[].join;c.prototype={add:function(a){,a);,0).join(" ")},contains:function(a){return-1!,a)},item:function(a){return this[a]||null},
remove:function(a){,a);,a,1);,0).join(" ")},toString:function(){return," ")},toggle:function(a){,a)?this.add(a):this.remove(a)}};window.DOMTokenList=c;Element.prototype.__defineGetter__("classList",function(){return new c(this)})}})();
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment