Skip to content

Commit

Permalink
Prevent _bound of undefined exception on Cordova
Browse files Browse the repository at this point in the history
This is from the never merged PR of the original meteorhacks repo: 
meteorhacks#86
  • Loading branch information
dkrasnjak authored Jul 27, 2019
1 parent a4e4475 commit 136d627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/zone.js
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ function patchEventTargetMethods(obj, thing) {

var removeDelegate = obj.removeEventListener;
obj.removeEventListener = function (eventName, fn) {
if(arguments[1]._bound && arguments[1]._bound[eventName]) {
if(arguments[1] && arguments[1]._bound && arguments[1]._bound[eventName]) {
var _bound = arguments[1]._bound;
arguments[1] = _bound[eventName];
delete _bound[eventName];
Expand Down

0 comments on commit 136d627

Please sign in to comment.