revert commenting out watch for terser code #2274

This commit is contained in:
Vladimir Agafonkin 2013-12-10 11:17:40 +01:00
parent 4a42dc07d7
commit f1d2b0d5df

View File

@ -4,8 +4,8 @@
L.Map.include({
_defaultLocateOptions: {
timeout: 10000
// watch: false
timeout: 10000,
watch: false
// setView: false
// maxZoom: <Number>
// maximumAge: 0
@ -27,7 +27,7 @@ L.Map.include({
var onResponse = L.bind(this._handleGeolocationResponse, this),
onError = L.bind(this._handleGeolocationError, this);
if (options.hasOwnProperty('watch') && options.watch) {
if (options.watch) {
this._locationWatchId =
navigator.geolocation.watchPosition(onResponse, onError, options);
} else {