Tag deprecated functions with @deprecated

The closure-compiler (and maybe other tools) warns if the functions are used.
The functions are also marked as deprecated in the api doc.
This commit is contained in:
Frederic Junod
2017-01-20 16:55:58 +01:00
parent fdb6e316b6
commit 30074aed5f
2 changed files with 5 additions and 5 deletions

View File

@@ -521,11 +521,11 @@ ol.Map.prototype.addOverlayInternal_ = function(overlay) {
/**
* Deprecated (use {@link ol.View#animate} instead).
* Add functions to be called before rendering. This can be used for attaching
* animations before updating the map's view. The {@link ol.animation}
* namespace provides several static methods for creating prerender functions.
* @param {...ol.PreRenderFunction} var_args Any number of pre-render functions.
* @deprecated Use {@link ol.View#animate} instead.
* @api
*/
ol.Map.prototype.beforeRender = function(var_args) {