• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

autoNumeric / autoNumeric / 197
85%
master: 85%

Build:
Build:
LAST BUILD BRANCH: v4.5.6
DEFAULT BRANCH: master
Ran 25 May 2017 12:42AM UTC
Jobs 1
Files 8
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
197

push

travis-ci

AlexandreBonneau
Fix issue #447 Add a new `'null'` options to the `emptyInputBehavior` setting

Add the `this.defaultRawValue` variable that store the hard-coded default raw value used during the initialization and reset.
When using the option `{ emptyInputBehavior: AutoNumeric.options.emptyInputBehavior.null }`, the user can now explicitly set the AutoNumeric value to `null` (using `anElement.set(null)` for instance).
Additionally, when this option is set, if the AutoNumeric element is emptied, then `rawValue` is set to `null`.
Note: if the current raw value is equal to `null`, changing the `emptyInputBehavior` option to something different than `null` will update the rawValue to `''`.

Known limitation : Initializing an AutoNumeric object with the `null` value is not allowed since using `null` for the initial value means that AutoNumeric needs to use the current html value instead of `null`.

Signed-off-by: Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>

1813 of 2937 relevant lines covered (61.73%)

436.15 hits per line

Coverage Regressions

Lines Coverage ∆ File
682
100.0
src/AutoNumeric.js
Jobs
ID Job ID Ran Files Coverage
1 197.1 25 May 2017 12:42AM UTC 0
61.73
Travis Job 197.1
Source Files on build 197
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #197
  • 6508500d on github
  • Prev Build on next (#196)
  • Next Build on next (#198)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc