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,05811431
1,05811431
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown