on master help sign in
Fix bug reported by @Dandandan in which a runtime error leads to a crash
commitb65090173b42e5c663b65b7295bb1eb15b2e7e0d authorEvan Czaplicki <info@elm-lang.org> dateThu 13 Mar 2014, 11:43 (13 years ago) parentb5f96fd
1 file changed+2
libraries/Native/Graphics/Input.js+2
libraries/Native/Graphics/Input.js+2
@@ -289,6 +289,7 @@ Elm.Native.Graphics.Input.make = function(elm) {
289289 _:{},
290290 string: JS.toString(next),
291291 selection: {
292+ _:{},
292293 start: start,
293294 end: end,
294295 direction: { ctor: direction }
@@ -302,6 +303,7 @@ Elm.Native.Graphics.Input.make = function(elm) {
302303 _:{},
303304 string: field.value,
304305 selection: {
306+ _:{},
305307 start: field.selectionStart,
306308 end: field.selectionEnd,
307309 direction: { ctor: direction }