From 3dd07ecd32968ad9aed9eb26c00f69f0b5ad5415 Mon Sep 17 00:00:00 2001 From: Matt Burke Date: Fri, 27 Mar 2015 22:11:52 -0400 Subject: [PATCH] Expose getProfileInformation for AJAX handler Some web projects may not use jQuery for making AJAX call (e.g. Prototype could be used instead). The java-mini-profiler auto-wires into jQuery, but didn't provide a way for other AJAX calls to be added to the profile information. Exposing the getProfileInformation method allows other AJAX libraries to add AJAX request profile information to the profiler. --- src/main/resources/au/com/funkworks/jmp/mini_profiler.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/resources/au/com/funkworks/jmp/mini_profiler.js b/src/main/resources/au/com/funkworks/jmp/mini_profiler.js index db55171..99b9288 100644 --- a/src/main/resources/au/com/funkworks/jmp/mini_profiler.js +++ b/src/main/resources/au/com/funkworks/jmp/mini_profiler.js @@ -116,6 +116,7 @@ var MiniProfiler = ( function() { } return { - init : init + init : init, + getProfileInformation : getProfileInformation }; }() );