Skip to content

Commit

Permalink
Fixture for TypeError: fn.apply is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
Akarda committed Apr 18, 2019
1 parent 1976b6e commit d6a6931
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion assets/tracer.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ extendZone({
if(ownerInfo) {
zone.setOwnerArgs(validateArgs(this, arguments));
}
return zone.run(func, this, arguments);

// don´t run if callback is a object
if (typeof func !== "object") {
return zone.run(func, this, arguments);
}
};
},

Expand Down
3 changes: 2 additions & 1 deletion assets/zone.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ function apply() {
'prompt'
]);

eventTargetPatch.apply();
// disabled becouse this let not apply event functions anymore (e.g. sortablejs)
// eventTargetPatch.apply();

propertyDescriptorPatch.apply();

Expand Down

0 comments on commit d6a6931

Please sign in to comment.