Skip to content

Commit

Permalink
Updated cartodb.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rafacas committed Jan 23, 2014
1 parent 9bfdd04 commit 8f27c0a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions vendor/assets/javascripts/cartodb.mod.torque.uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -3227,6 +3227,10 @@ tree.Dimension.prototype = {

return this;
},
round: function() {
this.value = Math.round(this.value);
return this;
},
toColor: function() {
return new tree.Color([this.value, this.value, this.value]);
},
Expand Down Expand Up @@ -4112,6 +4116,13 @@ tree.Reference.validValue = function(env, selector, value) {
}
} else if (tree.Reference.selector(selector).type == 'expression') {
return true;
} else if (tree.Reference.selector(selector).type === 'unsigned') {
if (value.value[0].is === 'float') {
value.value[0].round();
return true;
} else {
return false;
}
} else {
if (tree.Reference.selector(selector).validate) {
var valid = false;
Expand Down
2 changes: 1 addition & 1 deletion vendor/assets/javascripts/cartodb.uncompressed.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// cartodb.js version: 3.5.06-dev
// uncompressed version: cartodb.uncompressed.js
// sha: d9706c372c292359b6cd7d7694c56ff4496b8f23
// sha: 58c9b557cf1ecfe0785b6ba5b165cf7d581cff94
(function() {
var root = this;

Expand Down

0 comments on commit 8f27c0a

Please sign in to comment.