includes/clientside/static/dynano.js
changeset 582 a38876c0793c
parent 493 d8296f89ebb5
child 588 20484deb89cd
equal deleted inserted replaced
581:5e8fd89c02ea 582:a38876c0793c
     5   return new DNobj(id);
     5   return new DNobj(id);
     6 }
     6 }
     7 var $dynano = $;
     7 var $dynano = $;
     8 function DNobj(id)
     8 function DNobj(id)
     9 {
     9 {
       
    10   if ( id == undefined )
       
    11   {
       
    12     return {};
       
    13   }
    10   this.object = ( typeof(id) == 'object' ) ? id : document.getElementById(id);
    14   this.object = ( typeof(id) == 'object' ) ? id : document.getElementById(id);
    11   if ( !this.object )
    15   if ( !this.object )
    12   {
    16   {
    13     console.warn('Dynano: requested object is bad. id parameter follows.');
    17     console.warn('Dynano: requested object is bad. id parameter follows.');
    14     console.debug(id);
    18     console.debug(id);