MCPcopy
hub / github.com/emberjs/ember.js / get

Function get

packages/@ember/object/index.ts:155–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153
154 return {
155 get() {
156 let bindings = BINDINGS_MAP.get(this);
157
158 if (bindings === undefined) {
159 bindings = new Map();
160 BINDINGS_MAP.set(this, bindings);
161 }
162
163 let fn = bindings.get(actionFn);
164
165 if (fn === undefined) {
166 fn = actionFn.bind(this);
167 bindings.set(actionFn, fn);
168 }
169
170 return fn;
171 },
172 };
173}
174

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected