Sha256: 869790ced02df9eece99ba05cacaabe5894fdb009f6a2b7f3358240889a705ed
Contents?: true
Size: 1018 Bytes
Versions: 4
Compression:
Stored size: 1018 Bytes
Contents
dojo.provide("dojox.charting.Element"); dojo.declare("dojox.charting.Element", null, { constructor: function(chart){ this.chart = chart; this.group = null; this.htmlElements = []; this.dirty = true; }, createGroup: function(creator){ if(!creator){ creator = this.chart.surface; } if(!this.group){ this.group = creator.createGroup(); } return this; }, purgeGroup: function(){ this.destroyHtmlElements(); if(this.group){ this.group.clear(); this.group.removeShape(); this.group = null; } this.dirty = true; return this; }, cleanGroup: function(creator){ this.destroyHtmlElements(); if(!creator){ creator = this.chart.surface; } if(this.group){ this.group.clear(); }else{ this.group = creator.createGroup(); } this.dirty = true; return this; }, destroyHtmlElements: function(){ if(this.htmlElements.length){ dojo.forEach(this.htmlElements, dojo._destroyElement); this.htmlElements = []; } }, destroy: function(){ this.purgeGroup(); } });
Version data entries
4 entries across 4 versions & 1 rubygems