Have ToolEvent#item fallback to returning null, not undefined.

This commit is contained in:
Jürg Lehni 2012-11-21 10:38:29 -08:00
parent bb5bc4e85a
commit 900f3fe2dd

View file

@ -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;