remove Tile.Image:insertBackBuffer and add API docs for Tile.Image:cloneMarkup

This commit is contained in:
Éric Lemoine
2011-10-18 08:25:46 +02:00
parent 0971124669
commit b39f4fde1c
+4 -12
View File
@@ -320,21 +320,13 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
}, },
/** /**
* Method: insertBackBuffer * Method: cloneMarkup
* Create a copy of this tile's markup and insert it to the layer * Clone this tile's markup.
* div.
* *
* Returns: * Returns:
* {DOMElement} The back buffer. * {DOMElement} The markup, or undefined if the tile has no image
* or if it's currently loading.
*/ */
insertBackBuffer: function() {
var frame = this.frame.cloneNode(false);
this.layer.div.insertBefore(frame, this.frame);
frame.appendChild(this.imgDiv);
this.imgDiv = null;
return frame;
},
cloneMarkup: function() { cloneMarkup: function() {
if(!this.imgDiv || this.isLoading) { if(!this.imgDiv || this.isLoading) {
return; return;