Permalink
Browse files

geo layer fixed

  • Loading branch information...
1 parent 87a24f4 commit d8eb0378a0979e270aba70da60b269490ff32ba7 @jbergen jbergen committed Sep 19, 2012
@@ -108,8 +108,8 @@
{
var a = _.extend( this.toJSON().attr, newAttr, {model:null} );
this.set( 'attr' , a );
- if( silent != true ) this.save();
- this.trigger('update');
+ this.save();
+ if( silent != true ) this.trigger('update');
this.trigger('change');
},
@@ -947,9 +947,7 @@ Use this.model.get('attr')[my_setting] instead!!!
lat : newCenter.lat(),
lng : newCenter.lng()
})
- _this.model.trigger('update');
-
-
+ //_this.model.trigger('update');
});
@@ -111,6 +111,7 @@
{
console.log(' GEO INIT')
var _this = this;
+ this.model.on('update', this.updateVisual, this)
},
render : function()
@@ -201,7 +202,7 @@
lat : _this.streetview.getPosition().lat(),
lng : _this.streetview.getPosition().lng()
- })
+ },true)
}

0 comments on commit d8eb037

Please sign in to comment.