From cfdf7463924d580f0e3a38eafd5cf3f555ffac11 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Wed, 13 Jan 2010 00:22:47 +0100 Subject: Actually I have overdone it with that-s. --- bugzillaBugTriage.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js index 359285c..eb1668b 100644 --- a/bugzillaBugTriage.js +++ b/bugzillaBugTriage.js @@ -534,16 +534,16 @@ BzPage.prototype.serializeForm = function (form) { return serialForm; }; -BzPage.prototype.submitCallback = function(evt,that) { +BzPage.prototype.submitCallback = function(evt) { console.log("Submit Callback!"); if (jetpack.__parent__.navigator.onLine) { - var serForm = that.serializeForm(jetpack.tabs.focused. + var serForm = this.serializeForm(jetpack.tabs.focused. contentWindow.document.forms.namedItem("changeform")); console.log("serForm:\n"+serForm.toSource()); } else { - var serForm = that.serializeForm(jetpack.tabs.focused. + var serForm = this.serializeForm(jetpack.tabs.focused. contentWindow.document.forms.namedItem("changeform")); - myStorage.forms[that.bugNo] = serForm; + myStorage.forms[this.bugNo] = serForm; evt.stopPropagation(); evt.preventDefault(); } @@ -1816,7 +1816,7 @@ function BzPage(doc) { // offline-capable submit this.dok.forms.namedItem("changeform"). addEventListener('submit', function (evt) { - that.submitCallback(evt, that)}, + that.submitCallback.call(that, evt)}, false); } -- cgit