Skip to content

Instantly share code, notes, and snippets.

@kborchers
Created October 4, 2012 15:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kborchers/3834508 to your computer and use it in GitHub Desktop.
Save kborchers/3834508 to your computer and use it in GitHub Desktop.
this.getData = function() {
return data;
};
this.setData = function( newData ) {
data = newData;
};
this.addDataRecord = function( record ) {
data.push( record );
};
this.removeDataRecord = function( record ) {
data.splice( record, 1 );
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment