Documentation

include MVC MVC.Animate MVC.Class MVC.Controller MVC.Controller.Action MVC.Controller.Action.Drag MVC.Controller.Action.Drop MVC.Controller.Action.EnterLeave MVC.Controller.Action.Event MVC.Controller.Action.Hover MVC.Controller.Action.Lasso MVC.Controller.Action.Selectable MVC.Controller.Action.Subscribe MVC.Controller.Comet MVC.Controller.Params MVC.Controller.Params.Drag MVC.Controller.Params.Drop MVC.Controller.Stateful MVC.Delegator MVC.Doc MVC.Element MVC.Event MVC.File MVC.History MVC.IO MVC.IO.Ajax MVC.IO.Comet MVC.IO.JsonP MVC.IO.WindowName MVC.IO.XDoc MVC.Model MVC.Model.Ajax MVC.Model.Cookie MVC.Model.JsonP MVC.Model.JsonRest MVC.Model.WindowName MVC.Model.XmlRest MVC.Native MVC.Native.Array MVC.Native.Date MVC.Native.Function MVC.Native.Number MVC.Native.Object MVC.Native.String MVC.Options MVC.Store MVC.SyntheticEvent MVC.Test MVC.Test.Assertions MVC.Test.Controller MVC.Test.Functional MVC.Test.Runner MVC.Test.Unit MVC.Timer MVC.Timer.Easings MVC.Vector MVC.View MVC.View.Helpers OpenAjax

MVC.Native.String

Aliased as: MVC.String
When not in no-conflict mode, JMVC adds the following helpers to string

Static Methods

camelize

camelize(s) -> String
Capitalizes a string from something undercored. Examples:
 MVC.String.camelize("one_two") //-> "oneTwo"
 "three-four".camelize() //-> threeFour
{String} -
{String} - a the camelized string

capitalize

capitalize(s) -> String
Capitalizes a string
{String} - the string to be lowercased.
{String} - a string with the first character capitalized, and everything else lowercased
view

chop

chop(string) -> undefined
Removes the last character from a string.
{Object} -

classize

classize(s) -> String
Like camelize, but the first part is also capitalized
{String} -
{String} -

ends_with

ends_with(s, pattern) -> Boolean
Returns if string ends with another string
{String} - String that is being scanned
{String} - What the string might end with
{Boolean} - true if the string ends wtih pattern, false if otherwise

include

include(s, pattern, string) -> Boolean
Returns if a string has another string inside it.
{} -
{String} - String that we are looking for
{String} - String that is being scanned
{Boolean} - true if the string has pattern, false if otherwise
lang/inflector

is_singular

is_singular(string) -> Boolean
Returns if the string is singular
{String} -
{Boolean} -
lang/inflector

pluralize

pluralize(string, count, plural) -> String
Pluralizes a string
{String} - string to be pluralized
{Number} -
{String} -
{String} -
view

rsplit

rsplit(string, regex, item) -> undefined
Can split a string nicely cross browser.
{} -
{Object} -
{Object} -
lang/inflector

singularize

singularize(string, count) -> String
Returns the singular version of a string
{String} - the string to be singularized
{Number} -
{String} -

strip

strip(s) -> undefined
{String} - returns a string with leading and trailing whitespace removed.
lang/json

to_json

to_json(string) -> undefined
{Object} -