mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
Have ToolEvent#item fallback to returning null, not undefined.
This commit is contained in:
parent
bb5bc4e85a
commit
900f3fe2dd
1 changed files with 3 additions and 0 deletions
|
@ -26,6 +26,9 @@
|
|||
* @extends Event
|
||||
*/
|
||||
var ToolEvent = this.ToolEvent = Event.extend(/** @lends ToolEvent# */{
|
||||
// Have ToolEvent#item fall back to returning null, not undefined.
|
||||
_item: null,
|
||||
|
||||
initialize: function(tool, type, event) {
|
||||
this.tool = tool;
|
||||
this.type = type;
|
||||
|
|
Loading…
Reference in a new issue