Module: bajaux/container/wb/StringList

A fake DOMStringList for the Clipboard in the Workbench
Web Browser.


new (require("bajaux/container/wb/StringList"))()

A StringList for use with the Clipboard.

Requires

  • module:jquery

Methods


add(str)

Add a string to the list.

Parameters:
Name Type Description
str String

The string to add.


contains(str)

Returns true if the string is the list.

Parameters:
Name Type Description
str String

The String to query the list with.

Returns:

true if the string is in the list.

Type
Boolean

item(index)

Return an item from list via its index.

Parameters:
Name Type Description
index Number
Returns:

a String from the list.


remove(str)

Remove an item for the list.

Parameters:
Name Type Description
str String

The string to remove.