[Pkg-owncloud-commits] [owncloud] 25/134: add dprecated warning for OC.Router
David Prévot
taffit at moszumanska.debian.org
Fri Apr 18 21:43:57 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 91392c5a8707a73427f7afa86e5e5871a4dbd4e7
Author: Morris Jobke <morris.jobke at gmail.com>
Date: Thu Mar 6 15:17:55 2014 +0100
add dprecated warning for OC.Router
---
core/js/router.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/core/js/router.js b/core/js/router.js
index 44e7c30..8cd01bb 100644
--- a/core/js/router.js
+++ b/core/js/router.js
@@ -1,4 +1,7 @@
OC.router_base_url = OC.webroot + '/index.php';
+
+// deprecated Use OC.generateUrl instead
+// see http://mailman.owncloud.org/pipermail/user/2014-March/000152.html
OC.Router = {
// register your ajax requests to load after the loading of the routes
// has finished. otherwise you face problems with race conditions
@@ -14,6 +17,7 @@ OC.Router = {
}
}),
generate:function(name, opt_params) {
+ console.warn("This function is deprecated! Use OC.generateUrl instead");
if (!('routes' in this)) {
if(this.routes_request.state() != 'resolved') {
console.warn('To avoid race conditions, please register a callback');// wait
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list