Skip to content

Commit

Permalink
#29 lint
Browse files Browse the repository at this point in the history
  • Loading branch information
itayw committed Jun 22, 2015
1 parent 9289ccd commit 4505eeb
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 24 deletions.
13 changes: 6 additions & 7 deletions build/release/joola.js
Original file line number Diff line number Diff line change
Expand Up @@ -39057,7 +39057,7 @@ var Canvas = module.exports = function (options, callback) {
new joola.viz.Timeline(viz, function (err, ref) {
if (err)
throw err;
self.options.onscreen.timeline.push(ref)
self.options.onscreen.timeline.push(ref);
});
break;
case 'metric':
Expand Down Expand Up @@ -44348,7 +44348,7 @@ var Timeline = module.exports = function (options, callback) {
else {
series[seriesIndex].data.push({
x: series[0].data[docIndex].x,
_x:new Date(document[dimensions[0].key]),
_x: new Date(document[dimensions[0].key]),
y: document[metrics[index].key] ? document[metrics[index].key] : 0
});
}
Expand Down Expand Up @@ -44613,7 +44613,7 @@ var Timeline = module.exports = function (options, callback) {
shared: true,
useHTML: true,
formatter: function () {
var html = '';
var html = '';
var comparehtml = '';
html += '<div style="padding-bottom:5px;"><strong>' + joola.common.formatDate(this.x) + '</strong></div>';

Expand All @@ -44636,7 +44636,7 @@ var Timeline = module.exports = function (options, callback) {
});

if (comparehtml.length > 0)
comparehtml = '<div style="padding-top:15px;"></div><div style="padding-bottom:5px;"><strong>' + joola.common.formatDate(this.points[this.points.length-1].point._x) + '</strong></div>' + comparehtml;
comparehtml = '<div style="padding-top:15px;"></div><div style="padding-bottom:5px;"><strong>' + joola.common.formatDate(this.points[this.points.length - 1].point._x) + '</strong></div>' + comparehtml;

html += comparehtml;
return html;
Expand Down Expand Up @@ -44904,10 +44904,9 @@ viz.fetch = function (context, query, callback) {
args.push(_query.authContext);
args.push(_query);
args.push(function (err, messages) {
if (err){
throw err;
if (err)
return callback(err);
}

if (!Array.isArray(messages))
messages = [messages];

Expand Down
10 changes: 5 additions & 5 deletions build/release/joola.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/release/joola.min.js.map

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions build/temp/joola.js
Original file line number Diff line number Diff line change
Expand Up @@ -35459,7 +35459,7 @@ var Canvas = module.exports = function (options, callback) {
new joola.viz.Timeline(viz, function (err, ref) {
if (err)
throw err;
self.options.onscreen.timeline.push(ref)
self.options.onscreen.timeline.push(ref);
});
break;
case 'metric':
Expand Down Expand Up @@ -40750,7 +40750,7 @@ var Timeline = module.exports = function (options, callback) {
else {
series[seriesIndex].data.push({
x: series[0].data[docIndex].x,
_x:new Date(document[dimensions[0].key]),
_x: new Date(document[dimensions[0].key]),
y: document[metrics[index].key] ? document[metrics[index].key] : 0
});
}
Expand Down Expand Up @@ -41015,7 +41015,7 @@ var Timeline = module.exports = function (options, callback) {
shared: true,
useHTML: true,
formatter: function () {
var html = '';
var html = '';
var comparehtml = '';
html += '<div style="padding-bottom:5px;"><strong>' + joola.common.formatDate(this.x) + '</strong></div>';

Expand All @@ -41038,7 +41038,7 @@ var Timeline = module.exports = function (options, callback) {
});

if (comparehtml.length > 0)
comparehtml = '<div style="padding-top:15px;"></div><div style="padding-bottom:5px;"><strong>' + joola.common.formatDate(this.points[this.points.length-1].point._x) + '</strong></div>' + comparehtml;
comparehtml = '<div style="padding-top:15px;"></div><div style="padding-bottom:5px;"><strong>' + joola.common.formatDate(this.points[this.points.length - 1].point._x) + '</strong></div>' + comparehtml;

html += comparehtml;
return html;
Expand Down Expand Up @@ -41306,10 +41306,9 @@ viz.fetch = function (context, query, callback) {
args.push(_query.authContext);
args.push(_query);
args.push(function (err, messages) {
if (err){
throw err;
if (err)
return callback(err);
}

if (!Array.isArray(messages))
messages = [messages];

Expand Down
2 changes: 1 addition & 1 deletion src/lib/viz/Canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ var Canvas = module.exports = function (options, callback) {
new joola.viz.Timeline(viz, function (err, ref) {
if (err)
throw err;
self.options.onscreen.timeline.push(ref)
self.options.onscreen.timeline.push(ref);
});
break;
case 'metric':
Expand Down
5 changes: 2 additions & 3 deletions src/lib/viz/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,9 @@ viz.fetch = function (context, query, callback) {
args.push(_query.authContext);
args.push(_query);
args.push(function (err, messages) {
if (err){
throw err;
if (err)
return callback(err);
}

if (!Array.isArray(messages))
messages = [messages];

Expand Down

0 comments on commit 4505eeb

Please sign in to comment.