diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-08-28 00:39:43 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-08-28 00:39:43 +0000 |
commit | bba67df74722517c3db4d4daa7df6124a6767ede (patch) | |
tree | 77a751e89e8a70834f05500c85bfe92836439ae3 /ui | |
parent | 6c6218fa12cc25695d2203a536b2047879ad904d (diff) | |
download | jquery-ui-bba67df74722517c3db4d4daa7df6124a6767ede.tar.gz jquery-ui-bba67df74722517c3db4d4daa7df6124a6767ede.zip |
Widget factory: Added support for deep extending multiple option hashes on init.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js index 37f1f09e9..a83618a45 100644 --- a/ui/ui.core.js +++ b/ui/ui.core.js @@ -255,7 +255,7 @@ $.widget = function(name, prototype) { // allow multiple hashes to be passed on init options = !isMethodCall && args.length - ? $.extend.apply(null, arguments) + ? $.extend.apply(null, [true, options].concat(args)) : options; // prevent calls to internal methods |