/** 
 * Kendo UI v2016.2.909 (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.button.min",["kendo.core.min"],e)}(function(){return function(e,n){var t=window.kendo,o=t.ui.Widget,i=e.proxy,s=t.keys,a="click",l="k-button",r="k-button-icon",c="k-button-icontext",d=".kendoButton",u="disabled",p="k-state-disabled",k="k-state-focused",f="k-state-selected",b=o.extend({init:function(e,n){var s=this;o.fn.init.call(s,e,n),e=s.wrapper=s.element,n=s.options,e.addClass(l).attr("role","button"),n.enable=n.enable&&!e.attr(u),s.enable(n.enable),s._tabindex(),s._graphics(),e.on(a+d,i(s._click,s)).on("focus"+d,i(s._focus,s)).on("blur"+d,i(s._blur,s)).on("keydown"+d,i(s._keydown,s)).on("keyup"+d,i(s._keyup,s)),t.notify(s)},destroy:function(){var e=this;e.wrapper.off(d),o.fn.destroy.call(e)},events:[a],options:{name:"Button",icon:"",spriteCssClass:"",imageUrl:"",enable:!0},_isNativeButton:function(){return"button"==this.element.prop("tagName").toLowerCase()},_click:function(e){this.options.enable&&this.trigger(a,{event:e})&&e.preventDefault()},_focus:function(){this.options.enable&&this.element.addClass(k)},_blur:function(){this.element.removeClass(k)},_keydown:function(e){var n=this;n._isNativeButton()||e.keyCode!=s.ENTER&&e.keyCode!=s.SPACEBAR||(e.keyCode==s.SPACEBAR&&(e.preventDefault(),n.options.enable&&n.element.addClass(f)),n._click(e))},_keyup:function(){this.element.removeClass(f)},_graphics:function(){var n,t,o,i=this,s=i.element,a=i.options,l=a.icon,d=a.spriteCssClass,u=a.imageUrl;(d||u||l)&&(o=!0,s.contents().not("span.k-sprite").not("span.k-icon").not("img.k-image").each(function(n,t){(1==t.nodeType||3==t.nodeType&&e.trim(t.nodeValue).length>0)&&(o=!1)}),s.addClass(o?r:c)),l?(n=s.children("span.k-icon").first(),n[0]||(n=e('<span class="k-icon"></span>').prependTo(s)),n.addClass("k-i-"+l)):d?(n=s.children("span.k-sprite").first(),n[0]||(n=e('<span class="k-sprite"></span>').prependTo(s)),n.addClass(d)):u&&(t=s.children("img.k-image").first(),t[0]||(t=e('<img alt="icon" class="k-image" />').prependTo(s)),t.attr("src",u))},enable:function(e){var t=this,o=t.element;e===n&&(e=!0),e=!!e,t.options.enable=e,o.toggleClass(p,!e).attr("aria-disabled",!e).attr(u,!e);try{o.blur()}catch(i){}}});t.ui.plugin(b)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,n,t){(t||n)()});
//# sourceMappingURL=kendo.button.min.js.map
