Skip to content
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...
1 parent 70ffcba commit 11c83fe128e27f743df75f0c0603d6d6b3b28178 @Shadowfiend Shadowfiend committed Aug 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 web/webkit/src/main/scala/net/liftweb/http/LiftSession.scala
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) }

0 comments on commit 11c83fe

Please sign in to comment.
Something went wrong with that request. Please try again.