Skip to content

Commit d0913fd

Browse files
committed
Simplified as per sbc100's suggestion
1 parent efdf9b0 commit d0913fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library_html5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ var LibraryHTML5 = {
710710
var uiEvent = JSEvents.uiEvent;
711711
#endif
712712
// e.detail is seen as undefined
713-
{{{ makeSetValue('uiEvent', C_STRUCTS.EmscriptenUiEvent.detail, '(typeof e.detail !== "undefined") ? e.detail : 0', 'i32') }}};
713+
{{{ makeSetValue('uiEvent', C_STRUCTS.EmscriptenUiEvent.detail, 'e.detail || 0', 'i32') }}};
714714
{{{ makeSetValue('uiEvent', C_STRUCTS.EmscriptenUiEvent.documentBodyClientWidth, 'b.clientWidth', 'i32') }}};
715715
{{{ makeSetValue('uiEvent', C_STRUCTS.EmscriptenUiEvent.documentBodyClientHeight, 'b.clientHeight', 'i32') }}};
716716
{{{ makeSetValue('uiEvent', C_STRUCTS.EmscriptenUiEvent.windowInnerWidth, 'innerWidth', 'i32') }}};

0 commit comments

Comments
 (0)