Revision: 4347 http://vexi.svn.sourceforge.net/vexi/?rev=4347&view=rev Author: clrg Date: 2012-02-01 02:30:37 +0000 (Wed, 01 Feb 2012) Log Message: ----------- Minor refactor
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 2012-02-01 02:29:12 UTC (rev 4346) +++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/role/tooltipmanager.t 2012-02-01 02:30:37 UTC (rev 4347) @@ -17,7 +17,7 @@ const model = {}; const getModel = function() { return model; } - const assignModel = function(removeFrom, addTo) { + const assignModel = function(addTo, removeFrom) { if (addTo) { addTo.tooltip ++= getModel; addTo.tooltip ++= .util.common..readOnly; @@ -29,13 +29,13 @@ } // already have access to the surface model - if (surface) assignModel(null, surface); + if (surface) assignModel(surface); /** gracefully handle surface changes */ surface ++= function(v) { var s = surface; cascade = v; - if (v and v!=s) assignModel(s, v); + if (v and v!=s) assignModel(v, s); } /** drop tooltip with mouse interaction */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn