diff options
author | Jesus Fernandez <jesus.fernandez@qt.io> | 2018-03-22 16:33:12 +0100 |
---|---|---|
committer | Jesus Fernandez <Jesus.Fernandez@qt.io> | 2018-03-27 12:22:12 +0000 |
commit | 40dff6727a2f70b795df9a93f9d890dd1b8fb834 (patch) | |
tree | b24f3c27d60a562ae78ef38a9e206e190f1d622f | |
parent | 3d0c6d7e9dccf8e9e19719c3adacf981825be93d (diff) |
Silence complaints about bitwise operationsv5.11.0-beta3
JSLint complains about the bitwise operations. From documentation:
Bitwise operators are very rare in JavaScript programs and quite often
& is simply a mistyped &&.
Change-Id: Ibda95e06bb062b71d4b5866a06010d57a6f321a6
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-rw-r--r-- | src/plugins/platforms/webgl/webqt.jsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/platforms/webgl/webqt.jsx b/src/plugins/platforms/webgl/webqt.jsx index 4c8f3a3..d2c5b0b 100644 --- a/src/plugins/platforms/webgl/webqt.jsx +++ b/src/plugins/platforms/webgl/webqt.jsx @@ -227,6 +227,7 @@ window.onload = function () { }; canvas.onmousedown = function (event) { + /* jslint bitwise: true */ qtButtons |= mapButton(event.button); sendMouseEvent(qtButtons, event.layerX, event.layerY, event.clientX, event.clientY, name); @@ -238,6 +239,7 @@ window.onload = function () { }; canvas.onmouseup = function (event) { + /* jslint bitwise: true */ qtButtons &= ~mapButton(event.button); sendMouseEvent(qtButtons, event.layerX, event.layerY, event.clientX, event.clientY, name); @@ -333,6 +335,7 @@ window.onload = function () { var gl = getContext(canvas); + /* jslint bitwise: true */ gl.clear([ gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT | gl.STENCIL_BUFFER_BIT]); windowData[name] = { "canvas" : canvas, |