Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit fda3af0

Browse files
committed
Merge pull request #5744 from SAPlayer/live-dev-use-lodash
LiveDev: Use _.findIndex instead of CollectionUtils.indexOf
2 parents ecc9ab3 + 07288ed commit fda3af0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/LiveDevelopment/LiveDevelopment.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ define(function LiveDevelopment(require, exports, module) {
6565

6666
require("utils/Global");
6767

68+
var _ = brackets.getModule("thirdparty/lodash");
69+
6870
// Status Codes
6971
var STATUS_ERROR = exports.STATUS_ERROR = -1;
7072
var STATUS_INACTIVE = exports.STATUS_INACTIVE = 0;
@@ -75,7 +77,6 @@ define(function LiveDevelopment(require, exports, module) {
7577
var STATUS_SYNC_ERROR = exports.STATUS_SYNC_ERROR = 5;
7678

7779
var Async = require("utils/Async"),
78-
CollectionUtils = require("utils/CollectionUtils"),
7980
FileIndexManager = require("project/FileIndexManager"),
8081
Dialogs = require("widgets/Dialogs"),
8182
DefaultDialogs = require("widgets/DefaultDialogs"),
@@ -709,7 +710,7 @@ define(function LiveDevelopment(require, exports, module) {
709710
};
710711

711712
while (!indexFileFound && stillInProjectTree) {
712-
i = CollectionUtils.indexOf(filteredFiltered, filterIndexFile);
713+
i = _.findIndex(filteredFiltered, filterIndexFile);
713714

714715
// We found no good match
715716
if (i === -1) {

0 commit comments

Comments
 (0)