Fix targets undefined

This commit is contained in:
Andrea Bogazzi 2016-07-01 09:50:42 +02:00 committed by GitHub
parent 5166ab76c8
commit f1ff91dbc3

View file

@ -318,7 +318,7 @@
*/
_handleEvent: function(e, eventType, targetObj) {
var target = typeof targetObj === undefined ? this.findTarget(e) : targetObj,
targets = this.targets,
targets = this.targets || [ ],
options = { e: e, target: target, subTargets: targets };
this.fire('mouse:' + eventType, options);