Skip to content

Commit

Permalink
Scope links vars to prevent global leakage
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjlebron committed Jun 1, 2016
1 parent 5a52afa commit 6af5c86
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ var GoogleSpreadsheet = function( ss_key, auth_id, options ){
// Classes
var SpreadsheetWorksheet = function( spreadsheet, data ){
var self = this;
var links;

self.url = data.id;
self.id = data.id.substring( data.id.lastIndexOf("/") + 1 );
Expand Down Expand Up @@ -509,6 +510,7 @@ var SpreadsheetCell = function( spreadsheet, worksheet_id, data ){
var self = this;

function init() {
var links;
self.id = data['id'];
self.row = parseInt(data['gs:cell']['$']['row']);
self.col = parseInt(data['gs:cell']['$']['col']);
Expand Down Expand Up @@ -658,6 +660,3 @@ var xmlSafeColumnName = function(val){
return String(val).replace(/[\s_]+/g, '')
.toLowerCase();
}



0 comments on commit 6af5c86

Please sign in to comment.