Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

fixed the _.defer require a function not a expression bug. #293

Merged
merged 1 commit into from
Mar 3, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion dist/angular-google-maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -2628,7 +2628,9 @@ Nick Baugh - https://github.com/niftylettuce
if (newValue === oldValue || newValue === _m.zoom) {
return;
}
return _.defer(_m.setZoom(newValue));
return _.defer(function(){
_m.setZoom(newValue)
});
});
scope.$watch("bounds", function(newValue, oldValue) {
var bounds, ne, sw;
Expand Down
3 changes: 2 additions & 1 deletion src/coffee/directives/map.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ angular.module("google-maps").directive "googleMap", ["$log", "$timeout", ($log,
), true
scope.$watch "zoom", (newValue, oldValue) ->
return if newValue is oldValue or newValue is _m.zoom
_.defer _m.setZoom newValue
_.defer ->
_m.setZoom newValue

scope.$watch "bounds", (newValue, oldValue) ->
return if newValue is oldValue
Expand Down