Home Reference Source
public class | source

script

Extends:

lib/utils.js~utils → script

Static Method Summary

Static Public Methods
public static

Helper method for appending an element to body or documentElement

public static

makeArray(type: *, arrayLength: *, cb: *): string

public static

makeConstraint(keys: *, values: *): *

public static

makeLoop(s: *, max: *): string

public static

makeRandomOptions(baseObject: *): *

public static

methodCall(objectName: *, methodHash: *): string

public static

methodHead(list: *, numOptional: *): string

public static

offset(s: *): string

public static

runner(cmds: string | string[]): array

Wrap command(s) in setInterval, setTimeout, loop or run directly

public static

safely(obj: *): string

public static

setAttribute(objectName: *, attributeHash: *): string

Static Public Methods

public static addElementToBody(name: string): string source

Helper method for appending an element to body or documentElement

Params:

NameTypeAttributeDescription
name string

Element identifier

Return:

string

public static makeArray(type: *, arrayLength: *, cb: *): string source

Params:

NameTypeAttributeDescription
type *
arrayLength *
cb *

Return:

string

public static makeConstraint(keys: *, values: *): * source

Params:

NameTypeAttributeDescription
keys *
values *

Return:

*

public static makeLoop(s: *, max: *): string source

Params:

NameTypeAttributeDescription
s *
max *

Return:

string

public static makeRandomOptions(baseObject: *): * source

Params:

NameTypeAttributeDescription
baseObject *

Return:

*

public static methodCall(objectName: *, methodHash: *): string source

Params:

NameTypeAttributeDescription
objectName *
methodHash *

Return:

string

public static methodHead(list: *, numOptional: *): string source

Params:

NameTypeAttributeDescription
list *
numOptional *

Return:

string

public static offset(s: *): string source

Params:

NameTypeAttributeDescription
s *

Return:

string

public static runner(cmds: string | string[]): array source

Wrap command(s) in setInterval, setTimeout, loop or run directly

Params:

NameTypeAttributeDescription
cmds string | string[]

Command(s) to be executed

Return:

array

public static safely(obj: *): string source

Params:

NameTypeAttributeDescription
obj *

Return:

string

public static setAttribute(objectName: *, attributeHash: *): string source

Params:

NameTypeAttributeDescription
objectName *
attributeHash *

Return:

string