(pos, newBlock)
| 1528 | return position; |
| 1529 | } |
| 1530 | function seekPrevious(pos, newBlock) { |
| 1531 | var position = pos, tests; |
| 1532 | if (position <= 0) return 0; |
| 1533 | while (--position > 0 && (newBlock === true && getTest(position).match.newBlockMarker !== true || newBlock !== true && !isMask(position) && (tests = getTests(position), |
| 1534 | tests.length < 2 || tests.length === 2 && tests[1].match.def === ""))) {} |
| 1535 | return position; |
| 1536 | } |
| 1537 | function writeBuffer(input, buffer, caretPos, event, triggerEvents) { |
| 1538 | if (event && $.isFunction(opts.onBeforeWrite)) { |
| 1539 | var result = opts.onBeforeWrite.call(inputmask, event, buffer, caretPos, opts); |
no test coverage detected