diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-04-25 14:04:30 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-04-25 14:04:30 -0400 |
commit | 325ee6e87133dd2a507c820dd3c356e3b897a3ec (patch) | |
tree | c13ef9ce107caf181f300cb0ab2a6d5214aada87 /ui/jquery.ui.widget.js | |
parent | c4c36e557ef2b3450bc365708064f7314bc6fdc4 (diff) | |
download | jquery-ui-325ee6e87133dd2a507c820dd3c356e3b897a3ec.tar.gz jquery-ui-325ee6e87133dd2a507c820dd3c356e3b897a3ec.zip |
Widget: define a null default for the create callback.
Diffstat (limited to 'ui/jquery.ui.widget.js')
-rw-r--r-- | ui/jquery.ui.widget.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index 27d08ccd2..55b9f7984 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -155,7 +155,10 @@ $.Widget.prototype = { widgetEventPrefix: "", defaultElement: "<div>", options: { - disabled: false + disabled: false, + + // callbacks + create: null }, _createWidget: function( options, element ) { element = $( element || this.defaultElement || this )[ 0 ]; |