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:
Dan Abramov
2016-05-26 21:14:50 +01:00
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;
}