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)) { if(ps.confirm(null, '', text)) {
// delete if requested // delete if requested
if(cslIDs.length == 1) { if(cslIDs.length == 1) {
selectedStyle.delete(); selectedStyle.remove();
} else { } else {
for(var i=0; i<cslIDs.length; i++) { 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 * Deletes a style
*/ */
Zotero.Style.prototype.delete = function() { Zotero.Style.prototype.remove = function() {
// make sure no styles depend on this one // make sure no styles depend on this one
var dependentStyles = false; var dependentStyles = false;
var styles = Zotero.Styles.getAll(); 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 it was only this style with the dependency, delete the source
if(deleteSource) { if(deleteSource) {
source.delete(); source.remove();
} }
} }
} }