Mochabot log - CommonJS IRC channel: #commonjs on irc.freenode.net

2010-09-01:

[9:58] <toki78> hi
[9:58] <toki78> how do i modify css in javascript ?
[9:59] <toki78> document.getElementsByTagName("head")[0].setinnerhtml("<style>.....") ??
[12:04] <toki78> hi
[12:04] <toki78> is it possible to set innerHTML of a style tag ?
[12:14] <TomY_> toki78, this channel is about CommonJS (see commonjs.org), maybe try #javascript
[12:18] <toki78> thnaks
[20:59] <nrstott> kriszyp, if I use 'when' and have a reject callback, it appears that the return value of the reject callback is not returned as the resolved value of the 'when' promise when the 'reject' callback is invoked because of an error. Is this behavior an accurate description of what is happening and is it intentional?
[21:07] <kriszyp> nrstott: the returned promises seems to resolve successfully for me: http://gist.github.com/561464
[21:07] <nrstott> kriszyp, return a value
[21:08] <kriszyp> I did, I returned 5
[21:08] <kriszyp> (in the reject callback)
[21:08] <nrstott> and the when didn't reoslve to 5 did it?
[21:08] <nrstott> it resolved to true on the last line
[21:09] <nrstott> i would expect the line 12 'true' to be '5'
[21:10] <nrstott> oh nm i see what you did
[21:10] <nrstott> however, that doesn't show the situation that i am looking for ;0
[21:10] <nrstott> only if your function in the external when got the '5' would it be what i was expecting
[21:13] <nrstott> i do believe your example has helped me reduce it down to see where my logical error was though.
[21:13] <nrstott> yep, works perfedctly
[21:13] <nrstott> thanks

 

 

Logs by date :