Skip to content

Commit

Permalink
Fix bug in helper library.
Browse files Browse the repository at this point in the history
  • Loading branch information
treshugart committed Aug 19, 2013
1 parent d153bd4 commit e033af9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/ghoul.js
@@ -1,18 +1,18 @@
!function(factory) {
if (typeof exports === 'object') {
module.exports = factory(require('q'));
module.exports = factory();
} else if (typeof define === 'function' && define.amd) {
define(['q'], factory);
define(factory);
} else {
ghoul = factory(Q);
ghoul = factory();
}
}(function(ghoul) {
ghoul.emit = function(name) {
var args = [].slice.apply(arguments)
, name = args.shift();
}(function() {
return {
emit: function(name) {
var args = [].slice.apply(arguments)
, name = args.shift();

console.log('ghoul.' + name, JSON.stringify(args));
console.log('ghoul.' + name, JSON.stringify(args));
}
};

return ghoul;
});

0 comments on commit e033af9

Please sign in to comment.