cms/app-client/app/helpers/url-encode.js
author ymh <ymh.work@gmail.com>
Tue, 22 Nov 2016 18:41:04 +0100
changeset 434 58df2c256e00
parent 415 0046797e0411
permissions -rw-r--r--
remove uncesessary attribute
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
415
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
import Ember from 'ember';
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
export function urlEncode(params) {
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
    return encodeURIComponent(params[0]);
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
}
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
export default Ember.Helper.helper(urlEncode);