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

Commit 4dc66c2

Browse files
authored
Wrap file into IIFE
This pull request offers to wrap file source into an IIFE to avoid polluting global namespace with find/findIndex/contains functions. This might be considered to be done in a GruntTask too.
1 parent 461b713 commit 4dc66c2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/angularjs-dropdown-multiselect.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
(function (angular) {
2+
13
'use strict';
24

35
var directiveModule = angular.module('angularjs-dropdown-multiselect', []);
@@ -562,3 +564,5 @@ function findIndex(collection, properties) {
562564

563565
return index;
564566
}
567+
568+
})(angular);

0 commit comments

Comments
 (0)