Does a fixed parameter, one that does not change once it is passed to a function, stay in scope for promise calls within the function. For example, can I trust x in the function below?
someFunc(1);
someFunc(2);
function someFunc(x){
somePrmsFunc.then(function(){
somePrmsFunc.then(function(){
if (x == 1)
alert(x);
});
});
}