MCPcopy
hub / github.com/apache/echarts / Canteen

Function Canteen

test/lib/canteen.js:87–105  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

85 * @constructor
86 */
87 var Canteen = function(context) {
88 var that = this;
89
90 this._stack = [];
91 this.context = context;
92
93 // add observable attributes
94 each(CONTEXT_2D_ATTRIBUTES, function(key, n) {
95 Object.defineProperty(that, key, {
96 get: function() {
97 return that.context[key];
98 },
99 set: function(val) {
100 that._pushAttr(key, val);
101 that.context[key] = val;
102 }
103 });
104 });
105 };
106
107 // Canteen methods
108 Canteen.prototype = {

Callers

nothing calls this directly

Calls 1

eachFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…