From 878ee42e6a4ee40c1f7e3ff537dd3bf21a76368f Mon Sep 17 00:00:00 2001 From: Alexandre Pretto Nunes Date: Fri, 19 Dec 2014 17:53:06 -0200 Subject: Remove old references of 'smail' --- web-ui/app/js/page/router.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'web-ui/app/js/page') 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); }); }); }); -- cgit v1.2.3