fix a bug with toggling paused state

This commit is contained in:
rlx 2012-03-14 10:38:32 +00:00
parent 8521eb36ba
commit 53f57939ec

View file

@ -79,7 +79,9 @@ Ox.VideoTimelinePlayer = function(options, self) {
self.options.position += 1 / self.fps;
setPosition();
},
key_space: togglePaused,
key_space: function() {
togglePaused()
},
key_up: function() {
self.options.position -= self.contentWidth / self.fps;
setPosition();
@ -97,7 +99,9 @@ Ox.VideoTimelinePlayer = function(options, self) {
float: 'left'
})
.bindEvent({
click: togglePaused
click: function() {
togglePaused();
}
})
.appendTo(self.$bottomBar);
self.$muteButton = Ox.Button({