diff --git a/angular-dropdowns.js b/angular-dropdowns.js
index 35f6f81..c3a1dae 100644
--- a/angular-dropdowns.js
+++ b/angular-dropdowns.js
@@ -105,7 +105,7 @@ dd.directive('dropdownMenu', ['$parse', '$compile', 'DropdownService', '$window'
$scope.labelField = $attrs.dropdownItemLabel || 'text';
// Does not register touchstart events outside of directive scope.
- var $clickEvent = ('click'||'touchstart'in $window);
+ var $clickEvent = ('click'||'touchstart' in $window);
var $template = angular.element([
'
',
'- ',
'',
'{{dropdownMenuItem[dropdownItemLabel]}}',
'',
diff --git a/dist/angular-dropdowns.js b/dist/angular-dropdowns.js
index 35f6f81..c3a1dae 100644
--- a/dist/angular-dropdowns.js
+++ b/dist/angular-dropdowns.js
@@ -105,7 +105,7 @@ dd.directive('dropdownMenu', ['$parse', '$compile', 'DropdownService', '$window'
$scope.labelField = $attrs.dropdownItemLabel || 'text';
// Does not register touchstart events outside of directive scope.
- var $clickEvent = ('click'||'touchstart'in $window);
+ var $clickEvent = ('click'||'touchstart' in $window);
var $template = angular.element([
'
',
'- ',
'',
'{{dropdownMenuItem[dropdownItemLabel]}}',
'',
diff --git a/dist/angular-dropdowns.min.js b/dist/angular-dropdowns.min.js
index 9be84ef..5a6e53c 100644
--- a/dist/angular-dropdowns.min.js
+++ b/dist/angular-dropdowns.min.js
@@ -1,4 +1,4 @@
/**
* @license MIT http://jseppi.mit-license.org/license.html
*/
-"use strict";var dd=angular.module("ngDropdowns",[]);dd.directive("dropdownSelect",["DropdownService","$window",function(e,o){return{restrict:"A",replace:!0,scope:{dropdownSelect:"=",dropdownModel:"=",dropdownOnchange:"&"},controller:["$scope","$element","$attrs",function(o,n,d){o.labelField=d.dropdownItemLabel||"text",e.register(n),this.select=function(e){e!==o.dropdownModel&&angular.copy(e,o.dropdownModel),o.dropdownOnchange({selected:e})};var t="click";n.bind(t,function(o){o.stopPropagation(),e.toggleActive(n)}),o.$on("$destroy",function(){e.unregister(n)})}],template:['
','
{{dropdownModel[labelField]}}','
","
"].join("")}}]),dd.directive("dropdownSelectItem",[function(){return{require:"^dropdownSelect",replace:!0,scope:{dropdownItemLabel:"=",dropdownSelectItem:"="},link:function(e,o,n,d){e.selectItem=function(){e.dropdownSelectItem.href||d.select(e.dropdownSelectItem)}},template:[' - ','',"{{dropdownSelectItem[dropdownItemLabel]}}","","
"].join("")}}]),dd.directive("dropdownMenu",["$parse","$compile","DropdownService","$window",function(e,o,n,d){return{restrict:"A",replace:!1,scope:{dropdownMenu:"=",dropdownModel:"=",dropdownOnchange:"&"},controller:["$scope","$element","$attrs",function(e,d,t){e.labelField=t.dropdownItemLabel||"text";var r="click",i=angular.element(['"].join(""));i.data("$dropdownMenuController",this);var l=o(i)(e),c=angular.element('');d.replaceWith(c),c.append(d),c.append(l),n.register(l),this.select=function(o){o!==e.dropdownModel&&angular.copy(o,e.dropdownModel),e.dropdownOnchange({selected:o})},d.bind(r,function(e){e.stopPropagation(),n.toggleActive(l)}),e.$on("$destroy",function(){n.unregister(l)})}]}}]),dd.directive("dropdownMenuItem",[function(){return{require:"^dropdownMenu",replace:!0,scope:{dropdownMenuItem:"=",dropdownItemLabel:"="},link:function(e,o,n,d){e.selectItem=function(){e.dropdownMenuItem.href||d.select(e.dropdownMenuItem)}},template:['- ','',"{{dropdownMenuItem[dropdownItemLabel]}}","","
"].join("")}}]),dd.factory("DropdownService",["$document",function(e){var o=e.find("body"),n={},d=[];return o.bind("click",function(){angular.forEach(d,function(e){e.removeClass("active")})}),n.register=function(e){d.push(e)},n.unregister=function(e){var o;o=d.indexOf(e),o>-1&&d.splice(o,1)},n.toggleActive=function(e){angular.forEach(d,function(o){o!==e&&o.removeClass("active")}),e.toggleClass("active")},n}]);
\ No newline at end of file
+"use strict";var dd=angular.module("ngDropdowns",[]);dd.directive("dropdownSelect",["DropdownService","$window",function(e,o){return{restrict:"A",replace:!0,scope:{dropdownSelect:"=",dropdownModel:"=",dropdownOnchange:"&"},controller:["$scope","$element","$attrs",function(o,n,d){o.labelField=d.dropdownItemLabel||"text",e.register(n),this.select=function(e){e!==o.dropdownModel&&angular.copy(e,o.dropdownModel),o.dropdownOnchange({selected:e})};var t="click";n.bind(t,function(o){o.stopPropagation(),e.toggleActive(n)}),o.$on("$destroy",function(){e.unregister(n)})}],template:['','
{{dropdownModel[labelField]}}','
","
"].join("")}}]),dd.directive("dropdownSelectItem",[function(){return{require:"^dropdownSelect",replace:!0,scope:{dropdownItemLabel:"=",dropdownSelectItem:"="},link:function(e,o,n,d){e.selectItem=function(){e.dropdownSelectItem.href||d.select(e.dropdownSelectItem)}},template:['- ','',"{{dropdownSelectItem[dropdownItemLabel]}}","","
"].join("")}}]),dd.directive("dropdownMenu",["$parse","$compile","DropdownService","$window",function(e,o,n,d){return{restrict:"A",replace:!1,scope:{dropdownMenu:"=",dropdownModel:"=",dropdownOnchange:"&"},controller:["$scope","$element","$attrs",function(e,d,t){e.labelField=t.dropdownItemLabel||"text";var r="click",i=angular.element(['"].join(""));i.data("$dropdownMenuController",this);var l=o(i)(e),c=angular.element('');d.replaceWith(c),c.append(d),c.append(l),n.register(l),this.select=function(o){o!==e.dropdownModel&&angular.copy(o,e.dropdownModel),e.dropdownOnchange({selected:o})},d.bind(r,function(e){e.stopPropagation(),n.toggleActive(l)}),e.$on("$destroy",function(){n.unregister(l)})}]}}]),dd.directive("dropdownMenuItem",[function(){return{require:"^dropdownMenu",replace:!0,scope:{dropdownMenuItem:"=",dropdownItemLabel:"="},link:function(e,o,n,d){e.selectItem=function(){e.dropdownMenuItem.href||d.select(e.dropdownMenuItem)}},template:['- ','',"{{dropdownMenuItem[dropdownItemLabel]}}","","
"].join("")}}]),dd.factory("DropdownService",["$document",function(e){var o=e.find("body"),n={},d=[];return o.bind("click",function(){angular.forEach(d,function(e){e.removeClass("active")})}),n.register=function(e){d.push(e)},n.unregister=function(e){var o;o=d.indexOf(e),o>-1&&d.splice(o,1)},n.toggleActive=function(e){angular.forEach(d,function(o){o!==e&&o.removeClass("active")}),e.toggleClass("active")},n}]);
\ No newline at end of file