Skip to content

Commit

Permalink
namespace: fix flags
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Dec 24, 2012
1 parent bcfec6d commit 59c8c34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/namespace.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ Namespace.prototype.__proto__ = Emitter.prototype;
*/

exports.flags.forEach(function(flag){
Namespace.prototype.__defineGetter__(flag, function(name){
this.flags.push(name);
Namespace.prototype.__defineGetter__(flag, function(){
this.flags = this.flags || {};
this.flags[flag] = true;
return this;
});
});
Expand Down

0 comments on commit 59c8c34

Please sign in to comment.