Revision: 3884 http://vexi.svn.sourceforge.net/vexi/?rev=3884&view=rev Author: clrg Date: 2010-08-27 00:02:48 +0000 (Fri, 27 Aug 2010)
Log Message: ----------- Reduce repeat callFetchData calls Modified Paths: -------------- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/table.t Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/table.t =================================================================== --- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/table.t 2010-08-26 23:27:52 UTC (rev 3883) +++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/table.t 2010-08-27 00:02:48 UTC (rev 3884) @@ -250,7 +250,9 @@ /** applied to properties likely to affect visible rows */ var trapToFetchData = function(v) { cascade = v; - callFetchData(); + if (v!=trapee[trapname]) { + callFetchData(); + } } /** attempt to select a row by index */ @@ -349,7 +351,7 @@ th_bodyview.height = rowheight * v; // fetch view contents if (numrows > 0) { - forceFetchData(); + callFetchData(); return; } // clear view contents This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn