Skip to content

Commit

Permalink
Trying more eslint variations
Browse files Browse the repository at this point in the history
  • Loading branch information
jonoomph committed Jun 3, 2020
1 parent eb5ee41 commit 2e134b7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/timeline/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ App.controller("TimelineCtrl", function ($scope) {

// Update GUI with position (so the preview can be updated)
if ($scope.Qt) {
/*eslint new-cap: [2, {"capIsNewExceptions": ["timeline.PlayheadMoved"]}]*/
timeline.PlayheadMoved(frame);
}
};
Expand All @@ -140,7 +139,6 @@ App.controller("TimelineCtrl", function ($scope) {

// Update GUI with position (so the preview can be updated)
if ($scope.Qt) {
/*eslint new-cap: [2, {"capIsNewExceptions": ["timeline.PreviewClipFrame"]}]*/
timeline.PreviewClipFrame(clip_id, frame);
}
};
Expand Down Expand Up @@ -517,7 +515,6 @@ App.controller("TimelineCtrl", function ($scope) {
if (id !== "" && $scope.enable_razor) {
if ($scope.Qt) {
var cursor_seconds = $scope.getJavaScriptPosition(event.clientX);
/*eslint new-cap: [2, {"capIsNewExceptions": ["timeline.RazorSliceAtCursor"]}]*/
timeline.RazorSliceAtCursor(id, "", cursor_seconds);
}
// Don't actually select clip
Expand Down Expand Up @@ -636,7 +633,6 @@ App.controller("TimelineCtrl", function ($scope) {
if ($scope.Qt && !$scope.enable_razor) {
timeline.qt_log("$scope.showClipMenu");
$scope.selectClip(clip_id, false, event);
/*eslint new-cap: [2, {"capIsNewExceptions": ["timeline.ShowClipMenu"]}]*/
timeline.ShowClipMenu(clip_id);
}
};
Expand All @@ -645,7 +641,6 @@ App.controller("TimelineCtrl", function ($scope) {
$scope.showEffectMenu = function (effect_id) {
if ($scope.Qt && !$scope.enable_razor) {
timeline.qt_log("$scope.showEffectMenu");
/*eslint new-cap: [2, {"capIsNewExceptions": ["timeline.ShowEffectMenu"]}]*/
timeline.ShowEffectMenu(effect_id);
}
};
Expand All @@ -655,7 +650,6 @@ App.controller("TimelineCtrl", function ($scope) {
if ($scope.Qt && !$scope.enable_razor) {
timeline.qt_log("$scope.showTransitionMenu");
$scope.selectTransition(tran_id, false, event);
/*eslint new-cap: [2, {"capIsNewExceptions": ["timeline.ShowTransitionMenu"]}]*/
timeline.ShowTransitionMenu(tran_id);
}
};
Expand All @@ -664,7 +658,6 @@ App.controller("TimelineCtrl", function ($scope) {
$scope.showTrackMenu = function (layer_id) {
if ($scope.Qt && !$scope.enable_razor) {
timeline.qt_log("$scope.showTrackMenu");
/*eslint new-cap: [2, {"capIsNewExceptions": ["timeline.ShowTrackMenu"]}]*/
timeline.ShowTrackMenu(layer_id);
}
};
Expand All @@ -673,7 +666,6 @@ App.controller("TimelineCtrl", function ($scope) {
$scope.showMarkerMenu = function (marker_id) {
if ($scope.Qt && !$scope.enable_razor) {
timeline.qt_log("$scope.showMarkerMenu");
/*eslint new-cap: [2, {"capIsNewExceptions": ["timeline.ShowMarkerMenu"]}]*/
timeline.ShowMarkerMenu(marker_id);
}
};
Expand All @@ -682,15 +674,13 @@ App.controller("TimelineCtrl", function ($scope) {
$scope.showPlayheadMenu = function (position) {
if ($scope.Qt && !$scope.enable_razor) {
timeline.qt_log("$scope.showPlayheadMenu");
/*eslint new-cap: [2, {"capIsNewExceptions": ["timeline.ShowPlayheadMenu"]}]*/
timeline.ShowPlayheadMenu(position);
}
};

// Show timeline context menu
$scope.showTimelineMenu = function (e, layer_number) {
if ($scope.Qt && !$scope.enable_razor) {
/*eslint new-cap: [2, {"capIsNewExceptions": ["timeline.ShowTimelineMenu"]}]*/
timeline.ShowTimelineMenu($scope.getJavaScriptPosition(e.pageX), layer_number);
}
};
Expand Down

0 comments on commit 2e134b7

Please sign in to comment.