#823 New class style. Instead of OldStyle = Class.create(); OldStyle.prototype = Class.inherit(Parent, prototype), we now use NewStyle = OpenLayers.Class(Parent, prototype). New style classes allow for backwards compatibility [you can use OldStyle = Class.create(); Class.inherit(NewStyle, prototype)]. The Class.create and Class.inherit functions are deprecated. Backwards compatibility will be removed at 3.0. Thanks Erik for the careful review.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3767 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -11,16 +11,7 @@
|
||||
* Inherits from:
|
||||
* - <OpenLayers.Popup.Anchored>
|
||||
*/
|
||||
OpenLayers.Popup.AnchoredBubble = OpenLayers.Class.create();
|
||||
|
||||
/**
|
||||
* Constant: CORNER_SIZE
|
||||
* {Integer} 5. Border space for the RICO corners
|
||||
*/
|
||||
OpenLayers.Popup.AnchoredBubble.CORNER_SIZE = 5;
|
||||
|
||||
OpenLayers.Popup.AnchoredBubble.prototype =
|
||||
OpenLayers.Class.inherit( OpenLayers.Popup.Anchored, {
|
||||
OpenLayers.Popup.AnchoredBubble = OpenLayers.Class(OpenLayers.Popup.Anchored, {
|
||||
|
||||
/**
|
||||
* Property: rounded
|
||||
@@ -193,3 +184,10 @@ OpenLayers.Popup.AnchoredBubble.prototype =
|
||||
/** @final @type String */
|
||||
CLASS_NAME: "OpenLayers.Popup.AnchoredBubble"
|
||||
});
|
||||
|
||||
/**
|
||||
* Constant: CORNER_SIZE
|
||||
* {Integer} 5. Border space for the RICO corners
|
||||
*/
|
||||
OpenLayers.Popup.AnchoredBubble.CORNER_SIZE = 5;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user