JSDOC/RooFile.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 23 Aug 2011 04:38:36 +0000 (12:38 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 23 Aug 2011 04:38:36 +0000 (12:38 +0800)
JSDOC/RooFile.js

index 496a2db..71c203e 100644 (file)
@@ -251,6 +251,12 @@ RooFile  =  XObject.define(
             this.parseImports();
             print(JSON.stringify(this.imports,null,4));
              print(JSON.stringify(this.giImports,null,4));
+             
+            var pos = this.lookFor('XObject');
+            if (pos < 0)  {
+                throw "Can not find XObject";
+            }
+             
             Seed.quit();
             
         },