Joined June 2013
·

Yannick Albert

Creative Freelance Webdeveloper
·
Kiel, Germany
·
·
·

Posted to Smallest event emitter over 1 year ago

Whoops...

No, you don't miss a thing. It was just my fault... Try to use an object instead of an array:

var c = $({});
c.on('abc', function () {
    console.log('123');
});
c.trigger('abc');

http://jsfiddle.net/xt7Bb/

Posted to Smallest event emitter over 1 year ago

Nope, $([]) <= 3 bytes saved

Achievements
95 Karma
2,068 Total ProTip Views
Interests & Skills