Skip to content

Commit

Permalink
delint
Browse files Browse the repository at this point in the history
  • Loading branch information
hegemonic committed Oct 26, 2014
1 parent e60fc3c commit b28f334
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
8 changes: 4 additions & 4 deletions lib/jsdoc/augment.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ exports.addInherited = function(docs) {
var additions = getAdditions(doclets, docs, docs.index.documented);

additions.forEach(function(doc) {
var name = doc.longname;
var longname = doc.longname;

if ( !hasOwnProp.call(index, name) ) {
index[name] = [];
if ( !hasOwnProp.call(index, longname) ) {
index[longname] = [];
}
index[name].push(doc);
index[longname].push(doc);
docs.push(doc);
});
});
Expand Down
5 changes: 2 additions & 3 deletions lib/jsdoc/src/walker.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,13 +478,12 @@ var Walker = exports.Walker = function(walkerFuncs) {

// TODO: docs
Walker.prototype._recurse = function(filename, ast) {
// TODO: track variables/aliases during the walk
var self = this;
var state = {
filename: filename,
nodes: [],
scopes: []
};
var walkers = this._walkers;

function cb(node, parent, state) {
var currentScope;
Expand All @@ -509,7 +508,7 @@ Walker.prototype._recurse = function(filename, ast) {
}
state.nodes.push(node);

walkers[node.type](node, parent, state, cb);
self._walkers[node.type](node, parent, state, cb);

if (isScope) {
state.scopes.pop();
Expand Down
4 changes: 2 additions & 2 deletions lib/jsdoc/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ exports.Template = function(path) {
this.cache = {};
// override default template tag settings
this.settings = {
evaluate : /<\?js([\s\S]+?)\?>/g,
evaluate: /<\?js([\s\S]+?)\?>/g,
interpolate: /<\?js=([\s\S]+?)\?>/g,
escape : /<\?js~([\s\S]+?)\?>/g
escape: /<\?js~([\s\S]+?)\?>/g
};

};
Expand Down
2 changes: 1 addition & 1 deletion lib/jsdoc/util/dumper.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function ObjectWalker() {
ObjectWalker.prototype.seen = function(object) {
var result;
if (setDefined) {
result = this.seenItems.has(object);
result = this.seenItems.has(object);
} else {
result = object.hasBeenSeenByWalkerDumper;
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/partial.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ exports.handlers = {
beforeParse: function(e) {
e.source = e.source.replace(/(@partial \".*\")+/g, function($) {
var pathArg = $.match(/\".*\"/)[0].replace(/"/g,'');
var fullPath = path.join(e.filename , '..', pathArg);
var fullPath = path.join(e.filename , '..', pathArg);

var partialData = fs.readFileSync(fullPath, env.opts.encoding);

Expand Down
2 changes: 1 addition & 1 deletion templates/default/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ exports.publish = function(taffyData, opts, tutorials) {

if (example.match(/^\s*<caption>([\s\S]+?)<\/caption>(\s*[\n\r])([\s\S]+)$/i)) {
caption = RegExp.$1;
code = RegExp.$3;
code = RegExp.$3;
}

return {
Expand Down

0 comments on commit b28f334

Please sign in to comment.