<@class name="SvgBehavior" hide="yes"> The abstract element behavior, from which all element behaviors are derived (c) SAP AG 2003-2006. All rights reserved. // constructor function SvgBehavior() { } SVG.declareClass(SvgBehavior); ////////////////////////////////////////////////////////////////////////////////////// // PRIVATE // behavior's listeners list SvgBehavior.prototype.listeners = []; // attaches the behavior to a given peer element SvgBehavior.prototype.attach = function(peer, props) { if (this.peer) this.detach(); this.peer = peer; for (var i=0, len=this.listeners.length; i