Skip to content

Commit 5d7a503

Browse files
author
Lauren McCarthy
committed
v0.3.15
1 parent 192d068 commit 5d7a503

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

lib/p5.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! p5.js v0.3.14 December 21, 2014 */
1+
/*! p5.js v0.3.15 December 23, 2014 */
22
var shim = function (require) {
33
window.requestDraw = function () {
44
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (callback, element) {
@@ -1995,6 +1995,9 @@ var datastring_functions = function (require, core) {
19951995
var rem = dec !== -1 ? num.substring(dec) : '';
19961996
var n = dec !== -1 ? num.substring(0, dec) : num;
19971997
n = n.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
1998+
if (arguments[1] === 0) {
1999+
rem = '';
2000+
}
19982001
if (arguments.length > 1) {
19992002
rem = rem.substring(0, arguments[1] + 1);
20002003
}

0 commit comments

Comments
 (0)