summaryrefslogtreecommitdiff
path: root/web-ui/app
diff options
context:
space:
mode:
authorAlexandre Pretto Nunes <anunes@thoughtworks.com>2014-12-19 17:53:06 -0200
committerAlexandre Pretto Nunes <anunes@thoughtworks.com>2014-12-19 17:53:06 -0200
commit878ee42e6a4ee40c1f7e3ff537dd3bf21a76368f (patch)
treebc0ea108c224bcd2bf7283c131f596ad071074ad /web-ui/app
parent7f6613813a4238382fe177dad81287b026598545 (diff)
Remove old references of 'smail'
Diffstat (limited to 'web-ui/app')
-rw-r--r--web-ui/app/js/page/router.js8
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);
});
});
});