All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
JavaScript Reference

$ - Cornerstone global object

Most of global variables and functions are accessed through Cornerstone global object $.

$(css_selector)

Returns
array of widgets
> $("ImageWidget:active")
[ <ImageWidget#MainImage>, <ImageWidget.icon> ]

$.app

Instance of MultiWidgets::Application.

$.numRange(begin, end, step)

Parameters
beginfirst number in the array
endarray end (exclusive)
stepdefaults to 1
Returns
array [begin, begin + step, ..., value).

If begin is lesser than end and step is positive then values of generated array starts at value begin and ends in largest value lesser than end.

If begin is greater than end and step is negative then values of generated array starts at value begin and ends in smallest value greater than end.

Otherwise an empty array is returned.

> $.numRange(10, 20, 3)
[ 10, 13, 16, 19 ]

Global functions and variables

load(filename)

printf(format, args...)

printf(format, args...)

sprintf(format, args...)

assert_equal(test, target)

assert_equal(test, target)

__FILE__

__PATH__