Permalink
Browse files

Don't always run trailer.finalized. Fixes #19.

  • Loading branch information...
1 parent 5c06a6c commit fa8571804d88d834f8440bfc2e6096d0c213e429 @partheseas committed Dec 13, 2011
Showing with 1 addition and 5 deletions.
  1. +1 −5 Trailer.js
View
@@ -34,11 +34,7 @@ trailer.EventEmitter = function () {
for ( prop in mark ) ( function ( method, name ) {
if ( Function.is( events.EventEmitter.prototype[ name ] ) ) {
mark[ name ] = function () {
- var m, t;
- t = trailer[ name ].apply( trailer, arguments )
- m = method.apply( mark, arguments )
-
- return t || m
+ return method.apply( mark, arguments ) || trailer[ name ].apply( trailer, arguments )
}
}
} )( mark[ prop ], prop )

0 comments on commit fa85718

Please sign in to comment.