//Phonegap specific init | |
document.addEventListener("deviceready", function(){ | |
//todo block if not on device | |
device.overrideBackButton(); | |
document.addEventListener("backKeyDown", function(){ | |
if (actions.length>1) { | |
current = actions.pop(); | |
recent = actions.pop(); | |
method = recent[0]; | |
args = recent[1]; | |
method(args); | |
} else { | |
BackButton.reset(); | |
BackButton.exitApp(); | |
} | |
}, false); | |
document.addEventListener("menuKeyDown", function(){ | |
menu(); | |
}, false); | |
// watchAccel(); | |
}, false); |
댓글 없음:
댓글 쓰기