update files

This commit is contained in:
nuintun
2015-11-25 11:41:48 +08:00
parent e9e39f1eb4
commit 9bef05d523
2 changed files with 7 additions and 10 deletions

View File

@@ -6,7 +6,7 @@
module.exports = function (Terminal){
Terminal.prototype.log = function (){
if (!Terminal.debug) return;
if (!this.debug) return;
if (!window.console || !window.console.log) return;
@@ -16,7 +16,7 @@ module.exports = function (Terminal){
};
Terminal.prototype.error = function (){
if (!Terminal.debug) return;
if (!this.debug) return;
if (!window.console || !window.console.error) return;