Skip to content

Commit

Permalink
Fixes such that stuff will actually work.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveWang committed Jul 19, 2011
1 parent c285973 commit 4b107cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/group.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ exports.initialize = function (nowjs) {

Group.prototype.deleteVar = function (fqn) {
var obj = nowUtil.clone(this, {fqn: fqn});
nowjs.emit('groupdel', obj});
nowjs.emit('groupdel', obj);
};

Group.prototype.set = function (fqn, val) {
Expand Down
3 changes: 2 additions & 1 deletion lib/nowUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ var util = {
},

clone: function (proto, obj) {
if (!(obj && typeof obj == 'object')) obj = {};
obj.__proto__ = proto;
return obj;
},
Expand All @@ -22,7 +23,7 @@ var util = {
console.log(err.stack);
}
},

getAllChildFqns: function (parentObj, parentFqn) {
var fqns = [];

Expand Down

0 comments on commit 4b107cc

Please sign in to comment.