Skip to content

Commit

Permalink
Merge pull request #470 from latin-language-toolkit/minor_perf
Browse files Browse the repository at this point in the history
Very minor performance optimizations
  • Loading branch information
LFDM committed Nov 1, 2014
2 parents bb9057b + ad625b3 commit 8d74b2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/js/arethusa.core/directives/value_watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ angular.module('arethusa.core').directive('valueWatch', function () {
scope.$watch('target.' + scope.property, function(newVal, oldVal) {
if (newVal) {
scope.value = newVal;
scope.empty = false;
element.removeClass('bold');
} else {
scope.value = scope.emptyVal || '';
scope.empty = true;
element.addClass('bold');
}
});
},
template: '<span ng-class="{ bold: empty }">{{ value }}</span>'
template: '<span>{{ value }}</span>'
};
});
2 changes: 1 addition & 1 deletion app/templates/arethusa.core/foreign_keys_help.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div ng-show="visible">
<div ng-if="visible">
<ul id="keyboard">
<li ng-repeat="key in keys"
id="{{ key.lower }}"
Expand Down

0 comments on commit 8d74b2b

Please sign in to comment.