Checking for properties directly on the prototype since it has been extended already. r=crschmidt (closes #1405)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6410 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -139,18 +139,14 @@ OpenLayers.Control.NavigationHistory = OpenLayers.Class(OpenLayers.Control, {
|
||||
trigger: OpenLayers.Function.bind(this.previousTrigger, this),
|
||||
displayClass: this.displayClass + "Previous"
|
||||
};
|
||||
if(options) {
|
||||
OpenLayers.Util.extend(previousOptions, options.previousOptions);
|
||||
}
|
||||
OpenLayers.Util.extend(previousOptions, this.previousOptions);
|
||||
this.previous = new OpenLayers.Control.Button(previousOptions);
|
||||
|
||||
var nextOptions = {
|
||||
trigger: OpenLayers.Function.bind(this.nextTrigger, this),
|
||||
displayClass: this.displayClass + "Next"
|
||||
};
|
||||
if(options) {
|
||||
OpenLayers.Util.extend(nextOptions, options.nextOptions);
|
||||
}
|
||||
OpenLayers.Util.extend(nextOptions, this.nextOptions);
|
||||
this.next = new OpenLayers.Control.Button(nextOptions);
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user