includes/clientside/static/dynano.js
changeset 29 e5484a9e0818
parent 1 fe660c52c48f
child 335 67bd3121a12e
equal deleted inserted replaced
28:dd2edcdc6c03 29:e5484a9e0818
     6 }
     6 }
     7 var $dynano = $;
     7 var $dynano = $;
     8 function DNobj(id)
     8 function DNobj(id)
     9 {
     9 {
    10   this.object = ( typeof(id) == 'object' ) ? id : document.getElementById(id);
    10   this.object = ( typeof(id) == 'object' ) ? id : document.getElementById(id);
       
    11   if ( !this.object )
       
    12   {
       
    13     this.object = false;
       
    14     return this;
       
    15   }
    11   this.height = __DNObjGetHeight(this.object);
    16   this.height = __DNObjGetHeight(this.object);
    12   this.width = __DNObjGetWidth(this.object);
    17   this.width = __DNObjGetWidth(this.object);
    13   
    18   
    14   if ( this.object.tagName == 'TEXTAREA' && typeof(tinyMCE) == 'object' )
    19   if ( this.object.tagName == 'TEXTAREA' && typeof(tinyMCE) == 'object' )
    15   {
    20   {