|
46 | 46 | *
|
47 | 47 | * @type string
|
48 | 48 | **/
|
49 |
| - Mobilebone.VERSION = '2.5.6'; |
| 49 | + Mobilebone.VERSION = '2.5.7'; |
50 | 50 |
|
51 | 51 | /**
|
52 | 52 | * Whether catch attribute of href from element with tag 'a'
|
|
335 | 335 | // v2.5.5 add for fix issues #138
|
336 | 336 | if (!pageInto.firstintoBind) {
|
337 | 337 | if (typeof onpagefirstinto == "string" && params_in.root[onpagefirstinto]) {
|
338 |
| - params_in.root[onpagefirstinto](pageInto, pageOut, options); |
| 338 | + params_in.root[onpagefirstinto].call(params_in.root, pageInto, pageOut, options); |
339 | 339 | } else if (typeof onpagefirstinto == "function") {
|
340 |
| - onpagefirstinto(pageInto, pageOut, options); |
| 340 | + onpagefirstinto.call(params_in.root, pageInto, pageOut, options); |
341 | 341 | }
|
342 | 342 | // capture form submit
|
343 | 343 | slice.call(pageInto.querySelectorAll("form")).forEach(function(form) {
|
|
370 | 370 | // bind animation events
|
371 | 371 | if (typeof animition == "string" && params_in.root[animition]) {
|
372 | 372 | pageInto.addEventListener(animateEventName, function() {
|
373 |
| - params_in.root[animition](this, this.classList.contains("in")? "into": "out", options); |
| 373 | + params_in.root[animition].call(params_in.root, this, this.classList.contains("in")? "into": "out", options); |
374 | 374 | });
|
375 | 375 | } else if (typeof animition == "function") {
|
376 | 376 | pageInto.addEventListener(animateEventName, function() {
|
377 |
| - animition(this, this.classList.contains("in")? "into": "out", options); |
| 377 | + animition.call(params_in.root, this, this.classList.contains("in")? "into": "out", options); |
378 | 378 | });
|
379 | 379 | }
|
380 | 380 | }
|
|
0 commit comments