Skip to content

Commit

Permalink
Fix bad zoom param.
Browse files Browse the repository at this point in the history
  • Loading branch information
Young Hahn committed Mar 31, 2011
1 parent 254bed3 commit 7a6fc41
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mvc/views.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,7 @@ Bones.views.MapClient = Backbone.View.extend({
return '/wax.json?' + $.param(wax);
},
generateWax: function(callback) {
var wax = this.model.wax();
wax.el = $(this.el).attr('id');
wax.zoom = ((this.model.get('minzoom') + 2) <= this.model.get('maxzoom')) ? 2 : wax.zoom;
return wax;
return _(this.model.wax()).extend({el: $(this.el).attr('id')});
},
record: function(data) {
if (data && data.wax) {
Expand Down

0 comments on commit 7a6fc41

Please sign in to comment.