Posted By

dvdrtrgn on 09/10/08


Tagged

test


Versions (?)

testShell_div.js


 / Published in: JavaScript
 

  1. alert('hi');
  2. return false;
  3. /*---------------------------------------------------------------------------*/
  4. /* expandable generic node object */
  5. function
  6. Branch(N){var T=this;T.P='[object Tree]';T.N=T.I=T.P;if(N){T.N=N;T.I='window["'+T.N+'"]'}};
  7. Branch.prototype.grow=function(N){
  8. if(!N)return;var T=this;var Tt=T[N]=new Branch();
  9. Tt.N=N; Tt.I=''+T.I+'["'+N+'"]'; Tt.P=T};
  10. Branch.prototype.toString=function(){return this.I};
  11. function /* a convenient preparation of a branch */
  12. Tree(str){return window[str]=new Branch(str)}

Report this snippet  

You need to login to post a comment.