removed hack

This commit is contained in:
Fabien Potencier 2014-09-23 15:47:39 +02:00
parent 9c74fccacf
commit b66f39ab2d
2 changed files with 29 additions and 28 deletions

View File

@ -108,7 +108,6 @@ class ProfilerController
'request' => $request,
'templates' => $this->getTemplateManager()->getTemplates($profile),
'is_ajax' => $request->isXmlHttpRequest(),
'excluded_ajax_paths' => null,
)), 200, array('Content-Type' => 'text/html'));
}

View File

@ -171,6 +171,7 @@
requestCounter[0].className = className;
};
{% if (excluded_ajax_paths is defined) %}
var proxied = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function(method, url, async, user, pass) {
@ -205,6 +206,7 @@
proxied.apply(this, Array.prototype.slice.call(arguments));
};
{% endif %}
return {
hasClass: hasClass,