slideoff 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 292dc9e44e4bdb71dd13dec1241465452a029329
4
- data.tar.gz: f9b232e08f19cd6edec6c21bbf950bf199721a54
3
+ metadata.gz: 03c3d6a65b393a187a22c8825e2cdc11a6215529
4
+ data.tar.gz: 0ec831fed841ca40084346f6d49b4524aab88134
5
5
  SHA512:
6
- metadata.gz: 4ef62a3b328560f2d65191ac6644bb6fd35fd5066978b7cc47033710d611d6d7dd0b036e6f4dd5eeded0020f70e4f28e515ba7783eb9d869ee13564709f4943f
7
- data.tar.gz: 73a568350aa9a9b942816898d277a6c6a645b503130ca2cb0f6db9d63acbcb4b5c83a1f5ae369f9fd944109bb377fad64f132e581c3c2666021c48fe99d222dc
6
+ metadata.gz: 78ccdb4bf8ba0671cf8cdf1417553c8d85598eff635fb3b2ff6a4a52d386271e37be3f02188fb74fc92b29b7d63330efb3bcd272d3d54dd422a4dd6c3a233ff2
7
+ data.tar.gz: e0497d6cbb430a3a086706b0c9ba0f8d06132bcc32406995f62c0b27137899c05694e22688f9589fd76cf3047c3c8448bf44b9ce629493f05a3ab029e84de3d3
@@ -11,5 +11,5 @@ module Slideoff
11
11
  autoload :FlickrAPI, "slideoff/flickr_api"
12
12
 
13
13
  CONFIG = ConfigBuilder.new(Dir.pwd)
14
- VERSION = "0.3.4"
14
+ VERSION = "0.3.5"
15
15
  end
@@ -284,7 +284,9 @@ class Slide
284
284
  window.location.hash = hash
285
285
  $('body').trigger('goto.slideoff', {target: hash})
286
286
  $('body').trigger(hash+'.goto.slideoff', {target: hash})
287
- @updateProgress() if Mode.isSlideMode()
287
+ if Mode.isSlideMode()
288
+ @updateProgress()
289
+ @html().find('.visited').last().removeClass('visited').addClass('current')
288
290
 
289
291
  scrollTo: -> window.scrollTo 0, @offsetTop()
290
292
 
@@ -311,17 +313,13 @@ class Slide
311
313
  prevInteractive: ->
312
314
  @firstCurrentElement().removeClass('current').addClass('inactive')
313
315
 
314
- unless @containsVisited()
315
- @prev().goto()
316
- return
317
-
318
316
  @html().find('.visited').last().removeClass('visited').addClass('current')
319
317
  @decrementStep() if @html().hasClass('step-0')
320
318
 
321
319
  nextInteractive: ->
322
320
  @firstCurrentElement().removeClass('current').addClass('visited')
323
321
 
324
- unless @containsInactive()
322
+ if !@containsInactive()
325
323
  @next().goto()
326
324
  return
327
325
 
@@ -387,7 +387,8 @@ Slide = (function() {
387
387
  target: hash
388
388
  });
389
389
  if (Mode.isSlideMode()) {
390
- return this.updateProgress();
390
+ this.updateProgress();
391
+ return this.html().find('.visited').last().removeClass('visited').addClass('current');
391
392
  }
392
393
  };
393
394
 
@@ -438,10 +439,6 @@ Slide = (function() {
438
439
 
439
440
  Slide.prototype.prevInteractive = function() {
440
441
  this.firstCurrentElement().removeClass('current').addClass('inactive');
441
- if (!this.containsVisited()) {
442
- this.prev().goto();
443
- return;
444
- }
445
442
  this.html().find('.visited').last().removeClass('visited').addClass('current');
446
443
  if (this.html().hasClass('step-0')) {
447
444
  return this.decrementStep();
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slideoff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - DSIW