Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
A
 addBody
 addClassName
 addContent
 addPreference
 appendText
C
 callback
 camelCase
 clearDelayed, Environment
 clearPeriodical
 contains
 createElement
D
 detect
E
 empty
 equals
 escapeRegExp
 every
 extend
F
 filter
 forEach
 format
G
 getBool
 getChildren
 getDimensions
 getFeed
 getInt
 getJson
 getModule
 getParent
 getPreference
 getText
 getTitle
 getValue
 getXml
H
 hasClassName
 hide
I
 indexOf
 init, Environment
 initPreferences
 inject
 isEmail
L
 launch
 launchModule, Environment
 log
M
 makeClickable
 map
 merge
 mergePreferences
N
 normalize
O
 openURL
P
 parseRelativeTime
R
 registerModule, Environment
 remove
 removeClassName
 request
S
 s
 setAutoRefresh
 setBody
 setDelayed, Environment
 setHTML
 setIcon
 setMetas
 setPeriodical
 setPreferences
 setSearchResultCount
 setStyle
 setText
 setTitle
 setUnreadCount
 setValue
 show
 some
 stripTags
addBody: function(content)
Adds contents to the existing body of the Widget.
addClassName: function(className)
Adds a CSS class to element.
addContent: function(content)
addPreference: function(preference)
Adds a single preference to the existing preferences of the widget.
appendText: function(text)
Adds a new text node at the end of the element’s existing content
callback: function(name,
args,
bind)
Executes the callback method associated with the given callback name (key).
callback: function(name,
args,
bind)
Fire Environment.key then the callback method associated with the given callback name (key).
camelCase: function()
Not documented
clearDelayed: function(name)
Unregister a delayed event previously registered with setDelayed
clearPeriodical: function(name)
Unregister a periodical event previously registered with setPeriodical
clearPeriodical: function(name)
Unregister a periodical event previously registered with setPeriodical
contains: function(string,
separator)
Not documented
createElement: function(tagName,
options)
Creates a new element according to the provided “tagName”.
detect: function(iterator)
Not documented
empty: function()
Empty an element of all its children.
equals: function(compare)
Test wether the array equals to the one passed as parameter.
escapeRegExp: function()
Returns string with escaped regular expression characters
every: function(fn,
bind)
Tests whether all elements in the array pass the test implemented by the provided function.
UWA.extend = function(original,
extended)
Copies all the properties from the second passed object to the first passed Object.
filter: function(fn,
bind)
Creates a new array with all elements that pass the test implemented by the provided function.
forEach: function(fn,
bind)
Executes a provided function once per array element.
format : function()
Not documented
getBool: function(name)
Gets the Boolean value of the given preference.
getChildren: function()
return a collection of the element’s child nodes
getDimensions: function()
Finds the computed width and height of element and returns them as key/value pairs of an object.
getFeed: function(url,
callback)
Gets the content of a feed, in a JSON format.
getInt: function(name)
Gets the Integer value of the given preference.
getJson: function(url,
callback)
This method is used to get the content of an external JSON data source.
getModule: function(url,
callback,
id)
This method is used to get the content of an external widget, in XML format.
getModule: function()
Returns the widget (= module) currently registered in the Environment.
getParent: function()
return a reference to the element’s parent node
getPreference: function(name)
Get a preference with its name.
getText: function(url,
callback)
This method is used to get the content of an external data source.
getTitle: function()
Get the title of the Widget.
getValue: function(name)
Gets the value of the given preference.
getXml: function(url,
callback)
This method is used to get the content of an external XML data source.
hasClassName: function(className)
Checks whether element has the given CSS className.
hide: function()
Hides and returns element.
indexOf: function(item,
from)
Returns the first index at which a given element can be found in the array, or -1 if it is not present.
init: function()
Initialize the Environment, when DOM is ready
initPreferences: function()
Initializes preferences of the widget.
inject: function(el,
where)
Insert the Element inside the passed element
isEmail: function()
Not documented
launch: function()
Launch the widget : call initPreferences then fire widget.onLoad.
launchModule: function()
Launch the registered widget by fire the widget.launch method.
UWA.log = function(message)
Log a message to a console, if one available.
log: function(string)
Logs environment’s messages in the console, if one exists and if the debugMode is true.
makeClickable: function()
Not documented
map: function(fn,
bind)
Creates a new array with the results of calling a provided function on every element in this array.
UWA.merge = function()
Copies the properties from the second passed object to the first passed Object if it not exists already.
mergePreferences: function(prefs)
Add preferences to the widget if preferences of the same name are not already defined.
normalize: function(sum)
Not documented
openURL: function(url)
Open an URL.
parseRelativeTime: function(raw,
offset)
Not documented
registerModule: function(module)
Registers a Widget (module) into the execution Environment.
remove: function()
Completely removes element from the document and returns it.
removeClassName: function(className)
Removes element’s CSS className and returns element.
request: function(url,
request)
This method is used to get the content of an external data source.
s: function()
Not documented
setAutoRefresh: function(delay)
Sets the auto-refresh interval for the widget.
setBody: function(content)
Sets the body of the Widget.
setDelayed: function(name,
fn,
delay,
bind)
Registers a function as delayed event.
setHTML: function(html)
Sets the innerHTML of the Element.
setIcon: function(url,
search)
Sets the icon for the Widget.
setMetas: function(metas)
Set the metas of the widget.
setPeriodical: function(name,
fn,
delay,
force)
Register a function as periodical event.
setPeriodical: function(name,
fn,
delay,
force)
Register a function as periodical event.
setPreferences: function(schema)
Sets preferences of the widget.
setSearchResultCount: function(count)
Sets the search result count.
setStyle: function(style)
Modifies element’s CSS style properties.
setText: function(text)
Sets the inner text of the Element.
setTitle: function(title,
extended)
Sets the title of the Widget.
setUnreadCount: function(count)
Sets the count of unread items.
setValue: function(name,
value)
Sets the value of the given preference.
show: function()
Displays and returns element.
some: function(fn,
bind)
Tests whether some element in the array passes the test implemented by the provided function.
stripTags: function()
Strips a string of any HTML tag.