Skip to content

Commit

Permalink
Merge pull request facebook#6886 from Weizenlol/patch-1
Browse files Browse the repository at this point in the history
Added own property check when deleting listeners.
  • Loading branch information
gaearon committed May 26, 2016
2 parents 1d3aceb + b1882f8 commit ca5a0da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/renderers/shared/stack/event/EventPluginHub.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ var EventPluginHub = {
*/
deleteAllListeners: function(inst) {
for (var registrationName in listenerBank) {
if (!listenerBank.hasOwnProperty(registrationName)) {
continue;
}

if (!listenerBank[registrationName][inst._rootNodeID]) {
continue;
}
Expand Down

0 comments on commit ca5a0da

Please sign in to comment.