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.
(cherry picked from commit ca5a0da)
  • Loading branch information
gaearon authored and zpao committed Jun 8, 2016
1 parent 74b5f29 commit d030816
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 d030816

Please sign in to comment.