Created
February 11, 2014 11:20
-
-
Save piecyk/8933095 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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