« first day (1485 days earlier)      last day (2632 days later) » 

SKG
5:15 AM
I am looking at the Jquery Source code of $.each(). It says:
if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
break;
}
 
1 message moved from JavaScript
 
SKG
I am looking at the Jquery Source code of $.each(). It says:
if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
break;
}.

Can you tell me what is the logic behind conditional statement? Does call() return Boolean?
 
1 message moved from JavaScript
 
 
4 hours later…
9:36 AM
[ Guttenberg ] Possible plagiarism with a score of 0.74. Original post ( @Guttenberg )
[ Guttenberg ] Possible plagiarism with a score of 0.77. Original post ( @Guttenberg )
[ Guttenberg ] Possible plagiarism with a score of 0.73. Original post ( @Guttenberg )
[ Guttenberg ] Possible plagiarism with a score of 0.73. Original post ( @Guttenberg )
[ Guttenberg ] Possible plagiarism with a score of 0.76. Original post ( @Guttenberg )
[ Guttenberg ] Possible plagiarism with a score of 0.73. Original post ( @Guttenberg )
[ Guttenberg ] Possible plagiarism with a score of 0.74. Original post ( @Guttenberg )
7 messages moved from SOBotics
 
 
2 hours later…
11:22 AM
Downvoters, you can also downvote here if you are not biased — akrun 28 secs ago
 
11:38 AM
testing, @Cath burn this message
 
1 message moved from GMTs
 
1 message moved from GMTs
 
12:05 PM
I don't know what it is..let me search
:)
yup
new language gonna kill us
lol
learning learning and earning
6 messages moved from [Java and Android era ](chat.stackoverflow.com/rooms/19132/java-and-android-era)
 
1:01 PM
var functions = {
foo: function() { ...

}
 
1 message moved from JavaScript
 
var functions = {
foo: function() { ...
}
}
 
1 message moved from JavaScript
 
1:33 PM
aag
test..
17 secs ago, by Petter Friberg
test..
3 messages moved from SOBotics
 
2:09 PM
0
Q: Sorting bars within each group in ggplot2's plot

sovo2014My data looks like this: language count sign 1 c 4060 - 2 c 3460 + 3 c 2046 0 4 c# 3479 - 5 c# 3732 + 6 c# 1832 0 7 c++ 4319 - 8 c++ 3136 + 9 c++ 2008 0 and I would like to draw a bar plot grouped by ...

 
2:34 PM
posted on May 17, 2016

Many people have heard the word “continuation” because it has something to do with node’s callback hell. I don’t think most people understand what continuations really are, though. They aren’t just a callback function used by async functions. A continuation is a representation of the control flow of your program at any point in time, essentially the stack. In abstract terms, it represents "th

posted on May 26, 2016

In my previous post I introduced Unwinder, a project which implements continuations in JavaScript. What does that have to do with stepping debuggers? Unwinder uses continuations to implement a debugger, since it can reuse the same machinery to pause code at any time. This post could be titled "Implementing Continuations in JavaScript," but a lot more people know what a stepping debugger is. B

posted on June 08, 2016

In the last few posts, I explained the concepts behind Unwinder which implements continuations in JavaScript. We talked about continuations and how to implement a stepping debugger with them. Now I'd like to experiment with new language constructs that we can build with continuations. The next several posts will explore these ideas. I am naming this series "Exploring Continuations." Today w

posted on December 13, 2016

Last week I was in Hawaii for a Mozilla work week. I saw many great friends, but I also kept faintly recognizing people without remembering how I knew them. Sometimes I even thought I knew them from other parts of my life. It made me realize just how much Mozilla has become part of my life. After 6 years (almost exactly, I joined December 19th, 2010), I have decided to leave Mozilla. I have l

 
4 messages moved from JavaScript
 
3:20 PM
1 message moved from R Public
 
 
5 hours later…
8:10 PM
Hey everyone I have a function that I'm trying to use to make buttons light up then go dark in the order of an array input, it works the first time each button flashes but the second time it doesn't go back to the dark color and I can't figure out why, can anyone help?
function flash(button, light) {
button.addClass(light).delay(500).queue(function(){button.removeClass(light);})
}

function lightUp() {
switch (game[b]) {
case 1:
one.play();
flash($("#1"),"onelit");
break;
case 2:
two.play();
flash($("#2"),"twolit");
function flash(button, light) {
button.addClass(light).delay(500).queue(function(){button.removeClass(light);})
}

function lightUp() {
switch (game[b]) {
case 1:
one.play();
flash($("#1"),"onelit");
break;
case 2:
two.play();
flash($("#2"),"twolit");
break;
case 3:
three.play();
flash($("#3"),"threelit");
break;
case 4:
four.play();
flash($("#4"),"fourlit");
break;
}

b++;
if (b < turn) {
setTimeout(lightUp, 2000);
}
}
 
1 message moved from JavaScript
 
function flash(button, light) {
button.addClass(light).delay(500).queue(function(){button.removeClass(light);})
}

function lightUp() {
switch (game[b]) {
case 1:
one.play();
flash($("#1"),"onelit");
break;
case 2:
two.play();
flash($("#2"),"twolit");
break;
case 3:
three.play();
flash($("#3"),"threelit");
break;
case 4:
four.play();
flash($("#4"),"fourlit");
break;
}

b++;
if (b < turn) {
setTimeout(lightUp, 2000);
}
}
 
1 message moved from JavaScript
 
1 message moved from JavaScript
 

« first day (1485 days earlier)      last day (2632 days later) »