Skip to content

Commit

Permalink
fixup! Core: QUnit logging system uses EventEmitter
Browse files Browse the repository at this point in the history
  • Loading branch information
leobalter committed Oct 27, 2015
1 parent bf2e02c commit f8e28ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ function emit( type, data ) {

callbacks = listeners[ type ];
if ( callbacks ) {

// Ensure a consistent event run
callbacks = callbacks.slice();
for ( i = 0; i < callbacks.length; i++ ) {
callbacks[ i ]( data );
}
Expand Down

0 comments on commit f8e28ea

Please sign in to comment.