Zotero.Style.delete -> Zotero.Style.remove

This commit is contained in:
Simon Kornblith 2008-09-17 00:45:14 +00:00
parent e5bdfbb019
commit cccdbdb8e5
2 changed files with 4 additions and 4 deletions

View file

@ -1207,10 +1207,10 @@ function deleteStyle() {
if(ps.confirm(null, '', text)) {
// delete if requested
if(cslIDs.length == 1) {
selectedStyle.delete();
selectedStyle.remove();
} else {
for(var i=0; i<cslIDs.length; i++) {
Zotero.Styles.get(cslIDs[i]).delete();
Zotero.Styles.get(cslIDs[i]).remove();
}
}

View file

@ -426,7 +426,7 @@ function() {
/**
* Deletes a style
*/
Zotero.Style.prototype.delete = function() {
Zotero.Style.prototype.remove = function() {
// make sure no styles depend on this one
var dependentStyles = false;
var styles = Zotero.Styles.getAll();
@ -464,7 +464,7 @@ Zotero.Style.prototype.delete = function() {
// if it was only this style with the dependency, delete the source
if(deleteSource) {
source.delete();
source.remove();
}
}
}