Fix bug reported by @Dandandan in which a runtime error leads to a crash

This commit is contained in:
Evan Czaplicki 2014-03-13 11:43:16 -07:00
parent b5f96fda15
commit b65090173b

View file

@ -289,6 +289,7 @@ Elm.Native.Graphics.Input.make = function(elm) {
_:{},
string: JS.toString(next),
selection: {
_:{},
start: start,
end: end,
direction: { ctor: direction }
@ -302,6 +303,7 @@ Elm.Native.Graphics.Input.make = function(elm) {
_:{},
string: field.value,
selection: {
_:{},
start: field.selectionStart,
end: field.selectionEnd,
direction: { ctor: direction }