Skip to content

Commit ce7efd5

Browse files
committed
Adding JS declaration for some undefined variables
1 parent 585f96b commit ce7efd5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/timeline/js/directives/clip.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ App.directive('tlClip', function($timeout){
104104
var delta_time = delta_x/scope.pixelsPerSecond;
105105

106106
//change the clip end/start based on which side was dragged
107-
new_position = scope.clip.position;
108-
new_left = scope.clip.start;
109-
new_right = scope.clip.end;
107+
var new_position = scope.clip.position;
108+
var new_left = scope.clip.start;
109+
var new_right = scope.clip.end;
110110

111111
if (dragLoc === 'left') {
112112
// changing the start of the clip

src/timeline/js/directives/transition.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ App.directive('tlTransition', function(){
9292
var delta_time = delta_x/scope.pixelsPerSecond;
9393

9494
//change the transition end/start based on which side was dragged
95-
new_left = scope.transition.position;
96-
new_right = (scope.transition.end - scope.transition.start);
95+
var new_left = scope.transition.position;
96+
var new_right = (scope.transition.end - scope.transition.start);
9797

9898
if (dragLoc === 'left'){
9999
//changing the start of the transition

0 commit comments

Comments
 (0)