Skip to content

v0.5.2

Compare
Choose a tag to compare
@alienzhou alienzhou released this 17 May 16:10
· 62 commits to master since this release
6a006fb

Features

  • Support verbose configuration. It decides whether warning&error message will be output.
  • Add a static method .isHighlightWrapNode(). You can use it to test whether a node(DOM) is a highlight wrapper.

Fix

  • Prevent emit REMOVE event when no node is affected by calling .remove() and .removeAll()
  • Fix the bug in .getAll, now it will return correct data
  • Prevent injecting duplicate stylesheets when one has been injected

Other updates

  • Add a suit of unit tests to ensure the code quality.
  • Refactor the way of error reporting.
  • Remove .dataset polyfill.