7
7
exports [ "aspnetValidation" ] = factory ( ) ;
8
8
else
9
9
root [ "aspnetValidation" ] = factory ( ) ;
10
- } ) ( window , function ( ) {
11
- return /******/ ( function ( modules ) { // webpackBootstrap
12
- /******/ // The module cache
13
- /******/ var installedModules = { } ;
14
- /******/
15
- /******/ // The require function
16
- /******/ function __webpack_require__ ( moduleId ) {
17
- /******/
18
- /******/ // Check if module is in cache
19
- /******/ if ( installedModules [ moduleId ] ) {
20
- /******/ return installedModules [ moduleId ] . exports ;
21
- /******/ }
22
- /******/ // Create a new module (and put it into the cache)
23
- /******/ var module = installedModules [ moduleId ] = {
24
- /******/ i : moduleId ,
25
- /******/ l : false ,
26
- /******/ exports : { }
10
+ } ) ( self , ( ) => {
11
+ return /******/ ( ( ) => { // webpackBootstrap
12
+ /******/ "use strict" ;
13
+ /******/ // The require scope
14
+ /******/ var __webpack_require__ = { } ;
15
+ /******/
16
+ /************************************************************************/
17
+ /******/ /* webpack/runtime/define property getters */
18
+ /******/ ( ( ) => {
19
+ /******/ // define getter functions for harmony exports
20
+ /******/ __webpack_require__ . d = ( exports , definition ) => {
21
+ /******/ for ( var key in definition ) {
22
+ /******/ if ( __webpack_require__ . o ( definition , key ) && ! __webpack_require__ . o ( exports , key ) ) {
23
+ /******/ Object . defineProperty ( exports , key , { enumerable : true , get : definition [ key ] } ) ;
24
+ /******/ }
25
+ /******/ }
26
+ /******/ } ;
27
+ /******/ } ) ( ) ;
28
+ /******/
29
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
30
+ /******/ ( ( ) => {
31
+ /******/ __webpack_require__ . o = ( obj , prop ) => ( Object . prototype . hasOwnProperty . call ( obj , prop ) )
32
+ /******/ } ) ( ) ;
33
+ /******/
34
+ /******/ /* webpack/runtime/make namespace object */
35
+ /******/ ( ( ) => {
36
+ /******/ // define __esModule on exports
37
+ /******/ __webpack_require__ . r = ( exports ) => {
38
+ /******/ if ( typeof Symbol !== 'undefined' && Symbol . toStringTag ) {
39
+ /******/ Object . defineProperty ( exports , Symbol . toStringTag , { value : 'Module' } ) ;
40
+ /******/ }
41
+ /******/ Object . defineProperty ( exports , '__esModule' , { value : true } ) ;
27
42
/******/ } ;
28
- /******/
29
- /******/ // Execute the module function
30
- /******/ modules [ moduleId ] . call ( module . exports , module , module . exports , __webpack_require__ ) ;
31
- /******/
32
- /******/ // Flag the module as loaded
33
- /******/ module . l = true ;
34
- /******/
35
- /******/ // Return the exports of the module
36
- /******/ return module . exports ;
37
- /******/ }
38
- /******/
39
- /******/
40
- /******/ // expose the modules object (__webpack_modules__)
41
- /******/ __webpack_require__ . m = modules ;
42
- /******/
43
- /******/ // expose the module cache
44
- /******/ __webpack_require__ . c = installedModules ;
45
- /******/
46
- /******/ // define getter function for harmony exports
47
- /******/ __webpack_require__ . d = function ( exports , name , getter ) {
48
- /******/ if ( ! __webpack_require__ . o ( exports , name ) ) {
49
- /******/ Object . defineProperty ( exports , name , { enumerable : true , get : getter } ) ;
50
- /******/ }
51
- /******/ } ;
52
- /******/
53
- /******/ // define __esModule on exports
54
- /******/ __webpack_require__ . r = function ( exports ) {
55
- /******/ if ( typeof Symbol !== 'undefined' && Symbol . toStringTag ) {
56
- /******/ Object . defineProperty ( exports , Symbol . toStringTag , { value : 'Module' } ) ;
57
- /******/ }
58
- /******/ Object . defineProperty ( exports , '__esModule' , { value : true } ) ;
59
- /******/ } ;
60
- /******/
61
- /******/ // create a fake namespace object
62
- /******/ // mode & 1: value is a module id, require it
63
- /******/ // mode & 2: merge all properties of value into the ns
64
- /******/ // mode & 4: return value when already ns object
65
- /******/ // mode & 8|1: behave like require
66
- /******/ __webpack_require__ . t = function ( value , mode ) {
67
- /******/ if ( mode & 1 ) value = __webpack_require__ ( value ) ;
68
- /******/ if ( mode & 8 ) return value ;
69
- /******/ if ( ( mode & 4 ) && typeof value === 'object' && value && value . __esModule ) return value ;
70
- /******/ var ns = Object . create ( null ) ;
71
- /******/ __webpack_require__ . r ( ns ) ;
72
- /******/ Object . defineProperty ( ns , 'default' , { enumerable : true , value : value } ) ;
73
- /******/ if ( mode & 2 && typeof value != 'string' ) for ( var key in value ) __webpack_require__ . d ( ns , key , function ( key ) { return value [ key ] ; } . bind ( null , key ) ) ;
74
- /******/ return ns ;
75
- /******/ } ;
76
- /******/
77
- /******/ // getDefaultExport function for compatibility with non-harmony modules
78
- /******/ __webpack_require__ . n = function ( module ) {
79
- /******/ var getter = module && module . __esModule ?
80
- /******/ function getDefault ( ) { return module [ 'default' ] ; } :
81
- /******/ function getModuleExports ( ) { return module ; } ;
82
- /******/ __webpack_require__ . d ( getter , 'a' , getter ) ;
83
- /******/ return getter ;
84
- /******/ } ;
85
- /******/
86
- /******/ // Object.prototype.hasOwnProperty.call
87
- /******/ __webpack_require__ . o = function ( object , property ) { return Object . prototype . hasOwnProperty . call ( object , property ) ; } ;
88
- /******/
89
- /******/ // __webpack_public_path__
90
- /******/ __webpack_require__ . p = "" ;
91
- /******/
92
- /******/
93
- /******/ // Load entry module and return exports
94
- /******/ return __webpack_require__ ( __webpack_require__ . s = "./src/index.ts" ) ;
95
- /******/ } )
43
+ /******/ } ) ( ) ;
44
+ /******/
96
45
/************************************************************************/
97
- /******/ ( {
98
-
99
- /***/ "./src/index.ts" :
46
+ var __webpack_exports__ = { } ;
100
47
/*!**********************!*\
101
48
!*** ./src/index.ts ***!
102
49
\**********************/
103
- /*! exports provided: isValidatable, MvcValidationProviders, ValidationService */
104
- /***/ ( function ( module , __webpack_exports__ , __webpack_require__ ) {
105
-
106
- "use strict" ;
107
50
__webpack_require__ . r ( __webpack_exports__ ) ;
108
- /* harmony export (binding) */ __webpack_require__ . d ( __webpack_exports__ , "isValidatable" , function ( ) { return isValidatable ; } ) ;
109
- /* harmony export (binding) */ __webpack_require__ . d ( __webpack_exports__ , "MvcValidationProviders" , function ( ) { return MvcValidationProviders ; } ) ;
110
- /* harmony export (binding) */ __webpack_require__ . d ( __webpack_exports__ , "ValidationService" , function ( ) { return ValidationService ; } ) ;
51
+ /* harmony export */ __webpack_require__ . d ( __webpack_exports__ , {
52
+ /* harmony export */ MvcValidationProviders : ( ) => ( /* binding */ MvcValidationProviders ) ,
53
+ /* harmony export */ ValidationService : ( ) => ( /* binding */ ValidationService ) ,
54
+ /* harmony export */ isValidatable : ( ) => ( /* binding */ isValidatable )
55
+ /* harmony export */ } ) ;
111
56
var __awaiter = ( undefined && undefined . __awaiter ) || function ( thisArg , _arguments , P , generator ) {
112
57
function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
113
58
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
@@ -1113,9 +1058,11 @@ var ValidationService = /** @class */ (function () {
1113
1058
}
1114
1059
} ) ;
1115
1060
} ) ; } ;
1116
- var debounceTimeoutID = 0 ;
1061
+ var debounceTimeoutID = null ;
1117
1062
cb . debounced = function ( event , callback ) {
1118
- clearTimeout ( debounceTimeoutID ) ;
1063
+ if ( debounceTimeoutID !== null ) {
1064
+ clearTimeout ( debounceTimeoutID ) ;
1065
+ }
1119
1066
debounceTimeoutID = setTimeout ( function ( ) {
1120
1067
cb ( event , callback ) ;
1121
1068
} , _this . debounce ) ;
@@ -1481,8 +1428,7 @@ var ValidationService = /** @class */ (function () {
1481
1428
} ( ) ) ;
1482
1429
1483
1430
1484
-
1485
- /***/ } )
1486
-
1487
- /******/ } ) ;
1431
+ /******/ return __webpack_exports__ ;
1432
+ /******/ } ) ( )
1433
+ ;
1488
1434
} ) ;
0 commit comments