ravendb/ravendb — pull request #499 by ToshB (2013-01-07 20:41:37+00:00)
Title: Bugfix/mvcprofiler jquery conflict

Fixes a bug caused by jQuery.noConflict() being run asynchronously, giving time for plugins to attach to MvcProfiler's version of jQuery which would afterwards get unloaded, causing plugins to fail.

Also fixes similiar bug with Backbone and Underscore, using amdjs versions modified to not register globals.

Due to the scripts being concatenated, I could not find a way of using existing versions of jQuery instead of loading another version. But after this fix (which immediately restores jQuery after loading), the scripts on the page should be unaffected by MvcProfiler loading, regardless of where on the page MvcProfiler is initialized.

Also included a small fix which removes an unneccessary request for an empty list of session id's if none exist.