From 8398dc9c1ec5fa6a0abe790caabede4e8c5df958 Mon Sep 17 00:00:00 2001 From: Tobias Adam Date: Fri, 19 Apr 2013 17:38:00 +0200 Subject: [PATCH] jsctags works with nodejs 0.10.x again. Applied patch as described in https://github.com/mozilla/doctorjs/issues/52. --- lib/jsctags/ctags/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jsctags/ctags/index.js b/lib/jsctags/ctags/index.js index fff958c..aa65449 100644 --- a/lib/jsctags/ctags/index.js +++ b/lib/jsctags/ctags/index.js @@ -43,11 +43,11 @@ var TagWriter = require('./writer').TagWriter; var Trait = require('../traits').Trait; exports.Tags = function (initialTags) { - this.tags = initialTags != null ? initialTags : []; this.init(); }; exports.Tags.prototype = Object.create(Object.prototype, Trait.compose(Trait({ + tags: [], _search: function (id, pred) { var shadowTag = { name: id }; var tags = this.tags;