Skip to content

Commit

Permalink
Include console.clear()
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanve committed Nov 3, 2013
1 parent 19552b7 commit 942a58a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
abstracts('info', 1);
abstracts('warn', 1);
abstracts('error', 1);
abstracts('clear', 0, function() {});
abstracts('assert', 1, function(exp, msg) {
exp || abstracted['warn'](msg);
});
Expand Down
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@
test:function() {
if (!aok.console) return;
browse && aok.info('#' + this.id + ':');
return !aok.fail(['trace', 'assert', 'error', 'warn', 'info', 'log'], function(n) {
return !aok.fail(['clear', 'trace', 'assert', 'error', 'warn', 'info', 'log'], function(n) {
var f = this.console[n];
if (typeof f == 'function' && f === this[n] && typeof f.force == 'boolean') {
browse && f('...' + n);
browse && n !== 'clear' && f('...' + n);
return true;
}
}, aok, 1);
Expand Down

0 comments on commit 942a58a

Please sign in to comment.