diff options
author | Jose Antonio Marquez | 2012-06-28 23:27:38 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-06-28 23:27:38 -0700 |
commit | 54f95bf52f660f5d8bcb3180c203ffd6ce9b8557 (patch) | |
tree | 0b6a2e13722a0b8f386509f9d6f704576870229e /js | |
parent | db0a7a120878fa5b343de91ce680cea2c0f9833f (diff) | |
download | ninja-54f95bf52f660f5d8bcb3180c203ffd6ce9b8557.tar.gz |
Fixing reference to object
Diffstat (limited to 'js')
-rwxr-xr-x | js/tools/TagTool.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tools/TagTool.js b/js/tools/TagTool.js index 27665ee6..80e6150d 100755 --- a/js/tools/TagTool.js +++ b/js/tools/TagTool.js | |||
@@ -118,14 +118,14 @@ exports.TagTool = Montage.create(DrawingTool, { | |||
118 | handleCanplay: { | 118 | handleCanplay: { |
119 | value: function(event) { | 119 | value: function(event) { |
120 | //TODO: Figure out why the video must be seeked to the end before pausing | 120 | //TODO: Figure out why the video must be seeked to the end before pausing |
121 | var time = Math.ceil(this.duration); | 121 | var time = Math.ceil(event.target.duration); |
122 | //Trying to display the last frame (doing minus 2 seconds if long video) | 122 | //Trying to display the last frame (doing minus 2 seconds if long video) |
123 | if (time > 2) { | 123 | if (time > 2) { |
124 | this.currentTime = time - 2; | 124 | event.target.currentTime = time - 2; |
125 | } else if (time > 1) { | 125 | } else if (time > 1) { |
126 | this.currentTime = time - 1; | 126 | event.target.currentTime = time - 1; |
127 | } else { | 127 | } else { |
128 | this.currentTime = time || 0; | 128 | event.target.currentTime = time || 0; |
129 | } | 129 | } |
130 | //Pauing video | 130 | //Pauing video |
131 | event.target.pause(); | 131 | event.target.pause(); |