Permalink
Browse files

Revert "Add support for latest Tern"

This reverts commit a492991.
  • Loading branch information...
1 parent 073fd9c commit e68d20b0bd8515356791f0aa87eb67b5652f8ce2 @mortalapeman committed May 1, 2014
Showing with 2 additions and 10 deletions.
  1. +2 −10 node/ternserver.js
View
@@ -69,21 +69,13 @@ function getServer(msg) {
async: true,
defs: loadLibs(msg.data.payload.config.libs),
plugins: loadPlugins(msg.data.payload.config.plugins),
- projectDir: "",
getFile: function(x, cb) {
var path = x;
if (!isWin && path && path[0] !== '/') {
path = '/' + x;
}
- _log(INFO, 'Attempting to load file', path);
- fs.exists(path, function(exists) {
- if (exists) {
- fs.readFile(path, {encoding: 'utf8'}, cb);
- } else {
- _log(WARNING, 'file does not exist, attempting to append ext', path);
- fs.readFile(path + '.js', {encoding: 'utf8'}, cb);
- }
- });
+ _log(INFO, "Attempting to load file", path);
+ fs.readFile(path, {encoding: 'utf8'}, cb);
}
});
return server;

0 comments on commit e68d20b

Please sign in to comment.