source: [view]
this.inherited(arguments);
// images are hard to make into workable templates, so just add outer overlay
// and skip using dijit._Templated
this._adjustScale();
this._createGlass();
this.connect(this.domNode,"onmouseenter","_showGlass");
this.connect(this.glassNode,"onmousemove","_placeGlass");
this.connect(this.img,"onmouseout","_hideGlass");
// when position of domNode changes, _adjustScale needs to run.
// window.resize isn't it always, FIXME:
this.connect(window,"onresize","_adjustScale");