Skip to content

Commit

Permalink
Making the default for LiftRules.autoIncludeAjaxCalc smarter by check…
Browse files Browse the repository at this point in the history
…ing to see if the session is stateful
  • Loading branch information
joescii committed Oct 31, 2015
1 parent d3c52c5 commit e15e934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/webkit/src/main/scala/net/liftweb/http/LiftRules.scala
Expand Up @@ -1695,7 +1695,7 @@ class LiftRules() extends Factory with FormVendor with LazyLoggable {
@volatile var autoIncludeComet: LiftSession => Boolean = session => true

val autoIncludeAjaxCalc: FactoryMaker[() => LiftSession => Boolean] =
new FactoryMaker(() => () => (session: LiftSession) => true) {}
new FactoryMaker(() => () => (session: LiftSession) => session.stateful_?) {}

/**
* Tells Lift which JavaScript settings to use. If Empty, does not
Expand Down

0 comments on commit e15e934

Please sign in to comment.