Joined June 2013
·

Yannick Albert

Creative Freelance Webdeveloper
Creative Freelance Webdeveloper
·
Kiel, Germany
·
·
·

One other reason to use Array.forEach is that it is not supported by IE8. ;-)

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
1,443 Total ProTip Views
Interests & Skills