Skip to content

Commit

Permalink
Grunt-build and branch
Browse files Browse the repository at this point in the history
  • Loading branch information
timmfin committed Sep 22, 2013
1 parent 2fe4693 commit 46bbbbe
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 18 deletions.
2 changes: 1 addition & 1 deletion js/vex.combined.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions js/vex.dialog.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
// Generated by CoffeeScript 1.6.2
(function() {
var vexDialogFactory;

vexDialogFactory = function($, vex) {
var $formToObject, dialog;

if (vex == null) {
return $.error('Vex is required to use vex.dialog');
}
$formToObject = function($form) {
var object;

object = {};
$.each($form.serializeArray(), function() {
if (object[this.name]) {
Expand Down Expand Up @@ -55,7 +52,6 @@
showCloseButton: false,
onSubmit: function(event) {
var $form, $vexContent;

$form = $(this);
$vexContent = $form.parent();
event.preventDefault();
Expand All @@ -74,7 +70,6 @@
};
dialog.open = function(options) {
var $vexContent;

options = $.extend({}, vex.defaultOptions, dialog.defaultOptions, options);
options.content = dialog.buildDialogForm(options);
options.beforeClose = function($vexContent) {
Expand Down Expand Up @@ -104,7 +99,6 @@
};
dialog.prompt = function(options) {
var defaultPromptOptions;

if (typeof options === 'string') {
return $.error('dialog.prompt(options) requires options.callback.');
}
Expand All @@ -117,7 +111,6 @@
};
dialog.buildDialogForm = function(options) {
var $form, $input, $message;

$form = $('<form class="vex-dialog-form" />');
$message = $('<div class="vex-dialog-message" />');
$input = $('<div class="vex-dialog-input" />');
Expand All @@ -136,7 +129,6 @@
};
dialog.buttonsToDOM = function(buttons) {
var $buttons;

$buttons = $('<div class="vex-dialog-buttons" />');
$.each(buttons, function(index, button) {
return $buttons.append($("<input type=\"" + button.type + "\" />").val(button.text).addClass(button.className + ' vex-dialog-button ' + (index === 0 ? 'vex-first ' : '') + (index === buttons.length - 1 ? 'vex-last ' : '')).bind('click.vex', function(e) {
Expand Down
2 changes: 1 addition & 1 deletion js/vex.dialog.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 46bbbbe

Please sign in to comment.