/** 
 * Kendo UI v2016.3.1118 (http://www.telerik.com/kendo-ui)                                                                                                                                              
 * Copyright 2016 Telerik AD. All rights reserved.                                                                                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(e,define){define("kendo.mobile.buttongroup.min",["kendo.core.min"],e)}(function(){return function(e,n){function t(n){return e('<span class="km-badge">'+n+"</span>")}var i=window.kendo,a=i.mobile.ui,s=a.Widget,d="km-state-active",o="km-state-disabled",l="select",r="li:not(."+d+")",c=s.extend({init:function(e,n){var t=this;s.fn.init.call(t,e,n),t.element.addClass("km-buttongroup").find("li").each(t._button),t.element.on(t.options.selectOn,r,"_select"),t._enable=!0,t.select(t.options.index),t.options.enable||(t._enable=!1,t.wrapper.addClass(o))},events:[l],options:{name:"ButtonGroup",selectOn:"down",index:-1,enable:!0},current:function(){return this.element.find("."+d)},select:function(t){var i=this,a=-1;t!==n&&t!==-1&&i._enable&&!e(t).is("."+o)&&(i.current().removeClass(d),"number"==typeof t?(a=t,t=e(i.element[0].children[t])):t.nodeType&&(t=e(t),a=t.index()),t.addClass(d),i.selectedIndex=a)},badge:function(n,i){var a,s=this.element;return isNaN(n)||(n=s.children().get(n)),n=s.find(n),a=e(n.children(".km-badge")[0]||t(i).appendTo(n)),i||0===i?(a.html(i),this):i===!1?(a.empty().remove(),this):a.html()},enable:function(e){var t=this.wrapper;n===e&&(e=!0),e?t.removeClass(o):t.addClass(o),this._enable=this.options.enable=e},_button:function(){var n=e(this).addClass("km-button"),a=i.attrValue(n,"icon"),s=i.attrValue(n,"badge"),d=n.children("span"),o=n.find("img").addClass("km-image");d[0]||(d=n.wrapInner("<span/>").children("span")),d.addClass("km-text"),!o[0]&&a&&n.prepend(e('<span class="km-icon km-'+a+'"/>')),(s||0===s)&&t(s).appendTo(n)},_select:function(e){e.which>1||e.isDefaultPrevented()||!this._enable||(this.select(e.currentTarget),this.trigger(l,{index:this.selectedIndex}))}});a.plugin(c)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,n,t){(t||n)()});
//# sourceMappingURL=kendo.mobile.buttongroup.min.js.map
