Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Side by Side Diff: polymer_0.4.0/bower_components/chartnewjs/Add-ins/format.js

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // 1 //
2 // Additional formats for ChartNew.js 2 // Additional formats for ChartNew.js
3 // 3 //
4 // see https://github.com/FVANCOP/ChartNew.js/wiki/900_010_format.js 4 // see https://github.com/FVANCOP/ChartNew.js/wiki/900_010_format.js
5 // 5 //
6 function fmtChartJSPerso(config, value, fmt) { 6 function fmtChartJSPerso(config, value, fmt) {
7 switch (fmt.split(/[\s,]+/)[0].toUpperCase()) { 7 switch (fmt.split(/[\s,]+/)[0].toUpperCase()) {
8 case "DATE": 8 case "DATE":
9 spltdt = fmt.replace(/,/g, " ").replace(/:/g, " ").split (/[\s,]+/); 9 spltdt = fmt.replace(/,/g, " ").replace(/:/g, " ").split (/[\s,]+/);
10 var options = new Array(); 10 var options = new Array();
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 */ 70 */
71 String.prototype.splitLimit = function(separator, limit) { 71 String.prototype.splitLimit = function(separator, limit) {
72 var splitString = this; 72 var splitString = this;
73 var result = []; 73 var result = [];
74 var pos = splitString.search(separator); 74 var pos = splitString.search(separator);
75 if (pos < 0) return false; 75 if (pos < 0) return false;
76 result.push(splitString.substring(0, pos)); 76 result.push(splitString.substring(0, pos));
77 result.push(splitString.substring(pos + 1)); 77 result.push(splitString.substring(pos + 1));
78 return result; 78 return result;
79 } 79 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698