BR.Message = L.Class.extend({ options: { // true to manually attach click event to close button, // Bootstrap data-api's auto-initialization doesn't work in Controls because of stopPropagation alert: false }, initialize: function(id, options) { L.setOptions(this, options); this.id = id; }, _show: function(msg, type) { var ele = L.DomUtil.get(this.id), iconClass = type === 'warning' ? 'fa-exclamation-triangle' : 'fa-times-circle', alertClass = type === 'warning' ? 'alert-warning' : 'alert-danger'; L.DomEvent.disableClickPropagation(ele); ele.innerHTML = '