Revision: 4478 http://vexi.svn.sourceforge.net/vexi/?rev=4478&view=rev Author: mkpg2 Date: 2013-01-17 05:43:55 +0000 (Thu, 17 Jan 2013) Log Message: ----------- Minor changes. (For use of JS as library, not in vexi).
Modified Paths: -------------- trunk/org.vexi-library.js/src/main/java/org/ibex/js/JSU.java trunk/org.vexi-library.js/src/main/jpp/org/ibex/js/JSDate.jpp Modified: trunk/org.vexi-library.js/src/main/java/org/ibex/js/JSU.java =================================================================== --- trunk/org.vexi-library.js/src/main/java/org/ibex/js/JSU.java 2013-01-13 05:38:40 UTC (rev 4477) +++ trunk/org.vexi-library.js/src/main/java/org/ibex/js/JSU.java 2013-01-17 05:43:55 UTC (rev 4478) @@ -324,6 +324,11 @@ if(js==null) return null; return JSU.toString(js); } + static public String expectArg_string(JS[] args, int index) throws JSExn { + String r = getArg_string(args, index); + if(r==null) throw new JSExn("Expected string, got null"); + return r; + } /** lets us put multi-level get/put/call keys all in the same method */ static public class Sub extends JS.Obj { Modified: trunk/org.vexi-library.js/src/main/jpp/org/ibex/js/JSDate.jpp =================================================================== --- trunk/org.vexi-library.js/src/main/jpp/org/ibex/js/JSDate.jpp 2013-01-13 05:38:40 UTC (rev 4477) +++ trunk/org.vexi-library.js/src/main/jpp/org/ibex/js/JSDate.jpp 2013-01-17 05:43:55 UTC (rev 4478) @@ -96,7 +96,7 @@ public void addConstructor(JS constructor) throws JSExn {throw new JSExn("Attemted to add constructor to date"); } - final Date date; + final public Date date; public JSDate(Date date) throws JSExn { if(date==null) throw new NullPointerException(); 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