Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make some minor comment improvements, and remove an unused import
  • Loading branch information
dcbriccetti committed Nov 18, 2012
1 parent 0c56fcb commit 4116252
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Expand Up @@ -153,10 +153,10 @@ trait OwnedField[OwnerType <: Record[OwnerType]] extends BaseField {
trait TypedField[ThisType] extends BaseField { trait TypedField[ThisType] extends BaseField {


/* /*
* Unless overriden, MyType is equal to ThisType. Available for * Unless overridden, MyType is equal to ThisType. Available for
* backwards compatibility * backwards compatibility
*/ */
type MyType = ThisType // For backwards compatability type MyType = ThisType // For backwards compatibility


type ValidationFunction = ValueType => List[FieldError] type ValidationFunction = ValueType => List[FieldError]


Expand Down
12 changes: 6 additions & 6 deletions web/webkit/src/main/scala/net/liftweb/http/StatefulSnippet.scala
Expand Up @@ -21,7 +21,7 @@ import net.liftweb.common._
import net.liftweb._ import net.liftweb._
import util._ import util._
import Helpers._ import Helpers._
import xml.{Text, NodeSeq, Elem} import xml.{NodeSeq, Elem}


/** /**
* The same StatefulSnippet instance is used across a given page rendering. * The same StatefulSnippet instance is used across a given page rendering.
Expand Down Expand Up @@ -81,10 +81,10 @@ trait StatefulSnippet extends DispatchSnippet {
/** /**
* create an anchor tag around a body * create an anchor tag around a body
* *
* @to - the target * @param to - the target
* @param func - the function to invoke when the link is clicked * @param func - the function to invoke when the link is clicked
* @param body - the NodeSeq to wrap in the anchor tag * @param body - the NodeSeq to wrap in the anchor tag
* @attrs - the (optional) attributes for the HTML element * @param attrs - the (optional) attributes for the HTML element
*/ */
def link(to: String, func: () => Any, body: NodeSeq, attrs: SHtml.ElemAttr*): Elem = def link(to: String, func: () => Any, body: NodeSeq, attrs: SHtml.ElemAttr*): Elem =
SHtml.link(to, () => { registerThisSnippet(); func() }, body, attrs: _*) SHtml.link(to, () => { registerThisSnippet(); func() }, body, attrs: _*)
Expand Down Expand Up @@ -128,7 +128,7 @@ trait StatefulSnippet extends DispatchSnippet {
*/ */
trait RenderDispatch { trait RenderDispatch {
/** /**
* The pre-defined dispatch * The predefined dispatch
*/ */
def dispatch: PartialFunction[String, NodeSeq => NodeSeq] = Map("render" -> render _) def dispatch: PartialFunction[String, NodeSeq => NodeSeq] = Map("render" -> render _)


Expand All @@ -145,7 +145,7 @@ trait RenderDispatch {
*/ */
trait RenderFuncDispatch { trait RenderFuncDispatch {
/** /**
* The pre-defined dispatch * The predefined dispatch
*/ */
def dispatch: PartialFunction[String, NodeSeq => NodeSeq] = Map("render" -> render) def dispatch: PartialFunction[String, NodeSeq => NodeSeq] = Map("render" -> render)


Expand Down Expand Up @@ -217,7 +217,7 @@ trait SimpleStatelessBehavior extends StatelessBehavior {
} }


/** /**
* A "default" implementation of StatelessBehavior. Just ignore everything and return a zero-length Text. * A "default" implementation of StatelessBehavior. Just ignore everything and return an empty NodeSeq.
*/ */
trait BlankStatelessBehavior extends StatelessBehavior { trait BlankStatelessBehavior extends StatelessBehavior {
def statelessDispatch: PartialFunction[String, NodeSeq => NodeSeq] = { def statelessDispatch: PartialFunction[String, NodeSeq => NodeSeq] = {
Expand Down

0 comments on commit 4116252

Please sign in to comment.