@@ -252,13 +252,13 @@ function setBoundingBox(scope, item, item_type="clip") {
252
252
}
253
253
254
254
// Add in additional types of special-case bounding boxes
255
- if ( item_type == "playhead" ) {
255
+ if ( item_type === "playhead" ) {
256
256
// Center of playhead (1 pixel width)
257
257
bounding_box . left += 13 ;
258
258
bounding_box . right = bounding_box . left ;
259
259
bounding_box . width = 1 ;
260
260
261
- } else if ( item_type == "trimming" ) {
261
+ } else if ( item_type === "trimming" ) {
262
262
// Edge of clip for trimming (1 pixel width)
263
263
bounding_box . right = bounding_box . left ;
264
264
bounding_box . width = 1 ;
@@ -267,7 +267,7 @@ function setBoundingBox(scope, item, item_type="clip") {
267
267
// Get list of current selected ids (so we can ignore their snapping x coordinates)
268
268
// Unless playhead mode, where we don't want to ignore any selected clips
269
269
bounding_box . selected_ids = { } ;
270
- if ( item_type != "playhead" ) {
270
+ if ( item_type !== "playhead" ) {
271
271
for ( var clip_index = 0 ; clip_index < scope . project . clips . length ; clip_index ++ ) {
272
272
if ( scope . project . clips [ clip_index ] . selected ) {
273
273
bounding_box . selected_ids [ scope . project . clips [ clip_index ] . id ] = true ;
@@ -280,7 +280,7 @@ function setBoundingBox(scope, item, item_type="clip") {
280
280
}
281
281
} else {
282
282
// Get id of ruler, or trimming clip
283
- let id = item . attr ( 'id' ) . replace ( "clip_" , "" ) . replace ( "transition_" , "" ) ;
283
+ let id = item . attr ( "id" ) . replace ( "clip_" , "" ) . replace ( "transition_" , "" ) ;
284
284
bounding_box . selected_ids [ id ] = true ;
285
285
}
286
286
}
@@ -293,7 +293,7 @@ function moveBoundingBox(scope, previous_x, previous_y, x_offset, y_offset, left
293
293
snapping_result . top = top ;
294
294
295
295
// Check for shift key
296
- if ( typeof ( event ) !== "undefined" && event . shiftKey && item_type == "clip" ) {
296
+ if ( typeof ( event ) !== "undefined" && event . shiftKey && item_type === "clip" ) {
297
297
// freeze X movement for clips and transitions
298
298
x_offset = 0 ;
299
299
snapping_result . left = previous_x ;
0 commit comments