Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function group(group){
- this.group = group;
- this.deleted = new array();
- this.added = new array();
- this.returnGroup = returnGroup;
- function returnGroup(){
- return this.group;
- }
- this.pushDeleted = pushDeleted;
- function pushDeleted(deleted){
- this.deleted.push(deleted);
- }
- this.removeDeleted = removeDeleted;
- function removeDeleted(deleted){
- this.deleted.splice(dualHeadedSearch(this.deleted, deleted),1);
- }
- this.returnDeleted = removeDeleted;
- function returnDeleted(){
- return this.deleted;
- }
- this.pushAdded = pushAdded;
- function pushAdded(added){
- this.added.push(added);
- }
- this.removeAdded = removeAdded;
- function removeAdded(added){
- this.added.splice(dualHeadedSearch(this.added, added),1);
- }
- this.returnAdded = removeAdded;
- function returnAdded(){
- return this.added;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement