mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Add additional explanation to fix for #995
This commit is contained in:
parent
724bcb2e35
commit
2a3945c4a5
1 changed files with 2 additions and 0 deletions
|
@ -57,6 +57,8 @@ var MouseEvent = Event.extend(/** @lends MouseEvent# */{
|
||||||
* @type Item
|
* @type Item
|
||||||
*/
|
*/
|
||||||
getTarget: function() {
|
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;
|
var target = this._target;
|
||||||
if (typeof target === 'function')
|
if (typeof target === 'function')
|
||||||
target = this._target = target();
|
target = this._target = target();
|
||||||
|
|
Loading…
Reference in a new issue