[latex]Mae govannen![/latex]
Hast du mal probiert ob er noch meckert, wenn du schreibst:
while((el = el.offsetParent)) ...
hallo struppi
so gehts! – vielen dank!
Steht übrigens auch so auf der JSLint-Seite:
JSLint does not expect to see an assignment statement in the condition part of an if or for or while or do statement. This is because it is more likely that
if (a = b) {
...
}
was intended to be
if (a == b) {
...
}
If you really intend an assignment, wrap it in another set of parens:
if ((a = b)) {
...
}
Cü,
Kai
--
Ash nazg durbatulûk, ash nazg gimbatul,ash nazg thrakatulûk, agh burzum-ishi krimpatul
selfcode sh:( fo:| ch:? rl:( br:< n4:# ie:{ mo:| va:) js:) de:> zu:) fl:( ss:| ls:?
Mein Selfhtml-Kram
Ash nazg durbatulûk, ash nazg gimbatul,ash nazg thrakatulûk, agh burzum-ishi krimpatul
selfcode sh:( fo:| ch:? rl:( br:< n4:# ie:{ mo:| va:) js:) de:> zu:) fl:( ss:| ls:?
Mein Selfhtml-Kram