[23:27] == Nathan2055 [422098bb@gateway/web/freenode/ip.66.32.152.187] has joined ##javascript [23:27] == sarro [~sarro@i5387FC4A.versanet.de] has joined ##javascript [23:27] <Nathan2055> !help [23:27] == Cannot send to channel: ##javascript [23:28] -NickServ- Invalid password for Nathan2055. [23:28] -NickServ- You are now identified for Nathan2055. [23:28] -NickServ- 1 failed login since last login. [23:28] -NickServ- Last failed attempt from: Nathan2055!422098bb@gateway/web/freenode/ip.66.32.152.187 on Sep 10 03:28:02 2012. [23:28] -EarwigBot- Current status: Articles for creation is backlogged (AFC: 801; AFC/R: 14; FFU: 13). [23:28] <Nathan2055> !help [23:28] <ecmabot> Nathan2055: For help, ask your question. Be patient. Code samples should be pasted in a paste service (see !paste). Tell us 1) what you want to happen, 2) what is actually happening, and 3) any error messages you find (see !debug). [23:30] == sacredchao [~stenno@junethack/developer/stenno] has quit [Ping timeout: 240 seconds] [23:30] <Nathan2055> Can anyone help me? [23:30] <Nathan2055> !paste [23:30] <ecmabot> Nathan2055: Paste links, not code. http://gist.github.com is great. Sites like http://jsfiddle.net/ , http://jsbin.com/ , and http://www.webdevout.net/test let people easily run your code, but can be slow. Please do not use http://pastebin.com , the reasons are many. See !pastebin [23:31] == guidj0s [~guidjos@201.81.123.86] has joined ##javascript [23:31] == guidj0s [~guidjos@201.81.123.86] has quit [Changing host] [23:31] == guidj0s [~guidjos@oftn/member/guidj0s] has joined ##javascript [23:32] <Nathan2055> Anybody? [23:32] == dwhittle [~anonymous@204.28.123.98] has quit [Quit: ...] [23:32] == pyrotechnick [~Adium@124-171-217-bcast.dyn.iinet.net.au] has joined ##javascript [23:33] <pachet> !ask [23:33] <ecmabot> pachet: Ask your question directly, don't ask permission to ask or if anyone can help you. Be prepared to wait a while and check back later for an answer, as not everyone in the channel is active all the time. Please read: http://www.mikeash.com/getting_answers.html [23:33] == Khisanth [~Khisanth@50.14.244.111] has quit [Read error: Connection reset by peer] [23:33] <Nathan2055> Okay: in https://raw.github.com/gist/3688685/e4cd77f42adf44510196fa4398aef36b3c7667bc/afcrc.js [23:34] == AlbireoX [~AlbireoX@76.78.168.37] has quit [Remote host closed the connection] [23:34] == gt3 [~rkulla@cpe-72-130-174-45.san.res.rr.com] has quit [Read error: Connection reset by peer] [23:34] <Nathan2055> It's a basic script for MediaWiki, specifically Wikipedia, for making AfC reviewing easier. [23:34] <Nathan2055> However, one function doesn't work. [23:34] == pyrotechnick [~Adium@124-171-217-bcast.dyn.iinet.net.au] has quit [Client Quit] [23:35] <pachet> which? [23:35] <Nathan2055> Line 1009 [23:35] <ImBcmDth> lol [23:36] <Nathan2055> It's trying to reference line 639. [23:36] <Nathan2055> My question is: How do I make line 639 global? [23:37] <Nathan2055> pachet: ^ [23:37] <Blaster> hey guys how come NaN !== NaN ? [23:38] == Sorella [~quildreen@oftn/member/Sorella] has quit [Quit: (quit :reason 'sleep)] [23:38] == Blaster [~Baster@S0106001b1162347e.ok.shawcable.net] [23:38] == realname : ... [23:38] == channels : ##javascript [23:38] == server : rajaniemi.freenode.net [Helsinki, FI, EU] [23:38] == account : B|aster [23:38] == End of WHOIS [23:38] <deltab> Blaster: the float spec requires it [23:38] <deltab> (IEEE 754) [23:38] <Blaster> any idea why? [23:39] <Blaster> I'll do some google search [23:39] == ecmabot [~ecmabot@boshi.inimino.org] [23:39] == realname : Chetter Hummin [23:39] == channels : ##javascript [23:39] == server : cameron.freenode.net [Vilnius, Lithuania, EU] [23:39] == account : ecmabot [23:39] == End of WHOIS [23:39] == ecmabot [~ecmabot@boshi.inimino.org] [23:39] == realname : Chetter Hummin [23:39] == channels : ##javascript [23:39] == server : cameron.freenode.net [Vilnius, Lithuania, EU] [23:39] == account : ecmabot [23:39] == End of WHOIS [23:40] == ecmabot [~ecmabot@boshi.inimino.org] [23:40] == realname : Chetter Hummin [23:40] == channels : ##javascript [23:40] == server : cameron.freenode.net [Vilnius, Lithuania, EU] [23:40] == account : ecmabot [23:40] == End of WHOIS [23:40] == fuchstronaut [~name@xdsl-78-34-172-196.netcologne.de] has joined ##javascript [23:40] == fuchstronaut [~name@xdsl-78-34-172-196.netcologne.de] has quit [Changing host] [23:40] == fuchstronaut [~name@unaffiliated/fuchstronaut] has joined ##javascript [23:41] <deltab> "A comparison with a NaN always returns an unordered result even when comparing with itself." [23:41] == joekarma [~joekarma@S0106602ad090cd68.vc.shawcable.net] has joined ##javascript [23:41] <Nathan2055> Anyone helping me? [23:43] == rakl [~rakl@69.111.59.168] has quit [Quit: sleeping] [23:44] <pachet> Nathan2055: you have to store that variable somewhere up the scope chain, so that both functions inherit the reference as a member of their lexical env [23:44] <pachet> its a lot of code to look at, but i'd say a good candidate to throw such a variable would be line 504 [23:44] == dnolen [~user@cpe-69-203-204-197.nyc.res.rr.com] has quit [Ping timeout: 260 seconds] [23:44] == fuchstronaut [~name@unaffiliated/fuchstronaut] has quit [Ping timeout: 240 seconds] [23:45] == nocturne7 [~havoc@c-76-103-150-97.hsd1.ca.comcast.net] has joined ##javascript [23:45] == gt3 [~rkulla@cpe-72-130-174-45.san.res.rr.com] has joined ##javascript [23:45] == rakl [~rakl@69.111.59.168] has joined ##javascript [23:46] <Nathan2055> pachet: So, create a variable and store the text code in it? [23:47] == e66 [~quassel@27.147.181.37] has joined ##javascript [23:48] == rodyhaddad [~rodyhadda@76-10-180-73.dsl.teksavvy.com] has quit [Quit: Leaving] [23:49] == rodyhaddad [~rodyhadda@76-10-180-73.dsl.teksavvy.com] has joined ##javascript [23:49] == xinming [~hyy@125.84.31.5] has quit [Ping timeout: 268 seconds] [23:49] == putneyj [~putneyj@69.80.107.118] has quit [Ping timeout: 246 seconds] [23:51] == teamcoltra [~teamcoltr@dedi.gizmokid2005.com] has joined ##javascript [23:51] <Gorroth> seriously, javascript closures are the shit [23:52] == Khisanth [~Khisanth@50.14.244.111] has joined ##javascript [23:52] <Gorroth> love them so much [23:52] <pachet> Blaster: basically per the spec, NaN is just a special group of bits that tell you that the outcome of the numerical evaluation you just tried to perform wasnt discretely representable [23:53] <pachet> also per spec, comparing a heap pointer containing a nan bit signal against any other with the same bit signal, or itself, has to result in inequality [23:53] <Nathan2055> pachet: ^ [23:53] <pachet> as deltab said [23:53] == teamcoltra [~teamcoltr@dedi.gizmokid2005.com] has quit [Changing host] [23:53] == teamcoltra [~teamcoltr@opennic/teamcoltra] has joined ##javascript [23:53] == teamcoltra [~teamcoltr@opennic/teamcoltra] has quit [Excess Flood] [23:53] == very [~test@dslb-084-060-107-170.pools.arcor-ip.net] has joined ##javascript [23:53] <pachet> Blaster: if you really want to get into some cool stuff involving NaN, look at the uses of NaN-boxing in modern JS implementations [23:54] == kvda [~kvda@202.58.240.18] has quit [Quit: ( -__-)] [23:54] <pachet> Nathan2055: that's correct, yeah [23:54] <Nathan2055> Great! [23:54] == kvda [~kvda@202.58.240.18] has joined ##javascript [23:54] == wolftankk [~wolftankk@206.253.165.217] has quit [Quit: Computer has gone to sleep.] [23:54] <Nathan2055> I'll get on it, thanks so much for your help pachet. [23:54] <Nathan2055> See you soon! [23:55] <pachet> no sweat!