Little bit of tidying.

This commit is contained in:
Tom Ashworth 2013-07-01 17:12:06 +01:00
parent 3151bad9e4
commit 59bfb9e5cd

View File

@ -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);
}
};