From bba67df74722517c3db4d4daa7df6124a6767ede Mon Sep 17 00:00:00 2001 From: Scott González Date: Fri, 28 Aug 2009 00:39:43 +0000 Subject: Widget factory: Added support for deep extending multiple option hashes on init. --- ui/ui.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') 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 -- cgit v1.2.3