Skip to content

Commit 6d24879

Browse files
authored
Merge pull request #4212 from OpenShot/has_own_property_exception
Default ignore_ids to empty object
2 parents 5075809 + d7337b1 commit 6d24879

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/timeline/js/controllers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ App.controller("TimelineCtrl", function ($scope) {
10921092
};
10931093

10941094
// Search through clips and transitions to find the closest element within a given threshold
1095-
$scope.getNearbyPosition = function (pixel_positions, threshold, ignore_ids) {
1095+
$scope.getNearbyPosition = function (pixel_positions, threshold, ignore_ids={}) {
10961096
// init some vars
10971097
var smallest_diff = 900.0;
10981098
var smallest_abs_diff = 900.0;

0 commit comments

Comments
 (0)