Fix missing Gallery.cb.toggleSlideshow.

This commit is contained in:
ccd0 2015-01-23 23:48:59 -08:00
parent fe188e12b3
commit 34888c1dcb
3 changed files with 8 additions and 1 deletions

View File

@ -11372,6 +11372,9 @@
return Gallery.cb.close();
}
},
toggleSlideshow: function() {
return Gallery.cb[Gallery.slideshow ? 'stop' : 'start']();
},
pause: function() {
var current;
Gallery.cb.stop();

View File

@ -11408,6 +11408,9 @@
return Gallery.cb.close();
}
},
toggleSlideshow: function() {
return Gallery.cb[Gallery.slideshow ? 'stop' : 'start']();
},
pause: function() {
var current;
Gallery.cb.stop();

View File

@ -254,7 +254,8 @@ Gallery =
click: -> Gallery.cb[if Gallery.nodes.current.controls then 'stop' else 'enterKey']()
toggle: -> (if Gallery.nodes then Gallery.cb.close else Gallery.build)()
blank: (e) -> Gallery.cb.close() if e.target is @
toggleSlideshow: -> Gallery.cb[if Gallery.slideshow then 'stop' else 'start']()
pause: ->
Gallery.cb.stop()
{current} = Gallery.nodes