Deprecate DB.getNextName() in favor of Utilities.Internal.getNextName()
This commit is contained in:
parent
7575cd8b29
commit
5fa608e379
1 changed files with 3 additions and 1 deletions
|
@ -331,8 +331,10 @@ Zotero.DBConnection.prototype.getColumns = function (table) {
|
||||||
**/
|
**/
|
||||||
Zotero.DBConnection.prototype.getNextName = Zotero.Promise.coroutine(function* (libraryID, table, field, name)
|
Zotero.DBConnection.prototype.getNextName = Zotero.Promise.coroutine(function* (libraryID, table, field, name)
|
||||||
{
|
{
|
||||||
|
Zotero.debug("WARNING: Zotero.DB.getNextName() is deprecated -- "
|
||||||
|
+ "use Zotero.Utilities.Internal.getNextName() instead", 2);
|
||||||
|
|
||||||
if (typeof name == 'undefined') {
|
if (typeof name == 'undefined') {
|
||||||
Zotero.debug("WARNING: The parameters of Zotero.DB.getNextName() have changed -- update your code", 2);
|
|
||||||
[libraryID, table, field, name] = [null, libraryID, table, field];
|
[libraryID, table, field, name] = [null, libraryID, table, field];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue