From 71060f0f3bd9499e19490425e47760474bdcdf36 Mon Sep 17 00:00:00 2001 From: Luke Date: Mon, 23 Apr 2012 14:44:05 +1000 Subject: some code updates --- js/slide-deck.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'js') diff --git a/js/slide-deck.js b/js/slide-deck.js index 24ed92e..67b7a87 100644 --- a/js/slide-deck.js +++ b/js/slide-deck.js @@ -1,3 +1,7 @@ +/** + * @authors TODO + * @fileoverview TODO + */ document.cancelFullScreen = document.webkitCancelFullScreen || document.mozCancelFullScreen; @@ -347,7 +351,6 @@ SlideDeck.prototype.addFonts_ = function(fonts) { el.rel = 'stylesheet'; el.href = 'http://fonts.googleapis.com/css?family=' + fonts.join('|') + '&v2'; document.querySelector('head').appendChild(el); - }; /** @@ -399,8 +402,7 @@ SlideDeck.prototype.prevSlide = function(opt_dontPush) { bodyClassList.remove('with-notes'); } - this.prevSlide_ = this.curSlide_; - this.curSlide_--; + this.prevSlide_ = this.curSlide_--; this.updateSlides_(opt_dontPush); } @@ -426,8 +428,7 @@ SlideDeck.prototype.nextSlide = function(opt_dontPush) { bodyClassList.remove('with-notes'); } - this.prevSlide_ = this.curSlide_; - this.curSlide_++; + this.prevSlide_ = this.curSlide_++; this.updateSlides_(opt_dontPush); } @@ -704,5 +705,4 @@ SlideDeck.prototype.loadAnalytics_ = function() { window.slidedeck = new SlideDeck(); } }); - })(); -- cgit v1.2.3