Skip to content

Commit afad4b8

Browse files
author
zhangxinxu
committed
add two line comments
add two line comments
1 parent 34080f8 commit afad4b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mobilebone.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,13 @@
253253
});
254254
if (!store[pageid]) {
255255
var animateEventName = isWebkit? webkitkey: animationkey;
256+
// if it's the out element, hide it when 'animationend'
256257
index && pageInto.addEventListener(animateEventName, function() {
257258
if (this.classList.contains("in") == false) {
258259
this.style.display = "none";
259260
}
260261
});
261-
262+
// bind animation events
262263
if (typeof animition == "string" && params_in.root[animition]) {
263264
pageInto.addEventListener(animateEventName, function() {
264265
params_in.root[animition](this, this.classList.contains("in")? "into": "out");

0 commit comments

Comments
 (0)