Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit 3e2f1ef

Browse files
author
Dean Sofer
committed
Cleaning up more logic
1 parent 603b324 commit 3e2f1ef

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

‎NGUtils.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,8 @@ define(function (require, exports, module) {
158158
*/
159159
function _readFile(fileInfo) {
160160
return DocumentManager.getDocumentForPath(fileInfo.fullPath)
161-
.done(function (doc) {
161+
.then(function (doc) {
162162
var allFunctions = _findAllFunctionsInText(doc.getText());
163-
164-
// Cache the result in the fileInfo object
165-
fileInfo.JSUtils = {};
166-
fileInfo.JSUtils[_functionRegExp] = allFunctions;
167-
fileInfo.JSUtils.timestamp = doc.diskTimestamp;
168-
169163
return {doc: doc, functions: allFunctions};
170164
});
171165
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /