Skip to content

Commit

Permalink
#29 linting
Browse files Browse the repository at this point in the history
  • Loading branch information
itayw committed Feb 18, 2014
1 parent decf993 commit 3a216ee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/common/modifiers.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Date.dateDiff = function(datepart, fromdate, todate) {
s:1000 };

return Math.floor( diff/divideBy[datepart]);
}
};

/**
* @function Object.defineProperty.toJSON
Expand Down
6 changes: 3 additions & 3 deletions lib/viz/Canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ var Canvas = module.exports = function (options, callback) {
this[x] = require('./_proto')[x];
this._super[x] = require('./_proto')[x];
}
for (var x in _events) {
this[x] = _events[x];
this._super[x] = _events[x];
for (var y in _events) {
this[y] = _events[y];
this._super[y] = _events[y];
}

var self = this;
Expand Down
7 changes: 3 additions & 4 deletions lib/viz/DatePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ var DatePicker = module.exports = function (options, callback) {
var last = self.addDays(curr, -1 * (curr.getDate()));
var first = self.addDays(last, -1 * (last.getDate() - 1));
self.base_todate = self.fixDate(new Date(), true);
self.base_todate = self.addDays(self.base_todate, -1 * (self.base_todate.getDate()))
self.base_todate = self.addDays(self.base_todate, -1 * (self.base_todate.getDate()));
self.base_fromdate = self.addDays(self.base_todate, -1 * (self.base_todate.getDate() - 1));

break;
Expand Down Expand Up @@ -831,9 +831,8 @@ var DatePicker = module.exports = function (options, callback) {

if (this.currentMode == 'compare-to')
$($('.daterange.comparerange .dateoption')[1]).focus();
else (this.currentMode == 'compare-from')
$($('.daterange.comparerange .dateoption')[0]).focus();

else if (this.currentMode == 'compare-from')
$($('.daterange.comparerange .dateoption')[0]).focus();
}

if (this.isCompareChecked) {
Expand Down

0 comments on commit 3a216ee

Please sign in to comment.