Add missing "new"
This commit is contained in:
parent
91c3374d6b
commit
19f5aebbcb
|
@ -247,7 +247,7 @@ Zotero.Styles = new function() {
|
||||||
'/csl:style/csl:info[1]/csl:link[@rel="source" or @rel="independent-parent"][1]/@href',
|
'/csl:style/csl:info[1]/csl:link[@rel="source" or @rel="independent-parent"][1]/@href',
|
||||||
Zotero.Styles.ns);
|
Zotero.Styles.ns);
|
||||||
if(source == styleID) {
|
if(source == styleID) {
|
||||||
throw Zotero.Exception.Alert("styles.installError", origin,
|
throw new Zotero.Exception.Alert("styles.installError", origin,
|
||||||
"styles.install.title", "Style references itself as source");
|
"styles.install.title", "Style references itself as source");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user