Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make ajaxRequests a val in LiftSession.

It's a mutable Map, so there's no need for it to be a var.
  • Loading branch information...
commit 11c83fe128e27f743df75f0c0603d6d6b3b28178 1 parent 70ffcba
@Shadowfiend Shadowfiend authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  web/webkit/src/main/scala/net/liftweb/http/LiftSession.scala
View
2  web/webkit/src/main/scala/net/liftweb/http/LiftSession.scala
@@ -571,7 +571,7 @@ class LiftSession(private[http] val _contextPath: String, val uniqueId: String,
* A list of AJAX requests that may or may not be pending for this
* session. There is up to one entry per RenderVersion.
*/
- private var ajaxRequests = scala.collection.mutable.Map[String,AjaxRequestInfo]()
+ private val ajaxRequests = scala.collection.mutable.Map[String,AjaxRequestInfo]()
private[http] def withAjaxRequests[T](fn: (scala.collection.mutable.Map[String, AjaxRequestInfo]) => T): T = {
ajaxRequests.synchronized { fn(ajaxRequests) }
Please sign in to comment.
Something went wrong with that request. Please try again.