Helper functions

Function Description Available since Example
dim

Blanket management.

5.4.0
undim

Blanket management.

5.4.0
params

Takes meta tags from the page and populates an object with them.

5.4.0
populateParameters

Takes meta tags from the page and populates an object with them.

5.4.0
$

jQuery.

5.4.0
Cookie Deprecated

Store values in a persistent cookie without worrying about the application using too many cookies.

3.5.5
debounce Deprecated

Ensure that a constantly firing function doesn't cause performance issues.

Don't use when binding to an infrequently firing event.

5.1
debounceImmediate Deprecated

Like debounce(), makes sure that a constantly firing function doesn't cause performance issues, but fires at the start rather than at the end of the wait period.

Don't use when binding to an infrequently firing event.

5.9
escapeHtml

The AJS.escapeHtml() function performs basic html-safe escaping of the input string. Specifically, it encodes:

  • <
  • >
  • &
  • '
  • "
4.0
log

A safe alternative to console.log(). It ensures that both console and the console.log method exist before executing. This means if you happen to leave one in your code, browsers which don't support console.log (eg. IE, some mobile browsers) shouldn't break.

1.0
version

Returns the version of AUI.

1.2.0