mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #6886 from Weizenlol/patch-1
Added own property check when deleting listeners.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user