Rename options.innerHTML to options.html

This commit is contained in:
danzel 2012-07-05 08:46:18 +12:00
parent 46a18ad348
commit 15718ec58c

View File

@ -11,8 +11,8 @@ L.DivIcon = L.Icon.extend({
createIcon: function () { createIcon: function () {
var div = document.createElement('div'); var div = document.createElement('div');
if (this.options.innerHTML) { if (this.options.html) {
div.innerHTML = this.options.innerHTML; div.innerHTML = this.options.html;
} }
this._setIconStyles(div, 'icon'); this._setIconStyles(div, 'icon');
return div; return div;