12 lines
310 B
JavaScript
12 lines
310 B
JavaScript
import Ember from 'ember';
|
|
|
|
export function objQueryParams(params, hash) {
|
|
console.debug('Obj Query Params: ', params, hash);
|
|
return Ember.Object.create({
|
|
isQueryParams: true,
|
|
values: hash.length > 0 ? hash : params[0]
|
|
});
|
|
}
|
|
|
|
export default Ember.Helper.helper(objQueryParams);
|