overriding default options

This commit is contained in:
Mourner 2011-01-11 17:01:49 +02:00
parent 8e6f2780cd
commit 0cd810bbb1
2 changed files with 4 additions and 3 deletions

View File

@ -8,7 +8,7 @@ L.Marker = L.Class.extend({
initialize: function(latlng, options) { initialize: function(latlng, options) {
this._latlng = latlng; this._latlng = latlng;
//TODO override default options L.Util.extend(this.options, options);
}, },
onAdd: function(map) { onAdd: function(map) {

View File

@ -8,8 +8,8 @@ L.Popup = L.Class.extend({
autoPanPadding: new L.Point(5, 5) autoPanPadding: new L.Point(5, 5)
}, },
initialize: function() { initialize: function(options) {
//TODO override default options L.Util.extend(this.options, options);
}, },
onAdd: function(map) { onAdd: function(map) {
@ -32,6 +32,7 @@ L.Popup = L.Class.extend({
this._adjustPan(); this._adjustPan();
this._container.style.visibility = ''; this._container.style.visibility = '';
this._container.style.opacity = '1'; this._container.style.opacity = '1';
//TODO fix ugly opacity hack //TODO fix ugly opacity hack
}, },