Skip to content

JHson v2.2.0 - More public functions for improved filtering! Large fixes!

Compare
Choose a tag to compare
@william-troup william-troup released this 08 Sep 19:45
· 19 commits to main since this release
2e3d326

Public Functions:

  • Added "includeDataAttributes()" support for "json()", which states if the data attributes should be included (defaults to true).
  • Added "addDataAttributes()" support for "html()" (including binding support), which states if the data attributes should be added (defaults to true).
  • Added "removeOriginalDataAttributes()" support for "html()" (including binding support), which states if the original data attributes should be removed (defaults to true).
  • Added "propertyReplacer()" support for "json()", which states a JSON property replacer function to use when writing the JSON (defaults to null).
  • Added "ignoreNodeCondition()" support for "json()", which states a condition function (that accepts a DOM element) that states if a node should be included in the JSON (defaults to null).
  • Added "get()" support for "html()", which returns the HTML DOM element created from the JSON.

Documentation:

  • Updated the documentation to show the right properties for the objects, and added missing documentation for the binding attribute.

Fixes:

  • Fixed a huge fault that prevented all other binding properties (other than the "json") from working when set in DOM attribute "data-jhson-js".