diff options
author | Alexandre Pretto Nunes <anunes@thoughtworks.com> | 2014-12-19 17:53:06 -0200 |
---|---|---|
committer | Alexandre Pretto Nunes <anunes@thoughtworks.com> | 2014-12-19 17:53:06 -0200 |
commit | 878ee42e6a4ee40c1f7e3ff537dd3bf21a76368f (patch) | |
tree | bc0ea108c224bcd2bf7283c131f596ad071074ad /web-ui/app/js/page | |
parent | 7f6613813a4238382fe177dad81287b026598545 (diff) |
Remove old references of 'smail'
Diffstat (limited to 'web-ui/app/js/page')
-rw-r--r-- | web-ui/app/js/page/router.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web-ui/app/js/page/router.js b/web-ui/app/js/page/router.js index 9b2516b0..3de2bba9 100644 --- a/web-ui/app/js/page/router.js +++ b/web-ui/app/js/page/router.js @@ -38,14 +38,14 @@ define(['flight/lib/component', 'page/events', 'page/router/url_params'], functi }; } - this.smailPushState = function (ev, data) { + this.pushState = function (ev, data) { if (!data.fromPopState) { var nextState = createState(data, this.attr.history.state); this.attr.history.pushState(nextState, '', createHash(nextState)); } }; - this.smailPopState = function (ev) { + this.popState = function (ev) { var state = ev.state || {}; this.trigger(document, events.ui.tag.select, { @@ -60,8 +60,8 @@ define(['flight/lib/component', 'page/events', 'page/router/url_params'], functi }; this.after('initialize', function () { - this.on(document, events.router.pushState, this.smailPushState); - window.onpopstate = this.smailPopState.bind(this); + this.on(document, events.router.pushState, this.pushState); + window.onpopstate = this.popState.bind(this); }); }); }); |