equal
deleted
inserted
replaced
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); |