Update getView to handle DOM elements without getAttribute, e.g. SVGDocument

This commit is contained in:
Ian Spivey 2013-01-28 18:59:37 -08:00
parent 6c9c16ad3d
commit 0df86550e6

View file

@ -530,6 +530,9 @@ var View = this.View = Base.extend(Callback, /** @lends View# */{
function getView(event) {
// Get the view from the current event target.
var target = DomEvent.getTarget(event);
if (target.getAttribute === undefined)
return false;
return View._viewsById[DomEvent.getTarget(event).getAttribute('id')];
}