Revision: 4481
          http://vexi.svn.sourceforge.net/vexi/?rev=4481&view=rev
Author:   clrg
Date:     2013-01-17 14:16:41 +0000 (Thu, 17 Jan 2013)
Log Message:
-----------
Fix entry of '-' when number is not a valid number

Modified Paths:
--------------
    trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/numfield.t

Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/numfield.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/numfield.t 
2013-01-17 06:11:54 UTC (rev 4480)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/numfield.t 
2013-01-17 14:16:41 UTC (rev 4481)
@@ -59,7 +59,10 @@
         
         /** convert from a string to a decimal */
         thisbox.text2decimal = function(v) {
-            var d = Number.cast(v, "rational");
+            var d;
+            try {
+                d = Number.cast(v, "rational");
+            } catch(e) { }
             if (d!=null) {
                 d = validateNumber(d);
             }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to