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.
(cherry picked from commit ca5a0dad16)
This commit is contained in:
committed by
Paul O’Shannessy
parent
8f8d9a9dde
commit
689f5cc187
@@ -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