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

index 40c44ca..f7631ba 100644 (file)
@@ -21,6 +21,12 @@ Template = XObject.define(
     function(cfg) {
         XObject.extend(this, cfg)
         //this.templateFile = templateFile;
     function(cfg) {
         XObject.extend(this, cfg)
         //this.templateFile = templateFile;
+        if (!this.templateFile  || !this.Link) {
+            throw {
+                "No templateFile or Link sent to Template Contructor..";
+               }
+           }
+        
         
         if (templateFile) {
             
         
         if (templateFile) {