Created
March 20, 2013 20:03
-
-
Save ericmann/5207959 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( function( window, undefined ) { | |
var Logger = function() { | |
var SELF = this, | |
log = []; | |
SELF.append = function( data ) { | |
log.push( data ); | |
}; | |
SELF.getData = function() { | |
return log; | |
}; | |
SELF.reset = function() { | |
log = []; | |
}; | |
}; | |
window.logger = new Logger(); | |
} )( this ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment