Skip to content

Instantly share code, notes, and snippets.

@piecyk
Created January 15, 2014 09:50
Show Gist options
  • Save piecyk/8433562 to your computer and use it in GitHub Desktop.
Save piecyk/8433562 to your computer and use it in GitHub Desktop.
function updateCondition() {
try {
if ($scope.data && $scope.data.values[0]) {
$scope.members.rightOperand.value = $scope.data.values[0];
}
if (_.contains(['reference', 'static'], $scope.members.rightOperand['@type'])) {
if ($scope.data.values[0].open && ($scope.members.rightOperand.open = $scope.data.values[0].open)) {
$scope.members.rightOperand.value = null;
}
}
} catch(ex) {
$log.error(ex);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment