Skip to content

Commit

Permalink
Add array of logs to history
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaslein committed May 12, 2015
1 parent 8631305 commit 3819f65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ exports.init = function(config) {
* @param {*} arguments...
*/
exports.log = function() {
log.history = log.history || [];
var args = (1 <= arguments.length) ? Array.prototype.slice.call(arguments, 0) : [];
log.history.push(args);
if (!initialized) {
exports.init();
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "util.log",
"description": "A window.log() function enabled through a document.location whitelist",
"version": "0.0.2",
"version": "0.1.0",
"author": "Thomas Lein <[email protected]>",
"dependencies": {
},
Expand Down

0 comments on commit 3819f65

Please sign in to comment.