mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +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:
1 parent
8f8d9a9dde
commit
689f5cc187
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