Skip to content

Commit

Permalink
Make some minor comment improvements to Menu.scala.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbriccetti committed Jan 10, 2013
1 parent a137d7a commit 61f2961
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/webkit/src/main/scala/net/liftweb/sitemap/Menu.scala
Expand Up @@ -217,7 +217,7 @@ object Menu extends MenuSingleton {

/**
* An intermediate class that holds the basic stuff that's needed to make a Menu item for SiteMap.
* You must include at least one URI path element by calling the / method
* You must include at least one URI path element by calling the / method.
*/
class PreParamsMenu[T<:AnyRef](name: String, linkText: Loc.LinkText[T],
parser: List[String] => Box[T],
Expand Down Expand Up @@ -335,7 +335,7 @@ object Menu extends MenuSingleton {

/**
* An intermediate class that holds the basic stuff that's needed to make a Menu item for SiteMap.
* You must include at least one URI path element by calling the / method
* You must include at least one URI path element by calling the / method.
*/
class PreMenu(name: String, linkText: Loc.LinkText[Unit]) {
/**
Expand Down Expand Up @@ -554,7 +554,7 @@ sealed trait MenuSingleton {
def apply(name: String,linkText: Loc.LinkText[Unit]): PreMenu = new PreMenu(name, linkText)

/**
* A convenient way to define a Menu items that's got the same name as it does it's localized LinkText.
* A convenient way to define a Menu item that has the same name as its localized LinkText.
* <pre>Menu.i("Home") / "index"</pre> is short-hand for <pre>Menu("Home", S.loc("Home", Text("Home")) / "index"</pre>
*/
def i(nameAndLink: String): PreMenu = Menu.apply(nameAndLink, S.loc(nameAndLink, scala.xml.Text(nameAndLink)))
Expand Down

0 comments on commit 61f2961

Please sign in to comment.