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:
commit
ca5a0dad16
1 file changed
+4
@@ -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