Skip to content

Commit

Permalink
actual dists
Browse files Browse the repository at this point in the history
  • Loading branch information
fdansv committed Aug 5, 2015
1 parent 95453ab commit e68e7d3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
14 changes: 7 additions & 7 deletions dist/torque.full.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/torque.full.uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ var cancelAnimationFrame = global.cancelAnimationFrame
this.range = torque.math.linear(0, this.options.steps);
this.rangeInv = this.range.invert();
this.time(this._time);
this.start();
this.running? this.start(): this.pause();
return this;
},

Expand Down Expand Up @@ -1812,7 +1812,7 @@ GMapsTorqueLayer.prototype = torque.extend({},
* set the cartocss for the current renderer
*/
setCartoCSS: function(cartocss) {
if (this.provider.options.named_map) throw new Error("CartoCSS style on named maps is read-only");
if (this.provider && this.provider.options.named_map) throw new Error("CartoCSS style on named maps is read-only");
var shader = new carto.RendererJS().render(cartocss);
this.shader = shader;
if (this.renderer) {
Expand Down Expand Up @@ -3573,7 +3573,7 @@ var Profiler = require('../profiler');
torque.net.jsonp(url, function (data) {
var query = format("select * from ({sql}) __torque_wrap_sql limit 0", { sql: self.getSQL() });
self.sql(query, function (queryData) {
if (data) {
if (data && queryData) {
callback({
updated_at: data.last_updated,
fields: queryData.fields
Expand Down
6 changes: 3 additions & 3 deletions dist/torque.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/torque.uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ var cancelAnimationFrame = global.cancelAnimationFrame
this.range = torque.math.linear(0, this.options.steps);
this.rangeInv = this.range.invert();
this.time(this._time);
this.start();
this.running? this.start(): this.pause();
return this;
},

Expand Down Expand Up @@ -1819,7 +1819,7 @@ GMapsTorqueLayer.prototype = torque.extend({},
* set the cartocss for the current renderer
*/
setCartoCSS: function(cartocss) {
if (this.provider.options.named_map) throw new Error("CartoCSS style on named maps is read-only");
if (this.provider && this.provider.options.named_map) throw new Error("CartoCSS style on named maps is read-only");
var shader = new carto.RendererJS().render(cartocss);
this.shader = shader;
if (this.renderer) {
Expand Down Expand Up @@ -3580,7 +3580,7 @@ var Profiler = require('../profiler');
torque.net.jsonp(url, function (data) {
var query = format("select * from ({sql}) __torque_wrap_sql limit 0", { sql: self.getSQL() });
self.sql(query, function (queryData) {
if (data) {
if (data && queryData) {
callback({
updated_at: data.last_updated,
fields: queryData.fields
Expand Down

0 comments on commit e68e7d3

Please sign in to comment.