From d78d1c5069ecdb6723a8933dbb86f4b7a20c59e9 Mon Sep 17 00:00:00 2001 From: Luke Date: Mon, 23 Apr 2012 14:57:11 +1000 Subject: replacing queryselector with this.container --- js/slide-deck.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/slide-deck.js b/js/slide-deck.js index 67b7a87..a5308b9 100644 --- a/js/slide-deck.js +++ b/js/slide-deck.js @@ -223,7 +223,7 @@ SlideDeck.prototype.onBodyKeyDown_ = function(e) { case 87: // W: Toggle widescreen // Only respect 'w' on body. Don't want to capture keys from an . if (e.target == document.body && !(e.shiftKey && e.metaKey)) { - document.querySelector('slides').classList.toggle('layout-widescreen'); + this.container.classList.toggle('layout-widescreen'); } break; } -- cgit v1.2.3