includes/clientside/static/dynano.js
changeset 29 e5484a9e0818
parent 1 fe660c52c48f
child 335 67bd3121a12e
--- a/includes/clientside/static/dynano.js	Wed Jun 27 12:09:02 2007 -0400
+++ b/includes/clientside/static/dynano.js	Thu Jun 28 11:13:39 2007 -0400
@@ -8,6 +8,11 @@
 function DNobj(id)
 {
   this.object = ( typeof(id) == 'object' ) ? id : document.getElementById(id);
+  if ( !this.object )
+  {
+    this.object = false;
+    return this;
+  }
   this.height = __DNObjGetHeight(this.object);
   this.width = __DNObjGetWidth(this.object);