Move tern and acorn submodules into thirdparty directory.

This commit is contained in:
Erik Tierney committed 2013-04-12 13:27:04 -04:00
1 parent 40e159981a
commit 1c62677c18
5 files changed
+14 -3

No files matched your search

@@ -70,7 +70,7 @@ define(function (require, exports, module) {
* Read in the json files that have type information for the builtins, dom,etc
*/
function initTernEnv() {
var path = module.uri.substring(0, module.uri.lastIndexOf("/") + 1) + "tern/defs/";
var path = module.uri.substring(0, module.uri.lastIndexOf("/") + 1) + "thirdparty/tern/defs/";
var files = ["ecma5.json", "browser.json"];//, "plugin/requirejs/requirejs.json", "jquery.json"];
files.forEach(function (i) {
@@ -31,9 +31,12 @@ importScripts("thirdparty/requirejs/require.js");
var HintUtils;
var Tern;
require(["./HintUtils", "./tern/lib/tern", "./tern/plugin/requirejs"], function(hintUtils, tern, requirejs) {
require(["./HintUtils"], function(hintUtils) {
HintUtils = hintUtils;
Tern = tern;
var ternRequire = require.config({baseUrl: "./thirdparty"});
ternRequire(["tern/lib/tern", "tern/plugin/requirejs"], function(tern, requirejs) {
Tern = tern;
} );
} );
var ternServer = null;