summaryrefslogtreecommitdiff
path: root/jarmon
diff options
context:
space:
mode:
authorRichard Wall <richard@largo>2011-01-08 15:05:38 +0000
committerRichard Wall <richard@largo>2011-01-08 15:05:38 +0000
commit7e7a9e36693919bd79a11be271a379303f581c54 (patch)
tree5894270a25e9ca26eb39d61d022dc0b7957bac17 /jarmon
parent91d9735a448bb519fd5683bfef9635fc77ac7008 (diff)
start to reorganise the example application
Diffstat (limited to 'jarmon')
-rw-r--r--jarmon/jarmon.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/jarmon/jarmon.js b/jarmon/jarmon.js
index 5952aa2..0919915 100644
--- a/jarmon/jarmon.js
+++ b/jarmon/jarmon.js
@@ -679,30 +679,6 @@ jarmon.Chart.prototype.draw = function() {
};
-jarmon.Chart.fromRecipe = function(recipes, templateFactory, downloader) {
- /**
- * A static factory method to generate a list of I{Chart} from a list of
- * recipes and a list of available rrd files in collectd path format.
- *
- * @method fromRecipe
- * @param recipes {Array} A list of recipe objects.
- * @param templateFactory {Function} A callable which generates an html
- * template for a chart.
- * @param downloader {Function} A download function which returns a Deferred
- * @return {Array} A list of Chart objects
- **/
-
- var charts = [];
-
- for(var i=0; i<recipes.length; i++) {
- charts.push(
- new jarmon.Chart(templateFactory(), recipes[i], downloader)
- );
- }
- return charts;
-};
-
-
/**
* Generate a form through which to choose a data source from a remote RRD file
*