Revision: 4291 http://vexi.svn.sourceforge.net/vexi/?rev=4291&view=rev Author: jeffbuhrt Date: 2011-10-25 16:08:09 +0000 (Tue, 25 Oct 2011) Log Message: ----------- Allow GC cleanup of surfaces that use a tooltip that might have been active.
Modified Paths: -------------- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/role/tooltipmanager.t Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/role/tooltipmanager.t =================================================================== --- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/role/tooltipmanager.t 2011-10-25 12:27:43 UTC (rev 4290) +++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/role/tooltipmanager.t 2011-10-25 16:08:09 UTC (rev 4291) @@ -16,8 +16,18 @@ var tip = false; // 'thread in progress' flag var model = {}; - surface.tooltip ++= function() { return model; } - surface.tooltip ++= .util.common..readOnly; + getModel = function() { return model; } + surface ++= function(v) { + cascade = v; + if (v) { + surface.tooltip ++= getModel; + surface.tooltip ++= .util.common..readOnly; + } + else { + surface.tooltip --= getModel; + surface.tooltip --= .util.common..readOnly; + } + } /** drop tooltip with mouse interaction */ var pressWrite = function(v) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn