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

View File

@@ -320,21 +320,13 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
},
/**
* Method: insertBackBuffer
* Create a copy of this tile's markup and insert it to the layer
* div.
* Method: cloneMarkup
* Clone this tile's markup.
*
* 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() {
if(!this.imgDiv || this.isLoading) {
return;