Skip to content

Commit

Permalink
Update angular-chosen.min.js
Browse files Browse the repository at this point in the history
  • Loading branch information
adityasharat committed Jan 25, 2016
1 parent a09cf93 commit 003d29c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angular-chosen.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
* http://harvesthq.github.io/chosen/
* http://adityasharat.github.io/angular-chosen/
*/
(function(e){var t=e.module("angular.chosen",[]);t.directive("chosen",function(){var e,t,n,r;e=[{onChange:"change"},{onReady:"chosen:ready"},{onMaxSelected:"chosen:maxselected"},{onShowDropdown:"chosen:showing_dropdown"},{onHideDropdown:"chosen:hiding_dropdown"},{onNoResult:"chosen:no_results"}];t={options:"=",ngModel:"=",ngDisabled:"="};r=[];Object.keys(t).forEach(function(e){r.push(e)});e.forEach(function(e){var n=Object.keys(e)[0];t[n]="="});n=function(t,n,i){var s=parseInt(i.maxSelection,10),o=parseInt(i.searchThreshold,10);if(isNaN(s)||s===Infinity){s=undefined}if(isNaN(o)||o===Infinity){o=undefined}n.chosen({width:"100%",max_selected_options:s,disable_search_threshold:o,search_contains:true});n.on("change",function(){n.trigger("chosen:updated")});t.$watchGroup(r,function(){setTimeout(function(){n.trigger("chosen:updated")},100)});e.forEach(function(e){var r=Object.keys(e)[0];if(typeof t[r]==="function"){n.on(e[r],function(e){t.$apply(function(){t[r](e)})})}})};return{name:"chosen",scope:t,restrict:"A",link:n}})})(angular)
!function(e){function n(e){var n,o,t,s;return n=[{onChange:"change"},{onReady:"chosen:ready"},{onMaxSelected:"chosen:maxselected"},{onShowDropdown:"chosen:showing_dropdown"},{onHideDropdown:"chosen:hiding_dropdown"},{onNoResult:"chosen:no_results"}],o={options:"=",ngModel:"=",ngDisabled:"="},s=[],Object.keys(o).forEach(function(e){s.push(e)}),n.forEach(function(e){var n=Object.keys(e)[0];o[n]="="}),t=function(o,t,c){var a=parseInt(c.maxSelection,10),r=parseInt(c.searchThreshold,10);(isNaN(a)||a===1/0)&&(a=void 0),(isNaN(r)||r===1/0)&&(r=void 0);var i=void 0!==t.attr("allow-single-deselect")?!0:!1,d=void 0!==t.attr("no-results-text")?c.noResultsText:"No results found.";t.chosen({width:"100%",max_selected_options:a,disable_search_threshold:r,search_contains:!0,allow_single_deselect:i,no_results_text:d}),t.on("change",function(){t.trigger("chosen:updated")}),o.$watchGroup(s,function(){e(function(){t.trigger("chosen:updated")},100)}),n.forEach(function(e){var n=Object.keys(e)[0];"function"==typeof o[n]&&t.on(e[n],function(e){o.$apply(function(){o[n](e)})})})},{name:"chosen",scope:o,restrict:"A",link:t}}var o=e.module("angular.chosen",[]);o.directive("chosen",["$timeout",n])}(angular);

0 comments on commit 003d29c

Please sign in to comment.