Convert all classes to use new-style class definitions. All tests pass.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1651 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Schuyler Erle
2006-10-06 15:57:33 +00:00
parent 5280553306
commit 3be99e67e6
28 changed files with 93 additions and 133 deletions
+3 -6
View File
@@ -10,7 +10,7 @@
*/
OpenLayers.Layer.EventPane = OpenLayers.Class.create();
OpenLayers.Layer.EventPane.prototype =
OpenLayers.Util.extend(new OpenLayers.Layer, {
OpenLayers.Class.inherit( OpenLayers.Layer, {
/** EventPaned layers are always base layers, by necessity.
*
@@ -33,11 +33,8 @@ OpenLayers.Layer.EventPane.prototype =
*/
initialize: function(name, options) {
OpenLayers.Layer.prototype.initialize.apply(this, arguments);
if (arguments.length > 0) {
if (this.pane == null) {
this.pane = OpenLayers.Util.createDiv();
}
if (this.pane == null) {
this.pane = OpenLayers.Util.createDiv();
}
},