Browse Source

CategoryBase: new function shallShowReload()

master
parent
commit
aa9132a857
  1. 6
      src/CategoryBase.js

6
src/CategoryBase.js

@ -49,7 +49,7 @@ function CategoryBase (options, data) {
domHeader.appendChild(a)
}
if (options.debug) {
if (this.shallShowReload()) {
a = document.createElement('a')
a.appendChild(document.createTextNode('⟳'))
a.title = lang('reload')
@ -84,6 +84,10 @@ CategoryBase.prototype.load = function (callback) {
callback()
}
CategoryBase.prototype.shallShowReload = function () {
return options.debug
}
CategoryBase.prototype.setMap = function (map) {
this.map = map
}

Loading…
Cancel
Save