urb.wall disableable by setting urb.wal===false

This commit is contained in:
Anton Dyudin 2015-04-16 15:45:18 -07:00
parent fff344f9ff
commit f917d859af

View File

@ -33,7 +33,7 @@ window.urb.req = function(method,url,params,json,cb) {
if(res.data.reload)
res.reload = res.data.reload
} catch(e) {
if(urb.wall || true) document.write(this.responseText) // XX
if(urb.wall !== false) document.write(this.responseText) // XX
err = {
message:"Failed to parse JSON",
raw:this.responseText