Home Manual Reference Source Test

Function

Static Public Summary
public

ajax(options: Options): Object

Perform an ajax request

public

extend(dest: Object, sources: Object[]): Object

Extend an object shallowly with others

public

frame(func: function): func

Create a function which will be called at the next requestAnimationFrame cycle

public

Get a random prefixed ID

public

max(values: Array): Number

Get the largest value

public

min(values: Array): Number

Get the smallest value

public

Apply a map of styles to an element

Static Public

public ajax(options: Options): Object source

Perform an ajax request

Params:

NameTypeAttributeDescription
options Options

Description

Return:

Object

Observer instance

public extend(dest: Object, sources: Object[]): Object source

Extend an object shallowly with others

Params:

NameTypeAttributeDescription
dest Object

The target object

sources Object[]

The objects to use for extending

Return:

Object

Merged object

public frame(func: function): func source

Create a function which will be called at the next requestAnimationFrame cycle

Params:

NameTypeAttributeDescription
func function

The function to call

Return:

func

The function wrapped within a requestAnimationFrame

public getId(): String source

Get a random prefixed ID

Return:

String

Random ID

Test:

public max(values: Array): Number source

Get the largest value

Params:

NameTypeAttributeDescription
values Array

Array of numbers

Return:

Number

Largest number found

Test:

public min(values: Array): Number source

Get the smallest value

Params:

NameTypeAttributeDescription
values Array

Array of numbers

Return:

Number

Smallest number found

Test:

public style(el: HTMLElement, styles: Object): HTMLElement source

Apply a map of styles to an element

Params:

NameTypeAttributeDescription
el HTMLElement

The element that the styles will be applied to

styles Object

The map of propName: attribute, both are used as-is

Return:

HTMLElement

el