Commit 10aff6f5 authored by Dmitry Baranovskiy's avatar Dmitry Baranovskiy

Fixed format method

parent 18110273
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -2726,7 +2726,7 @@ window.Raphael = (function () { ...@@ -2726,7 +2726,7 @@ window.Raphael = (function () {
R.format = function (token) { R.format = function (token) {
var args = R.isArray(arguments[1]) ? [0].concat(arguments[1]) : arguments; var args = R.isArray(arguments[1]) ? [0].concat(arguments[1]) : arguments;
token && typeof token == "string" && args.length - 1 && (token = token.replace(/\{(\d+)\}/g, function (str, i) { token && typeof token == "string" && args.length - 1 && (token = token.replace(/\{(\d+)\}/g, function (str, i) {
return args[++i] || ""; return args[++i] == null ? "" : args[i];
})); }));
return token; return token;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment