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

autoNumeric / autoNumeric / 197 / 1
85%
master: 85%

Build:
Build:
LAST BUILD BRANCH: v4.5.6
DEFAULT BRANCH: master
Ran 25 May 2017 12:42AM UTC
Files 8
Run time 0s
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

25 May 2017 12:40AM UTC coverage: 61.73% (+0.02%) from 61.707%
197.1

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

Source Files on job 197.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 197
  • Travis Job 197.1
  • 6508500d on github
  • Prev Job for on next (#196.1)
  • Next Job for on next (#198.1)
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