define(function(require){
var $ = require("jquery");
var justep = require("$UI/system/lib/justep");
var Baas = require("$UI/demo/baas/baas");
require("cordova!org.apache.cordova.geolocation");
var Model = function(){
this.callParent();
};
Model.prototype.button1Click = function(event){
function onSuccess(position){
alert("a");
debugger;
}
function onError(){
alert("b");
}
navigator.geolocation.getCurrentPosition(onSuccess,onError);
};