Skip to content

Commit

Permalink
Merge pull request #32 from mejackreed/check-for-options
Browse files Browse the repository at this point in the history
Check for options being passed in on instantiation
  • Loading branch information
mejackreed committed Oct 21, 2015
2 parents a77100b + 0c366ee commit a8e8130
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 a8e8130

Please sign in to comment.