API Docs for: 1.4.4
Show:

ukeGeeks.toolsLite Class

some jQuery-like tools (very, very crappy. wish we could count on jQuery being on the page.) if you do want to use jQuery (and why wouldn't you) I'm not offended if you yank this out.

Item Index

Properties

Methods

addClass

(
  • element
  • className
)
Void

adds className to element.

Parameters:

  • element DOM_element

    target element

  • className String

    CSS classname to add

Returns:

Void:

getElementsByClass

(
  • searchClass
  • node
  • tag
)
ArrayDomElements

Searches within Node for tags with specified CSS class.

Parameters:

  • searchClass String

    CSS Classname

  • node HtmlNode

    parent node to begin search within. Defaults to entire document.

  • tag String

    restrict search to a specific tag name. defaults to all tags.

Returns:

ArrayDomElements:

trim

(
  • str
)
String

Removes all white space at the begining and end of a string.

Parameters:

  • str String

    String to trim.

Returns:

String:

Returns string without leading and following white space characters.

Properties

_public

Object

attach public members to this object