thatcher / openseadragon

This project has moved to its new github organization at github.com/openseadragon, please join us!
http://openseadragon,github.com/
37 stars 14 forks source link

Don't load button images if showNavigationControl is off #5

Closed josh1093 closed 12 years ago

josh1093 commented 12 years ago

If you're using the openseadragon viewer with the navigation controls turned off (via options.showNavigationControl = false) then the viewer should not try to load the navigation button images.

thatcher commented 12 years ago

thanks josh, it seems simple now that you clarified the intention of that typo but I wasnt sure if the empty 'else if' was missing something else until your ticket made sense of it. Thank you.

The image loading issue is solved as well, in a similar fashion, though it was something I noticed as well before I saw this ticket ( nothing like a bunch of 404's or 500's in firebug or developer network during page load to encourage some corrections like that ;) )