Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- building
- floor
- office
- room
- id
- description
- short_description
- date_inserted
- date_updated
- db_primary_key(only upon initialisation)
- {from:'foo',to:'bar'}
- var NodeTree = {
- collection:{};//all node objects
- toCreate:{b:[],f:[],o:[],r:[]},//newly created nodes - use ids or the object itself?
- toEdit:{b:[],f:[],o:[],r:[]},//edited attribute of node - use ids or the object itself?
- toDelete:{b:[],f:[],o:[],r:[]},//deleted node from tree - use ids or the object itself?
- create: function(type,node){
- this.toCreate[type].push(node);
- }//function to add created node?
- }
- var NodeEdges = {
- collection:[];
- toCreate:{b:[],f:[],o:[],r:[]},
- toEdit:{b:[],f:[],o:[],r:[]},
- toDelete:{b:[],f:[],o:[],r:[]},
- create: function(type,node){
- this.toCreate[type].push(node);
- }
- }
Add Comment
Please, Sign In to add comment