yoqw/web/cms/app/helpers/obj-query-params.js
2020-07-01 15:22:07 +08:00

12 lines
308 B
JavaScript

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