Skip to content
This repository was archived by the owner on Apr 7, 2020. It is now read-only.

Commit ebfde30

Browse files
committed
Merge pull request #9 from mklb/patch-1
Fixed typos & bugs that prevented the code from running on iOS devices
2 parents d5eeb90 + 02748c5 commit ebfde30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ For now, you should create a child-directive to customize (API probably going to
1717
.directive('myMention', function($http){
1818
return {
1919
require: 'uiMention',
20-
link($scope, $element, $attrs, uiMention) {
20+
link: function($scope, $element, $attrs, uiMention) {
2121
/**
2222
* Converts a choice object to a human-readable string
2323
*
2424
* @param {mixed|object} choice The choice to be rendered
2525
* @return {string} Human-readable string version of choice
2626
*/
2727
uiMention.label = function(choice) {
28-
return `${choice.first_name} ${choice.last_name}`;
28+
return choice.first_name + " " + choice.last_name;
2929
};
3030

3131
/**
@@ -47,7 +47,7 @@ You have to build the HTML yourself:
4747
<textarea ng-model="data" ui-mention my-mention></textarea>
4848
<div class="ui-mention-highlight"></div>
4949
</div>
50-
<ul class=dropdown" ng-if="$mention.choices.length">
50+
<ul class="dropdown" ng-if="$mention.choices.length">
5151
<li ng-repeat="choice in $mention.choices"
5252
ng-class="{active:$mention.activeChoice==choice}"
5353
ng-click="$mention.select(choice)">

0 commit comments

Comments
 (0)