From 31e5cd112043e014eb22f5256c449fce21630796 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. --- jsctags/ctags/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsctags/ctags/index.js b/jsctags/ctags/index.js index e898d79..87373fe 100644 --- a/jsctags/ctags/index.js +++ b/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;