$.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
精彩评论