Skip to content

Commit

Permalink
Merge pull request #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 14, 2016
1 parent 8f8d9a9 commit 689f5cc
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 689f5cc

Please sign in to comment.