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

Function _qpChanged

packages/@ember/controller/index.ts:297–304  ·  view source on GitHub ↗

During `Route#setup` observers are created to invoke this method when any of the query params declared in `Controller#queryParams` property are changed. When invoked this method uses the currently active query param update delegate (see `Controller.prototype._qpDelegate` for details) an

(controller: any, _prop: string)

Source from the content-addressed store, hash-verified

295 @private
296 */
297 _qpChanged(controller: any, _prop: string) {
298 let dotIndex = _prop.indexOf('.[]');
299 let prop = dotIndex === -1 ? _prop : _prop.slice(0, dotIndex);
300
301 let delegate = controller._qpDelegate;
302 let value = get(controller, prop);
303 delegate(prop, value);
304 },
305});
306
307// NOTE: This doesn't actually extend EmberObject.

Callers

nothing calls this directly

Calls 3

getFunction · 0.90
indexOfMethod · 0.80
sliceMethod · 0.80

Tested by

no test coverage detected