Merge pull request #157 from mpriour/patch-1
Create the layer's metadata object in the initialize function. r=me
This commit is contained in:
@@ -329,7 +329,7 @@ OpenLayers.Layer = OpenLayers.Class({
|
||||
* {Object} This object can be used to store additional information on a
|
||||
* layer object.
|
||||
*/
|
||||
metadata: {},
|
||||
metadata: null,
|
||||
|
||||
/**
|
||||
* Constructor: OpenLayers.Layer
|
||||
@@ -340,6 +340,8 @@ OpenLayers.Layer = OpenLayers.Class({
|
||||
*/
|
||||
initialize: function(name, options) {
|
||||
|
||||
this.metadata = {};
|
||||
|
||||
this.addOptions(options);
|
||||
|
||||
this.name = name;
|
||||
|
||||
Reference in New Issue
Block a user