Commit Graph

126 Commits

Author SHA1 Message Date
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
Scott González
244eebe74d Widget: Allow instantiation without the new keyword. 2011-01-22 20:39:37 -05:00
Scott González
3a0b617bb4 Widget: Added ability to generate an item if no item is passed on creation. 2011-01-22 20:30:40 -05:00
Scott González
711df1f5e5 Widget: Added _hoverable() and _focusable(). 2011-01-21 15:37:18 -05:00
Scott González
6072703cd1 Widget: Added "dynamic" bindings via ._bind() to allow for proxying. 2011-01-18 01:53:20 -05:00
Scott González
659db70caa Widget: Added ._bind() for easily binding events with correct context and disabled checking. Pretty much a direct copy from the previous bind branch. 2011-01-18 01:46:26 -05:00
Scott González
6e0482a9cb Updated copyright year. 2011-01-17 09:13:18 -05:00
Scott González
ef1202dbe0 Widget: destroy() now calls _destroy() so that widgets don't need to call the base destroy method. Fixes #5056 - Widget factory: Remove need to call base destroy method. 2011-01-14 16:55:13 -05:00
Scott González
25dae411bc Widget: Added _super() and _superApply() methods. Fixes #6861 - Widget: Add _super() and _superApply() for easy access to parent methods. 2011-01-14 15:52:03 -05:00
Scott González
eabb391e47 Widget: Removed unnecessary/incorrect logic for widgetEventPrefix. 2011-01-13 19:32:08 -05:00
Scott González
2df430d0e3 Widget: Removed commented out code. 2011-01-13 19:27:22 -05:00
Scott González
cb50642e34 Widget: Removed code for the remove event in jQuery < 1.4. 2011-01-13 19:26:52 -05:00
Xavi
956697bfca All: Use .toggleClass() instead of conditionally using .addClass() and .removeClass(). Fixes #6764 - Use toggleClass instead of [ bool ? 'addClass' : 'removeClass' ]. 2010-12-19 16:52:22 -05:00
Scott González
9ad2a4b1cc Widget: Throw errors for invalid method calls. Fixes #5972 - Widget: Throw error for non-existent method calls. 2010-12-10 14:11:20 -05:00
Scott González
6ba75aa698 Widget: Don't throw errors for invalid method calls (wait till 1.9 to add this back). Reverts fix for #5972 - Widget: Throw error for non-existent method calls. 2010-10-21 09:52:27 -04:00
Scott González
c74f53898e Widget: Fixed reference to element in _getCreateOptions(). 2010-10-19 23:19:53 -04:00
Scott González
62799d9122 Widget: Simplified _getCreateOptions(). 2010-10-07 09:06:28 -04:00
Scott González
512825d358 Widget: Added ability to define how to find options on init. Fixes #6158 - Widget: Ability to define new methods for gathering options on init. 2010-10-06 15:11:49 -04:00
Scott González
a2ddfd5107 Widget: Added create event. Fixes #6126 - Widget: Add create event. 2010-09-29 17:36:45 -07:00
Scott González
9d88b565d6 Widget: Added _setOptions method for handling normalized options setting. Fixes #6114 - Widget: Add _setOptions() method. 2010-09-27 11:21:09 -04:00
Daniel Steigerwald
3f9b953117 Widget: Use charAt instead of substring for private method check. 2010-09-20 15:03:42 -04:00
Scott González
0a0a39f896 Widget: Hook into jQuery.cleanData to auto-destroy widgets. Fixes #6008 - Widget: auto-destroy is broken in jQuery 1.4. 2010-09-03 09:49:29 -04:00
Scott González
1e28040cf3 Widget: Throw errors when calling non-existent methods or methods on uninistantiated widgets. Fixes #5972 - Widget: Throw error for non-existent method calls. 2010-08-27 14:48:17 -04:00
Scott González
1cca969c3c Widget: Refactored code for re-initialization to reduce file size. 2010-08-23 15:35:49 -04:00
Scott González
58ae7ce2fd Revert "Use pushStack in widget method. Fixes #5732 - make the widget method maintain the stack"
This reverts commit ea58cd5ac0.
2010-07-30 12:38:18 -04:00
jzaefferer
ea58cd5ac0 Use pushStack in widget method. Fixes #5732 - make the widget method maintain the stack 2010-07-30 14:26:58 +02:00
jzaefferer
b3940d2f78 Replace element.data(...) with $.data(element, ...). Fixes #5756 - Widget: Use $.data instead of .data for performance reasons 2010-07-30 14:04:11 +02:00
Scott González
f24bc0fb1f Widget: Deep extend options when creating a new plugin. Fixes #5830 - Widget: Using inheritance overwrites the base classes options. 2010-07-15 10:27:21 -04:00
Scott González
8a5d4ca321 All: Added http://jqueryui.com/about to header comments. 2010-07-14 15:45:45 -04:00
Scott González
21aad10e6a All: Define a local undefined variable inside the main closure. 2010-07-13 09:57:58 -04:00
Scott González
ca42e114c3 Merge branch 'master' of github.com:jquery/jquery-ui 2010-07-09 09:02:03 -04:00
Scott González
536ae6189b Updated copyright headers to make it clear that you can choose between MIT and GPLv2. Also added a link to http://jquery.org/license. 2010-07-09 09:01:04 -04:00
Samuel Cormier-Iijima
89c0961c38 Core (widget): don't pass DOM objects to $.fn.add. Fixes #5743 ($.fn.remove does not trigger remove event for <select>s) 2010-07-09 00:11:06 +08:00
Richard D. Worth
4657bd85bc Changed widget factory to keep generic css framework class -state-disabled in ui namespace instead of custom widget namespace. Fixes #5443 - $.Widget uses [namespace]-state-disabled, must be ui-state-disabled to be useful 2010-03-29 10:00:26 -04:00
Scott González
f775b00cfa Widget: Fixed a problem with the .remove() proxy.
Fixes #5143 - .remove() proxy doesn't work properly.
2010-02-06 02:12:41 +00:00
Richard Worth
074153407d Happy New Year 2010-01-20 14:04:26 +00:00
Scott González
ebf5160587 Widget: removed console.log call. 2010-01-19 13:53:32 +00:00
Scott González
c476541251 Widget: Only trigger remove event if keepData is not set to true.
Fixes #5076 - Using effects kills widget instances with jQuery 1.4.
2010-01-19 04:11:33 +00:00
Scott González
dc17d50a42 Widget: _create() doesn't actually take any arguments. 2010-01-17 17:36:56 +00:00
Scott González
20360688a0 Widget: conform to coding standards. 2010-01-15 22:15:18 +00:00
Scott González
9247295098 Widget factory: Removed support for old usage; it doesn't make sense to keep partial support around since we can't get full backward-compatibility. 2010-01-15 22:06:15 +00:00
Scott González
988cdd5dbc Widget: Make subsequent "init" calls useful by delegating to the option and _init methods.
Fixes #5064 - Widget: make multiple instantiation more useful.
2010-01-15 21:09:32 +00:00
Scott González
003cb9d008 Widget: conform to coding standards. 2010-01-15 20:47:41 +00:00
Scott González
7d96a0d096 Widget factory: Changed _create to _init.
Partial fix for #5064 - Widget: make multiple instantiation more useful.
2010-01-15 18:58:20 +00:00
Scott González
90fb45dffa Merged in /branches/dev r3251:3620 (excluding autocomplete, modal, tooltip, menu; including menu static tests). 2010-01-07 03:19:50 +00:00
Scott González
06e29401b8 Split mouse into its own file and udpdated dependency lists.
Fixes #5023 - Split mouse code into its own file.
2009-12-22 19:51:24 +00:00
Jörn Zaefferer
b6d17b24d4 extracting widget factory into jquery.ui.widget.js 2009-12-16 22:20:18 +00:00