 		@
 
 	preventInvalidInput: ->
-		if @_checkInput and @_prevent_invalid_input
+		if @__checkInput and @_prevent_invalid_input
 			true
 		else
 			false

				check: Boolean

	readOpts: ->
		if not isEmpty(@opts.regexp)
			assert(not (@opts.checkInput), "new Input", "opts.regexp conflicts with opts.checkInput.")
			assert(not @opts.hasOwnProperty("prevent_invalid_input"), "new Input", "opts.prevent_invalid_input conflicts with opts.regexp.")

		if @opts.readonly
			assert(not (@opts.getCursorBlocks or @opts.getInputBlocks or @opts.checkInput), "new Input", "opts.readonly conflicts with opts.getCursorBlocks, opts.getInputBlocks, opts.checkInput.")

	__shadowInput: (ev) ->
		shadow_v = @__shadow0.value

		if @_rows and shadow_v.split("\n").length > @_rows
			return

		if @preventInvalidInput() and shadow_v.length > 0
			ret = @checkInput(@correctValueForInput(shadow_v))
			# console.debug "checking shadow input", ret, shadow_v
