JS: Update OK-style comments to $-style

This commit is contained in:
Asger F
2025-02-06 13:34:01 +01:00
parent 7e5c24a8ec
commit 9be041e27d
536 changed files with 4408 additions and 4762 deletions

View File

@@ -6,8 +6,8 @@ class C extends Q {
*/
this.x = this.x; // OK - documentation
this.y = this.y; // NOT OK
this.y = this.y; // $ Alert
this.arg = this.arg; // NOT OK
this.arg = this.arg; // $ Alert
}
}

View File

@@ -1,8 +1,7 @@
function Rectangle(x, y, width, height) {
this.x = x;
this.y = y;
// NOT OK
width = width;
width = width; // $ Alert
this.height = height;
}
@@ -15,18 +14,16 @@ Rectangle.prototype = {
this.width = a/this.height;
},
foo: function() {
// OK
this.area = this.area;
}
};
// NOT OK
array[1] = array[1];
array[1] = array[1]; // $ Alert
o.x = o.x; // $ Alert
// NOT OK
o.x = o.x;
// OK
document.innerHTML = document.innerHTML;
class Point {
@@ -43,7 +40,7 @@ class Point {
this.y = 0;
}
foo() {
// OK
this.dist = this.dist;
}
}