diff options
Diffstat (limited to 'python/gras/stats/registry.js')
-rw-r--r-- | python/gras/stats/registry.js | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/python/gras/stats/registry.js b/python/gras/stats/registry.js deleted file mode 100644 index e663583..0000000 --- a/python/gras/stats/registry.js +++ /dev/null @@ -1,36 +0,0 @@ -/*********************************************************************** - * Stats registry data structure - **********************************************************************/ -var GrasStatsRegistry = function() -{ - this.ids = new Array(); - this.enables = new Array(); - this.history = new Array(); - this.block_enables = new Array(); - this.overall_rate = 2.0; - this.overall_active = true; - this.block_charts = new Array(); -} - -GrasStatsRegistry.prototype.appendPoint = function(point) -{ - this.history.push(point); - var self = this; - if (this.history.length == 1) - { - $('block', this.history[0]).each(function() - { - self.ids.push($(this).attr('id')); - }); - } -}; - -GrasStatsRegistry.prototype.getBlockIds = function() -{ - var ids = new Array(); - $('block', this.history[0]).each(function() - { - ids.push($(this).attr('id')); - }); - return ids; -}; |