Skip to content

Commit 7246e52

Browse files
author
zhangxinxu
committed
remove unnecessary comment
remove unnecessary comment
1 parent 5a63642 commit 7246e52

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/mobilebone.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -238,14 +238,15 @@
238238
if (pageOut != null && pageOut.classList) {
239239
// do transition if there are no 'prevent'
240240
if (isPreventOut != true) {
241+
pageOut.classList.add(params_out.form);
242+
// reflow
243+
pageOut.offsetWidth = pageOut.offsetWidth;
244+
// go, go, go
245+
pageOut.style.display = "block";
241246
pageOut.classList.add("out");
242-
//if (options.animate !== false) {
243-
pageOut.classList.add(params_out.form);
244-
//}
245247
pageOut.classList.remove("in");
246248
// if reverse direction
247249
pageOut.classList[back? "add": "remove"]("reverse");
248-
pageOut.style.display = "block";
249250

250251
// do fallback every time
251252
var fallback = params_out.fallback;
@@ -286,16 +287,12 @@
286287
// reflow for fixing issues #80, #86
287288
pageInto.offsetWidth = pageInto.offsetWidth;
288289
// go~ as normal
290+
pageInto.style.display = "block";
289291
pageInto.classList.remove("out");
290292
pageInto.classList.add("in");
291-
292293
// if reverse direction
293294
pageInto.classList[back? "add": "remove"]("reverse");
294-
pageInto.style.display = "block";
295-
296-
297-
//console.log(pageInto.className);
298-
295+
299296
// do callback when come in first time
300297
var onpagefirstinto = params_in.onpagefirstinto;
301298
if (!store[pageid]) {

0 commit comments

Comments
 (0)