add ByMe
This commit is contained in:
parent
78c2987db6
commit
0bb1e1baa6
@ -56,7 +56,7 @@ const LocationModel = Backbone.Model.extend({
|
|||||||
// this.set('location', location);
|
// this.set('location', location);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
this.watcher = geolocation.createWatcher();
|
this.watcher = geolocation.createWatcher();
|
||||||
|
|
||||||
this.listenTo(this, 'change:location', this.onChange);
|
this.listenTo(this, 'change:location', this.onChange);
|
||||||
// this.tick();
|
// this.tick();
|
||||||
@ -148,8 +148,8 @@ const LocationModel = Backbone.Model.extend({
|
|||||||
this.moveTimer = setTimeout(
|
this.moveTimer = setTimeout(
|
||||||
() => {
|
() => {
|
||||||
console.log('>>>> STOPPED MOVING');
|
console.log('>>>> STOPPED MOVING');
|
||||||
// const location = this.get('location');
|
// const location = this.get('location');
|
||||||
// location.moving = false;
|
// location.moving = false;
|
||||||
this.set('moving', false);
|
this.set('moving', false);
|
||||||
console.log(this);
|
console.log(this);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user