Fix lint errors

This commit is contained in:
Julian Viereck 2011-10-09 10:37:53 +02:00
parent a6180830f8
commit 20a348fc0c
7 changed files with 342 additions and 421 deletions

View file

@ -8,14 +8,14 @@ function MessageHandler(name, comObj) {
this.name = name;
this.comObj = comObj;
var ah = this.actionHandler = {};
ah["console_log"] = [function(data) {
ah['console_log'] = [function(data) {
console.log.apply(console, data);
}]
ah["console_error"] = [function(data) {
}];
ah['console_error'] = [function(data) {
console.error.apply(console, data);
}]
}];
comObj.onmessage = function(event) {
var data = event.data;
if (data.action in ah) {
@ -39,8 +39,8 @@ MessageHandler.prototype = {
send: function(actionName, data) {
this.comObj.postMessage({
action: actionName,
data: data
});
data: data
});
}
}
};