13 lines
360 B
JavaScript
13 lines
360 B
JavaScript
import EmberObject from '@ember/object';
|
|
import { helper } from '@ember/component/helper';
|
|
|
|
export function objQueryParams(params, hash) {
|
|
console.debug('Obj Query Params: ', params, hash);
|
|
return EmberObject.create({
|
|
isQueryParams: true,
|
|
values: hash.length > 0 ? hash : params[0]
|
|
});
|
|
}
|
|
|
|
export default helper(objQueryParams);
|