Add additional explanation to fix for #995

This commit is contained in:
Jürg Lehni 2016-06-14 16:54:16 +02:00
parent 724bcb2e35
commit 2a3945c4a5

View file

@ -57,6 +57,8 @@ var MouseEvent = Event.extend(/** @lends MouseEvent# */{
* @type Item
*/
getTarget: function() {
// #_target may be a hitTest() function, in which case we need to
// execute and override it the first time #target is requested.
var target = this._target;
if (typeof target === 'function')
target = this._target = target();