Skip to content

Commit

Permalink
Move setValue to prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
mastef committed Mar 8, 2018
1 parent 6df93a7 commit 1d35038
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,11 +599,11 @@ function SpreadsheetCell(spreadsheet, ss_key, worksheet_id, data){
self._value = _data['gs:cell']['_'] || '';
}

self.setValue = function(new_value, cb) {
self.value = new_value;
self.save(cb);
};

SpreadsheetCell.prototype.setValue = function(new_value, cb) {
this.value = new_value;
this.save(cb);
};

self.__defineGetter__('value', function(){
return self._value;
Expand Down

0 comments on commit 1d35038

Please sign in to comment.