PageRenderTime 33ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/templates/helpers/encodeUriComponent.js

https://github.com/aduyng/travel-time-watcher-chrome-extension
JavaScript | 11 lines | 7 code | 1 blank | 3 comment | 0 complexity | 6b83c44c460d45469c8bf46e81e68477 MD5 | raw file
Possible License(s): Apache-2.0, MIT, BSD-3-Clause, GPL-2.0
  1. /**
  2. * Created by Duy A. Nguyen on 3/30/2014.
  3. */
  4. define('templates/helpers/encodeUriComponent', ['hbs/handlebars'], function (Handlebars, moment) {
  5. var f = function (input) {
  6. return encodeURIComponent(input);
  7. };
  8. Handlebars.registerHelper('encodeUriComponent', f);
  9. return f;
  10. });