seed r803 - in trunk: examples tools



Author: hortont
Date: Sun Jan 25 09:15:01 2009
New Revision: 803
URL: http://svn.gnome.org/viewvc/seed?rev=803&view=rev

Log:
Fix one example to pass JSLint, fixed 'with', so it doesn't complain (the maintainer doesn't /believe/ in 'with', for good reason, but ... still ...)


Modified:
   trunk/examples/accelgroup.js
   trunk/tools/jslint.js

Modified: trunk/examples/accelgroup.js
==============================================================================
--- trunk/examples/accelgroup.js	(original)
+++ trunk/examples/accelgroup.js	Sun Jan 25 09:15:01 2009
@@ -1,6 +1,6 @@
 #!/usr/bin/env seed
 
-Seed.import_namespace("Gtk")
+Seed.import_namespace("Gtk");
 Seed.import_namespace("Gdk");
 
 with (Gtk)

Modified: trunk/tools/jslint.js
==============================================================================
--- trunk/tools/jslint.js	(original)
+++ trunk/tools/jslint.js	Sun Jan 25 09:15:01 2009
@@ -4292,8 +4292,22 @@
         funct['(breakage)'] -= 1;
         funct['(loopage)'] -= 1;
     }).labelled = true;
+    
+    // TIMTIMTIM
+    blockstmt('with', function () {
+        var t = nexttoken;
+        funct['(breakage)'] += 1;
+        advance('(');
+        nonadjacent(this, t);
+        nospace();
+        parse(20);
+        advance(')', t);
+        nospace(prevtoken, token);
+        block(true);
+        funct['(breakage)'] -= 1;
+    }).labelled = true;
 
-    reserve('with');
+    //reserve('with');
 
     blockstmt('switch', function () {
         var t = nexttoken,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]