r3526 committed - bring back multi-options init
Revision: 3526
Author: joern.zaefferer
Date: Wed Dec 23 02:45:37 2009
Log: bring back multi-options init
http://code.google.com/p/jquery-ui/source/detail?r=3526
Modified:
/branches/dev/ui/jquery.ui.widget.js
=======================================
--- /branches/dev/ui/jquery.ui.widget.js Tue Dec 22 19:37:18 2009
+++ /branches/dev/ui/jquery.ui.widget.js Wed Dec 23 02:45:37 2009
@@ -56,6 +56,11 @@
var isMethodCall = (typeof options == 'string'),
args = Array.prototype.slice.call(arguments, 1),
returnValue = this;
+
+ // allow multiple hashes to be passed on init
+ options = !isMethodCall && args.length
+ ? $.extend.apply(null, [true, options].concat(args))
+ : options;
// prevent calls to internal methods
if (isMethodCall && options.substring(0, 1) == '_') {
--