Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.insert = function insert(after, name){
- ph=this;
- while(ph.name!=after && ph.hasNext()){
- ph=ph.getNext();
- }
- if(ph.hasNext()){
- phnext=ph.getNext();
- }
- ph.setNext(new Column(name));
- if(ph.hasNext()){
- ph.getNext().setNext(phnext);
- }
- console.log(ph);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement