This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Global Chart helpers object for utility methods and classes | |
var helpers = Chart.helpers = {}; | |
//-- Basic js utility methods | |
var each = helpers.each = function(loopable,callback,self){ | |
// [...] | |
getConstraintWidth = helpers.getConstraintWidth = function(domNode){ // returns Number or undefined if no constraint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* jshint ignore:start */ | |
// Blows up jshint errors based on the new Function constructor | |
//Templating methods | |
//Javascript micro templating by John Resig - source at http://ejohn.org/blog/javascript-micro-templating/ | |
cache = {}, | |
template = helpers.template = function(templateString, valuesObject){ | |
// If templateString is function rather than string-template - call the function for valuesObject | |
if(templateString instanceof Function){ | |
return templateString(valuesObject); |