Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

Commit

Permalink
perf(all): Use one-time bindings where appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
mbenford committed May 22, 2015
1 parent 7917c61 commit 4682577
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions templates/auto-complete.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<div class="autocomplete" ng-if="suggestionList.visible">
<ul class="suggestion-list">
<li class="suggestion-item"
ng-repeat="item in suggestionList.items track by track(item)"
ng-repeat="item in ::suggestionList.items track by track(item)"
ng-class="{selected: item == suggestionList.selected}"
ng-click="addSuggestionByIndex($index)"
ng-mouseenter="suggestionList.select($index)">
<ti-autocomplete-match data="item"></ti-autocomplete-match>
<ti-autocomplete-match data="::item"></ti-autocomplete-match>
</li>
</ul>
</div>
2 changes: 1 addition & 1 deletion templates/tag-item.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<span ng-bind="$getDisplayText()"></span>
<a class="remove-button" ng-click="$removeTag()" ng-bind="$$removeTagSymbol"></a>
<a class="remove-button" ng-click="$removeTag()" ng-bind="::$$removeTagSymbol"></a>
2 changes: 1 addition & 1 deletion templates/tags-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
ng-repeat="tag in tagList.items track by track(tag)"
ng-class="{ selected: tag == tagList.selected }"
ng-click="eventHandlers.tag.click(tag)">
<ti-tag-item data="tag"></ti-tag-item>
<ti-tag-item data="::tag"></ti-tag-item>
</li>
</ul>
<input class="input"
Expand Down

0 comments on commit 4682577

Please sign in to comment.