Merge pull request #2927 from mduan/fix-this-binding
Fix issue with 'this' binding in PdfStreamConverter
This commit is contained in:
commit
5dc9e203e1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user