merge popup updateContent fix by msaspence

This commit is contained in:
Mourner 2011-04-15 12:30:56 +03:00
commit e57bcd70a8

View File

@ -94,7 +94,9 @@ L.Popup = L.Class.extend({
_updateContent: function() {
//TODO accept DOM nodes along with HTML strings
this._contentNode.innerHTML = this._content;
if (this._content) {
this._contentNode.innerHTML = this._content;
}
},
_updateLayout: function() {