Skip to content

Commit 7bd017e

Browse files
author
Tom Hanoldt
committed
add version
1 parent 3411a5f commit 7bd017e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/input.validator.coffee

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ class @InputValidator
119119
validator.config.handler.onValid?(validator, $element, value, errors)
120120

121121
constructor: (@context, config={}) ->
122-
@config = @constructor.config
123-
@ns = 'inputvalidator'
122+
@config = @constructor.config
123+
@ns = 'inputvalidator'
124+
@version = '__VERSION__'
124125
@init(config)
125126

126127
init: (config, context=null) =>
@@ -130,7 +131,7 @@ class @InputValidator
130131

131132
prepareElements: (context=null) =>
132133
context ?= @context
133-
134+
134135
$elements = @elementsFor(context)
135136
if @config.validateOnFocusOut
136137
$elements

0 commit comments

Comments
 (0)