Skip to content

Instantly share code, notes, and snippets.

@piecyk
Created February 11, 2014 11:20
Show Gist options
  • Save piecyk/8933095 to your computer and use it in GitHub Desktop.
Save piecyk/8933095 to your computer and use it in GitHub Desktop.
function updateValuesAfterCreationRefferedDC(targetAttributeId,updateCallBack){
if(queue.length > 0){
var queueLast = queue[queue.length-1];
if(queueLast.randomKey === $stateParams.randomKey){
if(queueLast.scope.data.gaId == targetAttributeId && queueLast != null){
if(queueLast.refferedDCId != null){
updateCallBack(queueLast.refferedDCId);
}
queue.pop();
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment