instead of warning via popup, write to console.warn
This commit is contained in:
parent
ad87bc4645
commit
bf20021b62
|
@ -24,7 +24,7 @@ OC.Router = {
|
||||||
generate:function(name, opt_params) {
|
generate:function(name, opt_params) {
|
||||||
if (!('routes' in this)) {
|
if (!('routes' in this)) {
|
||||||
if(this.routes_request.state() != 'resolved') {
|
if(this.routes_request.state() != 'resolved') {
|
||||||
alert('To avoid race conditions, please register a callback');// wait
|
console.warn('To avoid race conditions, please register a callback');// wait
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!(name in this.routes)) {
|
if (!(name in this.routes)) {
|
||||||
|
|
Loading…
Reference in New Issue