Skip to content

Commit ea24476

Browse files
committed
Make optional properties false by default.
Google Maps API docs say avoidHighways and avoidTolls are optional bools, so it makes more sense to make them false by default.
1 parent 9ca33ba commit ea24476

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gmaps.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -774,9 +774,9 @@ var GMaps = (function($) {
774774
}
775775

776776
var base_options = {
777-
avoidHighways: true,
778-
avoidTolls: true,
779-
optimizeWaypoints: true,
777+
avoidHighways: false,
778+
avoidTolls: false,
779+
optimizeWaypoints: false,
780780
waypoints: []
781781
};
782782
var request_options = $.extend(base_options, options);
@@ -1227,4 +1227,4 @@ var GMaps = (function($) {
12271227
};
12281228

12291229
return GMaps;
1230-
}(jQuery));
1230+
}(jQuery));

0 commit comments

Comments
 (0)