Skip to content

Commit

Permalink
Bugfix: Don't require options parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviershay committed Jan 21, 2009
1 parent 27cdf43 commit 698b5ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jquery.form_prompt.js
Expand Up @@ -30,6 +30,8 @@
$.fn.form_prompt = function(text, options) {

var prompt_text = '';

options = options || {};

// If text is passed as a callback, evaluate it
if ($.isFunction(text)) {
Expand Down Expand Up @@ -88,4 +90,4 @@
});
};

})(jQuery);
})(jQuery);

0 comments on commit 698b5ff

Please sign in to comment.