Skip to content
This repository was archived by the owner on Dec 16, 2019. It is now read-only.

Commit 2c39d0c

Browse files
committed
Return the resulting template
Instead of calling element.html(template), simply return the template - Angular should take care of the rest. Not returning anything from the template function also causes issues with non-standard start/end symbols.
1 parent 779f97f commit 2c39d0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/angularjs-dropdown-multiselect.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/angularjs-dropdown-multiselect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ directiveModule.directive('ngDropdownMultiselect', ['$filter', '$document', '$co
5252
template += '</ul>';
5353
template += '</div>';
5454

55-
element.html(template);
55+
return template;
5656
},
5757
link: function ($scope, $element, $attrs) {
5858
var $dropdownTrigger = $element.children()[0];

0 commit comments

Comments
 (0)