Skip to content

Commit eb5ee41

Browse files
committed
Trying more eslint variations
1 parent 6b8d9de commit eb5ee41

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/timeline/js/controllers.js

+9
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ App.controller("TimelineCtrl", function ($scope) {
124124

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

140141
// Update GUI with position (so the preview can be updated)
141142
if ($scope.Qt) {
143+
/*eslint new-cap: [2, {"capIsNewExceptions": ["timeline.PreviewClipFrame"]}]*/
142144
timeline.PreviewClipFrame(clip_id, frame);
143145
}
144146
};
@@ -634,6 +636,7 @@ App.controller("TimelineCtrl", function ($scope) {
634636
if ($scope.Qt && !$scope.enable_razor) {
635637
timeline.qt_log("$scope.showClipMenu");
636638
$scope.selectClip(clip_id, false, event);
639+
/*eslint new-cap: [2, {"capIsNewExceptions": ["timeline.ShowClipMenu"]}]*/
637640
timeline.ShowClipMenu(clip_id);
638641
}
639642
};
@@ -642,6 +645,7 @@ App.controller("TimelineCtrl", function ($scope) {
642645
$scope.showEffectMenu = function (effect_id) {
643646
if ($scope.Qt && !$scope.enable_razor) {
644647
timeline.qt_log("$scope.showEffectMenu");
648+
/*eslint new-cap: [2, {"capIsNewExceptions": ["timeline.ShowEffectMenu"]}]*/
645649
timeline.ShowEffectMenu(effect_id);
646650
}
647651
};
@@ -651,6 +655,7 @@ App.controller("TimelineCtrl", function ($scope) {
651655
if ($scope.Qt && !$scope.enable_razor) {
652656
timeline.qt_log("$scope.showTransitionMenu");
653657
$scope.selectTransition(tran_id, false, event);
658+
/*eslint new-cap: [2, {"capIsNewExceptions": ["timeline.ShowTransitionMenu"]}]*/
654659
timeline.ShowTransitionMenu(tran_id);
655660
}
656661
};
@@ -659,6 +664,7 @@ App.controller("TimelineCtrl", function ($scope) {
659664
$scope.showTrackMenu = function (layer_id) {
660665
if ($scope.Qt && !$scope.enable_razor) {
661666
timeline.qt_log("$scope.showTrackMenu");
667+
/*eslint new-cap: [2, {"capIsNewExceptions": ["timeline.ShowTrackMenu"]}]*/
662668
timeline.ShowTrackMenu(layer_id);
663669
}
664670
};
@@ -667,6 +673,7 @@ App.controller("TimelineCtrl", function ($scope) {
667673
$scope.showMarkerMenu = function (marker_id) {
668674
if ($scope.Qt && !$scope.enable_razor) {
669675
timeline.qt_log("$scope.showMarkerMenu");
676+
/*eslint new-cap: [2, {"capIsNewExceptions": ["timeline.ShowMarkerMenu"]}]*/
670677
timeline.ShowMarkerMenu(marker_id);
671678
}
672679
};
@@ -675,13 +682,15 @@ App.controller("TimelineCtrl", function ($scope) {
675682
$scope.showPlayheadMenu = function (position) {
676683
if ($scope.Qt && !$scope.enable_razor) {
677684
timeline.qt_log("$scope.showPlayheadMenu");
685+
/*eslint new-cap: [2, {"capIsNewExceptions": ["timeline.ShowPlayheadMenu"]}]*/
678686
timeline.ShowPlayheadMenu(position);
679687
}
680688
};
681689

682690
// Show timeline context menu
683691
$scope.showTimelineMenu = function (e, layer_number) {
684692
if ($scope.Qt && !$scope.enable_razor) {
693+
/*eslint new-cap: [2, {"capIsNewExceptions": ["timeline.ShowTimelineMenu"]}]*/
685694
timeline.ShowTimelineMenu($scope.getJavaScriptPosition(e.pageX), layer_number);
686695
}
687696
};

0 commit comments

Comments
 (0)