JSDOC/Template.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 28 Jun 2010 09:53:48 +0000 (17:53 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 28 Jun 2010 09:53:48 +0000 (17:53 +0800)
JSDOC/Template.js

index f7631ba..f394b08 100644 (file)
@@ -24,17 +24,11 @@ Template = XObject.define(
         if (!this.templateFile  || !this.Link) {
             throw {
                 "No templateFile or Link sent to Template Contructor..";
-               }
-           }
-        
-        
-        if (templateFile) {
-            
-            this.template = Gio.simple_read(templateFile);
-            
+            }
         }
-        this.Link = this.Link || imports.TemplateLink.Link; ///????
         
+        
+        this.template = Gio.simple_read(templateFile);
         this.templateName = GLib.path_get_basename(templateFile);
         this.code = "";
         this.parse();