lift/framework — pull request #1510 by infofinity (2014-01-06 01:25:05+00:00)
Title: Change autoIncludeAjaxCalc to a volatile var to support a JQueryMobile use case

By default, JQueryMobile (JQM) uses AJAX to load pages. This is primarily necessary in Phonegap so that the initial page load occurs at file:/// (with access to phonegap.js and thus some phone APIs through JavaScript) and all links can be enhanced to access a remote server through AJAX. The AJAX call requests the full page, searches for the data-role="page" DIV and injects that into the DOM (and removes the previous page). It is useful in some cases to control either the content or the location of liftAjax.js and thus include it manually in page content (or on an AJAX call). This is currently impossible because LiftRules.autoIncludeAjaxCalc is a val (and this is how LiftMerge decides whether to include liftAjax.js). This commit simply changes it to a var.