开发者

$.mobile.activePage is undefined

$.mobile.activePage is undefined

Does anybody have a fix for this?

It is being used like this.

if ($.mobile.activePage.data("iscroll") == "enable") {
    fixed($.mobile.activePage);
}

This is right after this and this works.

$('a.numContact').live("click", function(开发者_如何学Ce) {  
    e.preventDefault();
    var dataurl = $(this).attr("data-url");  
    if (dataurl != null)  
    $.mobile.changePage("loadMobis.php",{
            data:dataurl
    });   
});

Is this a bug?


changing the line (99) ...

if ($.mobile.activePage.data("iscroll") == "enable") {

to...

if (($.mobile.activePage) && ($.mobile.activePage.data("iscroll") == "enable")) {

seems to solve the problem

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜