Skip to content
Browse files

Default cometUpdateExceptionHandler to Empty in production.

  • Loading branch information...
1 parent 777d72d commit 391bfa685d527e34fa7cf64093da9946b2a22135 @Shadowfiend Shadowfiend committed Jun 25, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 web/webkit/src/main/scala/net/liftweb/http/LiftRules.scala
View
5 web/webkit/src/main/scala/net/liftweb/http/LiftRules.scala
@@ -1534,7 +1534,10 @@ class LiftRules() extends Factory with FormVendor with LazyLoggable {
*/
val cometUpdateExceptionHandler: FactoryMaker[Box[JsCmd]] =
new FactoryMaker[Box[JsCmd]]( () => {
- Full(JE.Call("liftComet.lift_cometError", JE.JsVar("e")).cmd)
+ if (Props.devMode)
+ Full(JE.Call("liftComet.lift_cometError", JE.JsVar("e")).cmd)
+ else
+ Empty
} ) {}
/**

0 comments on commit 391bfa6

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