mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
fix problem where jQuery was not recognized as a builtin
This commit is contained in:
1 parent
5a2efdf1db
commit
7b31da7705
2 files changed
+12
-17
No files matched your search
@@ -44,16 +44,7 @@ define(function (require, exports, module) {
|
||||
this.ternHints = [];
|
||||
this.ternProperties = [];
|
||||
this.fnType = null;
|
||||
this.builtins = ScopeManager.getBuiltins().map(function (builtin) {
|
||||
// remove extension from name, if any.
|
||||
var index = builtin.lastIndexOf(".");
|
||||
if (index !== -1) {
|
||||
builtin = builtin.substring(0, index);
|
||||
}
|
||||
|
||||
return builtin;
|
||||
});
|
||||
|
||||
this.builtins = ScopeManager.getBuiltins();
|
||||
this.builtins.push("requirejs.js"); // consider these globals as well.
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user