Skip to content

Commit

Permalink
#171 don't load viz if not in browser.
Browse files Browse the repository at this point in the history
  • Loading branch information
itayw committed May 15, 2015
1 parent 38550e3 commit ba5f1fe
Show file tree
Hide file tree
Showing 18 changed files with 712 additions and 112,747 deletions.
56,682 changes: 339 additions & 56,343 deletions build/release/joola.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

63 changes: 17 additions & 46 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.

56,682 changes: 339 additions & 56,343 deletions build/temp/joola.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ joola.emit = function (event, message) {
};
joola.api = require('./common/api');
joola.state = {};
joola.viz = require('./viz/index');

if (isBrowser())
joola.viz = require('./viz/index');

joola.VERSION = require('./../../package.json').version;
joola._token = null;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viz/BarTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var
util = require('util'),

joola = require('../index'),
$$ = require('jquery')(require('jsdom').jsdom().parentWindow),
$$ = require('jquery'),
_ = require('underscore');

var BarTable = module.exports = function (options, callback) {
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 @@ -14,7 +14,7 @@ var
util = require('util'),
_ = require('underscore'),
ce = require('cloneextend'),
$$ = require('jquery')(require('jsdom').jsdom().parentWindow);
$$ = require('jquery');

var Canvas = module.exports = function (options, callback) {
if (!callback)
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viz/DatePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var
util = require('util'),

joola = require('../index'),
$$ = require('jquery')(require('jsdom').jsdom().parentWindow),
$$ = require('jquery'),
_ = require('underscore');

var DatePicker = module.exports = function (options, callback) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viz/DimensionPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var
util = require('util'),
ce = require('cloneextend'),
joola = require('../index'),
$$ = require('jquery')(require('jsdom').jsdom().parentWindow);
$$ = require('jquery');

var DimensionPicker = module.exports = function (options, callback) {
if (!callback)
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viz/FilterBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

var
joola = require('../index'),
$$ = require('jquery')(require('jsdom').jsdom().parentWindow),
$$ = require('jquery'),
_ = require('underscore');

var FilterBox = module.exports = function (options, callback) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viz/Gauge.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var
events = require('events'),
util = require('util'),
ce = require('cloneextend'),
$$ = require('jquery')(require('jsdom').jsdom().parentWindow),
$$ = require('jquery'),
_ = require('underscore');


Expand Down
2 changes: 1 addition & 1 deletion src/lib/viz/Metric.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var
util = require('util'),
ce = require('cloneextend'),
joola = require('../index'),
$$ = require('jquery')(require('jsdom').jsdom().parentWindow),
$$ = require('jquery'),
_ = require('underscore');

var Metric = module.exports = function (options, callback) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viz/MetricPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var
util = require('util'),
ce = require('cloneextend'),
joola = require('../index'),
$$ = require('jquery')(require('jsdom').jsdom().parentWindow);
$$ = require('jquery');

var MetricPicker = module.exports = function (options, callback) {
if (!callback)
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viz/Pie.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var
events = require('events'),
util = require('util'),
ce = require('cloneextend'),
$$ = require('jquery')(require('jsdom').jsdom().parentWindow),
$$ = require('jquery'),
_ = require('underscore');


Expand Down
2 changes: 1 addition & 1 deletion src/lib/viz/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

var
joola = require('../index'),
$$ = require('jquery')(require('jsdom').jsdom().parentWindow),
$$ = require('jquery'),
events = require('events'),
ce = require('cloneextend'),
util = require('util'),
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viz/Timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var
events = require('events'),
util = require('util'),
ce = require('cloneextend'),
$$ = require('jquery')(require('jsdom').jsdom().parentWindow),
$$ = require('jquery'),
joola = require('../index'),
moment = require('moment'),
_ = require('underscore');
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viz/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var
async = require('async'),
ce = require('cloneextend'),
_ = require('underscore'),
$$ = require('jquery')(require('jsdom').jsdom().parentWindow);
$$ = require('jquery');

var viz = exports;
viz._id = 'viz';
Expand Down

0 comments on commit ba5f1fe

Please sign in to comment.