Fix old methods in Notifier
This commit is contained in:
parent
c72df62264
commit
c371dd7603
|
@ -76,25 +76,25 @@ Zotero.Notifier = new function(){
|
||||||
// Deprecated
|
// Deprecated
|
||||||
function registerCollectionObserver(ref){
|
function registerCollectionObserver(ref){
|
||||||
Zotero.debug('registerCollectionObserver is deprecated and will be removed in a future release -- use registerObserver() instead', 2);
|
Zotero.debug('registerCollectionObserver is deprecated and will be removed in a future release -- use registerObserver() instead', 2);
|
||||||
return _register(ref, 'collection');
|
return registerObserver(ref, 'collection');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated
|
// Deprecated
|
||||||
function registerItemObserver(ref){
|
function registerItemObserver(ref){
|
||||||
Zotero.debug('registerItemObserver is deprecated and will be removed in a future release -- use registerObserver() instead', 2);
|
Zotero.debug('registerItemObserver is deprecated and will be removed in a future release -- use registerObserver() instead', 2);
|
||||||
return _register(ref, 'item');
|
return registerObserver(ref, 'item');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated
|
// Deprecated
|
||||||
function unregisterCollectionObserver(hash){
|
function unregisterCollectionObserver(hash){
|
||||||
Zotero.debug('unregisterCollectionObserver is deprecated and will be removed in a future release -- use unregisterObserver() instead', 2);
|
Zotero.debug('unregisterCollectionObserver is deprecated and will be removed in a future release -- use unregisterObserver() instead', 2);
|
||||||
_unregister(hash);
|
unregisterObserver(hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated
|
// Deprecated
|
||||||
function unregisterItemObserver(hash){
|
function unregisterItemObserver(hash){
|
||||||
Zotero.debug('unregisterItemObserver is deprecated and will be removed in a future release -- use unregisterObserver() instead', 2);
|
Zotero.debug('unregisterItemObserver is deprecated and will be removed in a future release -- use unregisterObserver() instead', 2);
|
||||||
_unregister(hash);
|
unregisterObserver(hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user