Commit 6dda7c10 authored by serapath's avatar serapath

REMOVE unused commented stuff

parent 48ade37f
...@@ -96,41 +96,7 @@ var css = csjs` ...@@ -96,41 +96,7 @@ var css = csjs`
} }
` `
// var currentError
//
// window.addEventListener('error', function (event) {
// currentError = new Error(event.message)
// currentError.timeStamp = event.timeStamp
// currentError.isTrusted = event.isTrusted
// currentError.filename = event.filename
// currentError.lineno = event.lineno
// currentError.colno = event.colno
// currentError.error = event.error
// currentError.type = event.type
// })
//
// window.onerror = function (msg, url, lineno, col, error) {
// if (!error) error = currentError
// var val = { msg: msg, url: url, lineno: lineno, col: col, error: error }
// console.error(val)
// }
var KONSOLES = [] var KONSOLES = []
// var KONSOLES = [{
// error: console.error.bind(console),
// info: console.info.bind(console),
// log: console.log.bind(console)
// }]
// console.error = broadcast('error')
// console.info = broadcast('info')
// console.log = broadcast('log')
//
// function broadcast (mode) {
// return function broadcastMode () {
// var args = arguments
// KONSOLES.forEach(function (api) { api[mode].apply(api, args) })
// }
// }
function register (api) { KONSOLES.push(api) } function register (api) { KONSOLES.push(api) }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment