« first day (1309 days earlier)      last day (2793 days later) » 

12:17 AM
So, beeing the following:

that.dosomething = function() {
that.serviceName = 'some::name';
for ( var i = 0; i < args.length; i++) {
utils.log(args[i].end);
that.Parameters.end = args[i].end
utils.log(args[i].other);
if (args[i].other == 'B') {
that.A();
} else if (args[i].other == 'D') {
that.B();
} else {
utils.log('NONE');
}
};
cb('Something.');
},


How can I make it complete A or B before begining the new loop ?
Can't modify A or B, only module available is 'bluebird'. node.js 0.10.15v.
 
1 message moved from JavaScript
 
 
1 hour later…
1:19 AM
> codeMagic has kicked @DaveS from the room. He may not speak for 3 days [feeds -just now](www.google.com)
1 message moved from Android
 
 
4 hours later…
 
11 hours later…
4:23 PM
So If i dont want to pollute global scope with a particular variable. I need to make sure it is defined within the scope of a function:

function(){
if (isSearching) { return; }
var isSearching = true;
}

But here I want *isSearching* to default to false however, I am declaring it as true because I want it to be set to true if it gets passed the if-statement above. Whats the best way to approach this problem?
 
1 message moved from JavaScript: Boats, Boats, Boats!
 
perhaps I can do this?:

function(){
if (isSearching) { return; }
var isSearching = false;
isSearching = true;
};

JS's async nature is so confusing
 
1 message moved from JavaScript: Boats, Boats, Boats!
 
function getClickFunction() {
var clicked = clicked || false
return function() {
if(!clicked){
clicked = true
...
}
}
}
 
1 message moved from JavaScript: Boats, Boats, Boats!
 
 
4 hours later…
8:09 PM
In entry point I have `require('./style.scss')`
then in config:

{
test: (a) => VerEx().find('.scss').endOfLine().test(a),
loaders: ['style', 'css', 'sass']
}
 
1 message moved from JavaScript: Boats, Boats, Boats!
 

« first day (1309 days earlier)      last day (2793 days later) »