Dojox mobile: remove transitions while keeping events
up vote
0
down vote
favorite
I'm maintaining a large web application written with the Dojo(x) Toolkit.
showView = function (current, next, dir, type) {
registry.byId(current).performTransition(next, dir, type, null, function () { });
};
and then in each view the UI logic listens for transition events:
registry.byId("viewCustomer").on("afterTransitionIn", function () {
// do something
}
registry.byId("viewCustomer").on("beforeTransitionOut", function () {
// do something else
}
Now they asked me to remove all transitions, that means the new views should be shown immediately without any effect. As first thought, I just set the type
variable in the showView
function to 'none'.
Despite it actually removes the transitions, it also breaks all the events because they won't fire anymore.
I'm looking in the documentation of Dojo to find out a way to avoid a visible transition while keeping the events. It would be ok if I can override the standard timing and set it to 0, for example.
Is there a better way to do this, without rewrite all the UI logic based on those events?
web-applications dojo dojox.mobile
add a comment |
up vote
0
down vote
favorite
I'm maintaining a large web application written with the Dojo(x) Toolkit.
showView = function (current, next, dir, type) {
registry.byId(current).performTransition(next, dir, type, null, function () { });
};
and then in each view the UI logic listens for transition events:
registry.byId("viewCustomer").on("afterTransitionIn", function () {
// do something
}
registry.byId("viewCustomer").on("beforeTransitionOut", function () {
// do something else
}
Now they asked me to remove all transitions, that means the new views should be shown immediately without any effect. As first thought, I just set the type
variable in the showView
function to 'none'.
Despite it actually removes the transitions, it also breaks all the events because they won't fire anymore.
I'm looking in the documentation of Dojo to find out a way to avoid a visible transition while keeping the events. It would be ok if I can override the standard timing and set it to 0, for example.
Is there a better way to do this, without rewrite all the UI logic based on those events?
web-applications dojo dojox.mobile
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm maintaining a large web application written with the Dojo(x) Toolkit.
showView = function (current, next, dir, type) {
registry.byId(current).performTransition(next, dir, type, null, function () { });
};
and then in each view the UI logic listens for transition events:
registry.byId("viewCustomer").on("afterTransitionIn", function () {
// do something
}
registry.byId("viewCustomer").on("beforeTransitionOut", function () {
// do something else
}
Now they asked me to remove all transitions, that means the new views should be shown immediately without any effect. As first thought, I just set the type
variable in the showView
function to 'none'.
Despite it actually removes the transitions, it also breaks all the events because they won't fire anymore.
I'm looking in the documentation of Dojo to find out a way to avoid a visible transition while keeping the events. It would be ok if I can override the standard timing and set it to 0, for example.
Is there a better way to do this, without rewrite all the UI logic based on those events?
web-applications dojo dojox.mobile
I'm maintaining a large web application written with the Dojo(x) Toolkit.
showView = function (current, next, dir, type) {
registry.byId(current).performTransition(next, dir, type, null, function () { });
};
and then in each view the UI logic listens for transition events:
registry.byId("viewCustomer").on("afterTransitionIn", function () {
// do something
}
registry.byId("viewCustomer").on("beforeTransitionOut", function () {
// do something else
}
Now they asked me to remove all transitions, that means the new views should be shown immediately without any effect. As first thought, I just set the type
variable in the showView
function to 'none'.
Despite it actually removes the transitions, it also breaks all the events because they won't fire anymore.
I'm looking in the documentation of Dojo to find out a way to avoid a visible transition while keeping the events. It would be ok if I can override the standard timing and set it to 0, for example.
Is there a better way to do this, without rewrite all the UI logic based on those events?
web-applications dojo dojox.mobile
web-applications dojo dojox.mobile
edited Nov 8 at 10:04
asked Nov 8 at 8:57
Mark
1,04711431
1,04711431
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53204347%2fdojox-mobile-remove-transitions-while-keeping-events%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password