Permalink
Browse files

Undid a change that should have worked

  • Loading branch information...
1 parent f5f3a91 commit 436cc0a59a86772c4a40f0b2bfcb24f93a2d7d0e @dpp dpp committed Feb 14, 2011
@@ -131,7 +131,7 @@ trait TypeHints {
*/
def hintFor(clazz: Class[_]): String = components.filter(_.containsHint_?(clazz))
.map(th => (th.hintFor(clazz), th.classFor(th.hintFor(clazz)).getOrElse(error("hintFor/classFor not invertible for " + th))))
- .sortWith((x, y) => delta(x._2, clazz) - delta(y._2, clazz) < 0).head._1
+ .sort((x, y) => delta(x._2, clazz) - delta(y._2, clazz) < 0).head._1
def classFor(hint: String): Option[Class[_]] = hints find (hintFor(_) == hint)
@@ -868,7 +868,9 @@ trait CometActor extends LiftActor with LiftCometActor with BindHelpers {
* This method is Actor-safe and may be called from any thread, not
* just the Actor's message handler thread.
*/
- def poke(): Unit = partialUpdate(Noop)
+ def poke(): Unit = {
+ if (running) partialUpdate(Noop)
+ }
/**
* Perform a partial update of the comet component based

1 comment on commit 436cc0a

What problem did this change cause?

Please sign in to comment.