Commit Graph

96 Commits

Author SHA1 Message Date
Jörn Zaefferer
5fda4f6828 Update data naming for Widget, including backwards compability. Updated tests and added one for the custom expression. Partial fix for #7810 2012-03-01 14:30:02 +01:00
jdomnitz
57fe6ed01d JavaScript "strict mode" fixes 2012-02-12 19:58:56 -05:00
Scott González
8cd4a8330c Widget: Allow redefining a widget after other widgets have inherited from it. 2012-02-01 16:59:26 -05:00
Scott González
da89fcbc07 Widget: Added _getCreateEventData(). Fixes #8045 - Widget: Ability to provide event data for create event. 2012-01-21 08:45:41 -05:00
Scott González
3cf98e5ca1 Widget: Set guid on event handler proxies so direct unbinding works. 2012-01-07 20:48:42 -05:00
Scott González
5fb9629766 Widget: Simplify data normalization in _trigger(). 2011-11-21 11:31:51 -05:00
Scott González
91ef69d750 Widget: Don't use $.event.props when creating events. 2011-11-21 11:14:19 -05:00
Jörn Zaefferer
66f9e12797 Widget: Remove method argument from _super and _superApply. Was a left-over from first implementation, not necessary anymore. 2011-11-18 17:08:40 +01:00
Scott González
1b165148a6 Widget: Set event.target in ._trigger(). Fixes #7852 - Droppable event target changes under jQuery 1.7. 2011-11-10 07:58:58 -05:00
Scott González
8fd6101c3c Widget: Define this.document properly when instantiating a widget on a document or window. Fixes #7835 - Undefined property when creating widgets. 2011-11-07 08:39:22 -05:00
Scott González
6625060d83 Widget: Use parentWindow if defaultView doesn't exist.
Thanks ronchalant
2011-10-21 09:26:07 -04:00
Scott González
a0856efef3 Widget: Added window and document properties. Fixes #7801 - Widget: Add document and window properties. 2011-10-20 16:57:47 -04:00
Corey Frang
2f89f35643 Widget: Refactoring setOptions loop to remove unnesecary closure / that reference 2011-10-19 12:54:08 -05:00
Jörn Zaefferer
3a0340f4ee Widget: return timer value from _delay 2011-09-12 23:47:09 +02:00
Jörn Zaefferer
30482cd04b Widget: Get rid of var self 2011-09-12 23:41:01 +02:00
Jörn Zaefferer
2a6ca3fb39 Widget: Add a _delay method. Will be used in various places to replace setTimeout with custom binding (mostly getting rid of var self/that) 2011-09-12 23:37:14 +02:00
Scott González
4587f2de68 Widget: Use this.widget() for event delegation. 2011-08-12 22:10:31 -04:00
Scott González
92766654ae Widget: Wrap the remove event trigerring in a try/catch. Fixes #7510 - jQuery.data throws a script error in certain circumstances. 2011-08-09 11:45:41 -04:00
Jörn Zaefferer
0ff3396e88 Widget delegation: Small if-simplify refactoring 2011-07-28 21:55:38 +02:00
Jörn Zaefferer
5297b7bc42 Whitespace cleanup 2011-06-20 22:31:28 +02:00
Jörn Zaefferer
8b14b35dc7 Widget delegation: Fix impl and add basisc test 2011-06-19 14:59:18 +02:00
Jörn Zaefferer
aa7f8195f8 Merge branch 'master' into widget-delegation 2011-06-19 14:45:20 +02:00
Scott González
3dea8f1786 Widget: Added ability to get deep options. Fixes #7459 - Widget: Extend .option() to get partial nested options. 2011-06-09 09:47:18 -04:00
Jörn Zaefferer
2d1b9b391e Widget delegation: First draft 2011-06-08 22:14:37 +02:00
Scott González
1b52cefc26 Widget: Fixed _show() and _hide() implementation and added tests. 2011-05-30 18:27:48 -04:00
Scott González
6a5b21fda2 All: Moved version numbers into prototypes. Fixed #7436 - Widget: Store version numbers on instances. 2011-05-28 15:39:55 -04:00
Scott González
d4f6f17c8d Tooltip: Changed custom animation demo and changed the logic for showing tooltips so custom position options can perform animations. 2011-05-28 10:18:39 -04:00
Jörn Zaefferer
b9153258b0 Widget: Added $.widget.extend() which does deep extending, but only on plain objects. 2011-05-11 13:37:40 -04:00
gnarf
c13ef9e037 Widget: show/hide effects added BackCompat 2011-05-02 07:49:11 -05:00
gnarf
c9fb452867 widget: Updating code for show/hide to use new effects API namespace - DRY'ed out a bit as well 2011-05-02 06:49:59 -05:00
Jörn Zaefferer
d8e60e9a8a Merge branch 'master' into tooltip-animations 2011-05-02 13:12:36 +02:00
Jörn Zaefferer
a03c222f05 Tooltip: Overhaul widget animations code to allow delay with plain show/hide 2011-05-02 13:11:58 +02:00
Scott González
325ee6e871 Widget: define a null default for the create callback. 2011-04-25 14:04:30 -04:00
jzaefferer
3bb9ab2626 Tooltip: Add support for delaying showing/hiding. Still need to figure
out how to combine that with non-animated show/hide.
2011-04-21 14:30:42 +02:00
jzaefferer
e609bebaae Custom tooltip animations based on widget-animations branch. 2011-04-15 16:49:29 +02:00
Scott González
6fc98deef0 Widget: Allow setting individual properties of deep options. Fixes #7035 - Widget: Extend .option() to set partial nested options. 2011-03-24 09:21:53 -04:00
Scott González
c6e7e3fc28 Widget: Deprecated use of metadata plugin. Fixes #7191 - Widget: Deprecate use of metadata. 2011-03-23 09:16:19 -04:00
Scott González
f77224055a Widget: Maintain stack when a method returns a jQuery object. Fixes #5732 - Widget: Make the widget method maintain the stack. 2011-03-22 14:35:18 -04:00
jzaefferer
0872aac982 Widget: Accept selectors and DOM elements as element-argument to _bind 2011-03-17 11:59:32 +01:00
William Kevin Manire
c94ec23b26 Widget: modified widget to throw exception on attempt to call private methods. Fixed #6947 - Attempt to access private member of widget returns jQuery object 2011-02-16 00:28:32 -08:00
Scott González
1cb1b9cef7 Widget: Handle super calls when method calls go up and down the inheritance chain. 2011-02-11 08:53:43 -05:00
Scott González
92bae28dea Widget: Only create _super and _superApply once per method, then assign on every execution. 2011-02-10 21:32:33 -05:00
Scott González
6096aed0a3 Widget: Fixed super methods with deep inheritance chains. 2011-02-10 21:25:50 -05:00
Scott González
ee88a56243 Widget: Added ability to use $.widget() to create extensions. Fixes #6937 - Widget: Allow redefining a widget to create extensions. 2011-02-03 16:37:17 -05:00
Michael DellaNoce
b3fcf17471 Widget: Modified _trigger to invoke callbacks with apply so that handlers are invoked the same way .trigger() invokes them. Fixes #6795 - Widget: _trigger passes array arguments to handlers inconsistently. 2011-02-01 06:57:48 -05:00
Scott González
cb8f5b7f26 Merge branch 'master' into widget-events
Conflicts:
	ui/jquery.ui.widget.js
2011-01-31 22:04:09 -05:00
Scott González
17004b9cac Widget: Use focusin/focusout for ._focusable(). 2011-01-31 21:55:22 -05:00
jzaefferer
03dcdd6373 Optimize widget's _createWidget method to not store data and bind remove
when dealing with an instance without an element (element == instance).
2011-01-31 16:33:45 +01:00
Scott González
cc90b44060 Widget: Allow this.element to be the widget instance instead of a DOM element. Fixes #6895 - Widget: Allow non-DOM based widget. 2011-01-24 13:33:24 -05:00
Scott González
8d1713dd8e Widget: Removed comment about storing instances in jQuery.data twice since we now only do it once. 2011-01-23 17:38:33 -05:00