mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
code with words
This commit is contained in:
18
js/framework/framework-transition.js
Normal file
18
js/framework/framework-transition.js
Normal file
@ -0,0 +1,18 @@
|
||||
(function(window, document, framework) {
|
||||
|
||||
|
||||
function transitionBegin(e) {
|
||||
|
||||
var activePageElement = document.getElementById(framework.activePageId);
|
||||
if(activePageElement) {
|
||||
|
||||
activePageElement.parentNode.removeChild(activePageElement);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
framework.on("pagetransition", transitionBegin);
|
||||
|
||||
|
||||
})(this, document, FM = this.FM || {});
|
||||
Reference in New Issue
Block a user