Skip to content

Commit

Permalink
Check for options being passed in on instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
mejackreed committed Oct 21, 2015
1 parent a77100b commit 0c366ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions leaflet-iiif.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ L.TileLayer.Iiif = L.TileLayer.extend({
},

initialize: function(url, options) {
options = typeof options !== 'undefined' ? options : {};

if (options.maxZoom) {
this._customMaxZoom = true;
}
Expand Down

0 comments on commit 0c366ee

Please sign in to comment.