Remove assignment inside expression
This commit is contained in:
@@ -238,8 +238,11 @@ ol.pointer.TouchSource.prototype.processTouches_ =
|
|||||||
* @return {boolean} True, if the `Touch` with the given id is in the list.
|
* @return {boolean} True, if the `Touch` with the given id is in the list.
|
||||||
*/
|
*/
|
||||||
ol.pointer.TouchSource.prototype.findTouch_ = function(touchList, searchId) {
|
ol.pointer.TouchSource.prototype.findTouch_ = function(touchList, searchId) {
|
||||||
for (var i = 0, l = touchList.length, t; i < l && (t = touchList[i]); i++) {
|
var l = touchList.length;
|
||||||
if (t.identifier === searchId) {
|
var touch;
|
||||||
|
for (var i = 0; i < l; i++) {
|
||||||
|
touch = touchList[i];
|
||||||
|
if (touch.identifier === searchId) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user