Post subject: Password generators page has JS error + potential fix
Joined: 11/22/2004
Posts: 1468
Location: Rotterdam, The Netherlands
http://tasvideos.org/PasswordGenerators.html There seems to be a syntax error on this page. Firebug tells me it's the same syntax error in three different files (http://tasvideos.org/css/mm2-password.js, http://tasvideos.org/css/mm3-password.js, http://tasvideos.org/css/mm4-password.js), namely the following line at the end of each of those files:
}for(var i in defs) this[i]=defs[i]
The closing bracket is the end of a variable assignment and it expects there to be either a ; or a , afterwards. I believe that adding a semicolon or a linebreak will solve the error. I don't know why this error didn't come up before, though. The wiki page hasn't been edited since 2007 and the JS files have remained the same since 2004.
Emulator Coder
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Fixed, thanks for the report.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.