Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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