/*! * jQuery UI Button - v1.10.4 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/button/ */ define([ 'jquery', 'jquery-ui-modules/core', 'jquery-ui-modules/widget' ], function ($, undefined) { var lastActive, baseClasses = "ui-button ui-widget ui-state-default ui-corner-all", typeClasses = "ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only", formResetHandler = function () { var form = $(this); setTimeout(function () { form.find(":ui-button").button("refresh"); }, 1); }, radioGroup = function (radio) { var name = radio.name, form = radio.form, radios = $([]); if (name) { name = name.replace(/'/g, "\\'"); if (form) { radios = $(form).find("[name='" + name + "']"); } else { radios = $("[name='" + name + "']", radio.ownerDocument) .filter(function () { return !this.form; }); } } return radios; }; $.widget("ui.button", { version: "1.10.4", defaultElement: "