diff options
author | Luke | 2012-04-23 14:57:11 +1000 |
---|---|---|
committer | Luke | 2012-04-23 14:57:11 +1000 |
commit | d78d1c5069ecdb6723a8933dbb86f4b7a20c59e9 (patch) | |
tree | fb660d8076cbe9c3562cf53a57a101b5a1047c22 | |
parent | ac8a7a3dc66a815f7331b1880cdc2df8a8dc9191 (diff) | |
download | io-slides-remote-d78d1c5069ecdb6723a8933dbb86f4b7a20c59e9.tar.gz |
replacing queryselector with this.container
-rw-r--r-- | js/slide-deck.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
223 | case 87: // W: Toggle widescreen | 223 | case 87: // W: Toggle widescreen |
224 | // Only respect 'w' on body. Don't want to capture keys from an <input>. | 224 | // Only respect 'w' on body. Don't want to capture keys from an <input>. |
225 | if (e.target == document.body && !(e.shiftKey && e.metaKey)) { | 225 | if (e.target == document.body && !(e.shiftKey && e.metaKey)) { |
226 | document.querySelector('slides').classList.toggle('layout-widescreen'); | 226 | this.container.classList.toggle('layout-widescreen'); |
227 | } | 227 | } |
228 | break; | 228 | break; |
229 | } | 229 | } |