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