Move hasLayer() into svgedit.draw.Drawing

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1926 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2011-01-16 23:18:51 +00:00
parent 0db154bff4
commit 6f9f943093
5 changed files with 35 additions and 26 deletions

View File

@@ -7086,17 +7086,6 @@ this.deleteCurrentLayer = function() {
return false;
};
// Function: hasLayer
// Check if layer with given name already exists
this.hasLayer = function(name) {
for(var i = 0; i < current_drawing.all_layers.length; i++) {
if(current_drawing.all_layers[i][0] == name) return true;
}
return false;
};
this.getNumLayers = function() { return current_drawing.getNumLayers(); };
// Function: getLayer
// Returns the name of the ith layer. If the index is out of range, an empty string is returned.
//