MCPcopy
hub / github.com/autoNumeric/autoNumeric / _executeCallback

Method _executeCallback

src/AutoNumeric.js:2434–2438  ·  view source on GitHub ↗

* Execute the given callback function using the given result as its first parameter, and the AutoNumeric object as its second. * * @param {number|string|Array|null} result * @param {function|null} callback If a callback is passed, then the result is passed to it as its first argument,

(result, callback)

Source from the content-addressed store, hash-verified

2432 * @private
2433 */
2434 _executeCallback(result, callback) {
2435 if (!AutoNumericHelper.isNull(callback) && AutoNumericHelper.isFunction(callback)) {
2436 callback(result, this);
2437 }
2438 }
2439
2440 /**
2441 * Trigger the given event on the given element with the given detail.

Callers 5

constructorMethod · 0.95
getNumericStringMethod · 0.95
getFormattedMethod · 0.95
getNumberMethod · 0.95
getLocalizedMethod · 0.95

Calls 2

isNullMethod · 0.80
isFunctionMethod · 0.80

Tested by

no test coverage detected