new AbbreviationItem(abbreviation)
Constructor for abbreviation item object which contains information about dom elements that share the same abbreviation
Parameters:
Name | Type | Description |
---|---|---|
abbreviation |
String | text of abbreviation |
- Source:
- scripts/cache_abbreviations.js, line 338
Properties:
Name | Type | Description |
---|---|---|
cache_id |
String | String that uniquely identifies the cache element in the DOMCache |
abbreviation_text |
String | text of abbreviation |
dom_elements |
Array | List of dom elements associated with the abbreviation |
count |
Number | Number of dom elements that share this abbreviation |
Methods
-
<static> getAttributes(unsorted) → {Array}
-
Returns an array of attributes for the element, sorted in alphabetical order
Parameters:
Name Type Description unsorted
Boolean If defined and true the results will NOT be sorted alphabetically - Source:
- scripts/cache_abbreviations.js, line 396
Returns:
Returns a array of attribute display object- Type
- Array
-
<static> getCacheProperties(unsorted) → {Array}
-
Returns an array of cache properties sorted by property name
Parameters:
Name Type Description unsorted
Boolean If defined and true the results will NOT be sorted alphabetically - Source:
- scripts/cache_abbreviations.js, line 414
Returns:
Returns a array of cache property display object- Type
- Array
-
<static> getCachePropertyValue(property) → {String|Number}
-
Returns the value of a property
Parameters:
Name Type Description property
String The property to retreive the value - Source:
- scripts/cache_abbreviations.js, line 433
Returns:
Returns the value of the property- Type
- String | Number
-
<static> getEvents() → {Array}
-
Returns an array of events for the element, sorted in alphabetical order
- Source:
- scripts/cache_abbreviations.js, line 454
Returns:
Returns a array of event item display objects- Type
- Array
-
<static> getNodeResults() → {Array}
-
Returns an array of node results in severity order
- Source:
- scripts/cache_abbreviations.js, line 366
Returns:
Returns a array of node results- Type
- Array
-
<static> getStyle() → {Array}
-
Returns an array of style items
- Source:
- scripts/cache_abbreviations.js, line 380
Returns:
Returns a array of style display objects- Type
- Array
-
<static> toString() → {String}
-
Returns a text string representation of the abbreviation item object
- Source:
- scripts/cache_abbreviations.js, line 473
Returns:
Returns string represention the abbreviation item object- Type
- String