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.File

Used for getting information out of a path

Constructor

MVC.File

new MVC.File(path) -> mvc.file

Takes a path

{String} -

Prototype Methods

after_domain

after_domain() -> undefined
Returns the part of the path that is after the domain part

clean

clean() -> String
Removes hash and params
{String} -

dir

dir() -> undefined
Returns everything before the last /

domain

domain() -> undefined
Returns the domain for the current path. Returns null if the domain is a file.

is_cross_domain

is_cross_domain() -> undefined
Is the file on the same domain as our page.

join

join(url) -> undefined
Joins url onto path
{Object} -

join_current

join_current() -> undefined
Joins the file to the current working directory.

join_from

join_from(url, expand) -> undefined
{Object} -
{Object} -

normalize

normalize() -> undefined
For a given path, a given working directory, and file location, update the path so it points to the right location.

relative

relative() -> undefined
Returns true if the file is relative

to_reference_from_same_domain

to_reference_from_same_domain(url) -> undefined
{Object} -