Skip to content

Commit

Permalink
solved requires
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioramos committed Mar 14, 2012
1 parent 1a77ea0 commit a977a1e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@

.DS_Store
14 changes: 7 additions & 7 deletions bin/jsctags.js
Expand Up @@ -39,12 +39,12 @@
var argv = process.argv;
var path = require('path');

var _ = require('underscore')._;
var _ = require('../lib/jsctags/underscore')._;
var fs = require('fs');
var util = require('util');
var ctags = require('ctags');
var getopt = require('getopt').getopt;
var log = require('log');
var ctags = require('../lib/jsctags/ctags');
var getopt = require('../lib/jsctags/getopt').getopt;
var log = require('../lib/jsctags/log');
var Tags = ctags.Tags;

function usage() {
Expand Down Expand Up @@ -102,8 +102,8 @@ var tags = new Tags();

// Ascend the directory hierarchy to find the CommonJS package this module is
// in, if any.
function getModuleInfo(fullPath) {
function commonJS(modulePath, packageId) {
function getModuleInfo (fullPath) {
function commonJS (modulePath, packageId) {
var ext = path.extname(modulePath), len = modulePath.length;
var modulePart = modulePath.substring(0, len - ext.length);
var moduleId = (packageId != null)
Expand Down Expand Up @@ -170,7 +170,7 @@ function getModuleInfo(fullPath) {
}

var idsSeen = {};
function processPath(p) {
function processPath (p) {
var st = fs.statSync(p);
var id = idFor(st);
if (id in idsSeen) {
Expand Down
2 changes: 1 addition & 1 deletion lib/jsctags/ctags/index.js
Expand Up @@ -40,7 +40,7 @@ var _ = require('underscore')._;
var Interpreter = require('./interp').Interpreter;
var TagReader = require('./reader').TagReader;
var TagWriter = require('./writer').TagWriter;
var Trait = require('traits').Trait;
var Trait = require('../traits').Trait;

exports.Tags = function(initialTags) {
this.tags = initialTags != null ? initialTags : [];
Expand Down

0 comments on commit a977a1e

Please sign in to comment.