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

autoNumeric / autoNumeric / 139
85%
master: 85%

Build:
Build:
LAST BUILD BRANCH: v4.5.6
DEFAULT BRANCH: master
Ran 31 Mar 2017 10:43AM UTC
Jobs 1
Files 4
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

pending completion
139

push

travis-ci

AlexandreBonneau
Fix issue #414 Changing the value of an element from negative to positive is not possible for some specific configuration of brackets, for the second time.

Remove the need to keep an ambiguous `settings.trailingNegative` variable, that was used for other things that its names suggests.
Extract the `_isTrailingNegative` test to its own function.
Fix `_convertToNumericString()` to make it remove the `suffixText` as well.
Use array destructuring to simplify the `_setValueParts()` function.
Remove the attribute `newValue` polluting `this`, which allow to explicitly pass the needed information.
Merge `this.settings.hasFocus` into `this.isFocused`.
Remove the need for the `this.settings.strip` variable.
Modify the event listener from `'focusin'` to `'focus'`, in order to prepare for the merge of `_onFocusInAndMouseEnter()` and `_onFocus()` handlers.
Modify `_cleanLeadingTrailingZeros()` so that the trailing zeroes if correctly done, even if `leadingZero` is set to `keep`.
Rename `_cleanLeadingTrailingZeros()` to `_trimLeadingAndTrailingZeros()`.
Change the `_addGroupSeparators()` signature so that the focused state is explicitly passed as a parameter, instead of piggy-backing on the settings object.
Add a `_setTrailingNegativeSignInfo()` function that parse the settings and initialize once the `this.isTrailingNegative` property if the negative sign should be trailing for negative values.
Rename the `leftOrAll` parameter from `_stripAllNonNumberCharacters()` to a more meaningful `stripZeros`.
Simplify a test in `_truncateDecimalPlaces()`.
Rename `_skipAlways()` to `_processNonPrintableKeysAndShortcuts()`.
Add cases to the helper function `isNegative()` to make it more efficient.
Add a new `isNegativeWithBrackets()` helper function that tests if the given value is a negative with brackets.

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

1627 of 2661 relevant lines covered (61.14%)

401.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 139.1 31 Mar 2017 10:43AM UTC 0
61.14
Travis Job 139.1
Source Files on build 139
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #139
  • bffa8f48 on github
  • Prev Build on next (#138)
  • Next Build on next (#140)
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