mirror of
https://github.com/jsbin/jsbin.git
synced 2026-02-01 16:46:05 +00:00
Little bit of tidying.
This commit is contained in:
parent
3151bad9e4
commit
59bfb9e5cd
@ -175,6 +175,9 @@ function showhelp() {
|
||||
return commands.join('\n');
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle loading scripts and DOM into dynamic iframe with event listeners
|
||||
*/
|
||||
var load = (function () {
|
||||
|
||||
$document.on('console:load:script:error', function (event, err) {
|
||||
@ -254,26 +257,22 @@ window._console = {
|
||||
for (; i < l; i++) {
|
||||
log(''+arguments[i], true);
|
||||
}
|
||||
// window.console.log.apply(window.console, arguments);
|
||||
},
|
||||
dir: function () {
|
||||
var l = arguments.length, i = 0;
|
||||
for (; i < l; i++) {
|
||||
log(arguments[i]);
|
||||
}
|
||||
// window.console.dir.apply(window.console, arguments);
|
||||
},
|
||||
props: function (obj) {
|
||||
var props = [], realObj;
|
||||
try {
|
||||
for (var p in obj) props.push(p);
|
||||
} catch (e) {}
|
||||
// window.console.props.apply(window.console, arguments);
|
||||
return props;
|
||||
},
|
||||
error: function (err) {
|
||||
log(err.message || err, 'error');
|
||||
// window.console.error.apply(window.console, arguments);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user