Merge pull request #2927 from mduan/fix-this-binding

Fix issue with 'this' binding in PdfStreamConverter
This commit is contained in:
Brendan Dahl 2013-03-13 11:35:58 -07:00
commit 5dc9e203e1

View File

@ -337,6 +337,7 @@ ChromeActions.prototype = {
}, '*');
};
var self = this;
this.dataListener.oncomplete =
function ChromeActions_dataListenerComplete(data, errorCode) {
@ -346,7 +347,7 @@ ChromeActions.prototype = {
errorCode: errorCode
}, '*');
delete this.dataListener;
delete self.dataListener;
};
return true;