Version 1.1.1. September 17, 2009: A bunch of great changes and fixes
Version 1.1.1 - Changes and fixes
Here is a full list of all changes and bug fixes in this release:
- all tools a whole new event model
- overlay brought back the support for top: 'center'
- overlay fixed a bug where the file input field was disabled when an overlay was being loaded programmatically. thanks ncooley
- overlay fixed a bug when an overlay & expose were closed and the expose effect disappeared while the overlay stayed open. thanks Glazz
- overlay ability to close the overlay immediately after being opened. The onLoad event is not fired unless the overlay is truly opened.
- scrollable fixed a bug where the reload() call broke an existing keyboard navigation feature
- scrollable added the getClickIndex() method to the API
- scrollable fixed a bug where the onBeforeSeek and onSeek callbacks were called although the seeking position did not change. this won't happen anymore.
- scrollable brought back the loop variable
- tabs panes can be specified as a jQuery object. See this forum thread.
- tabs.history now works with the tabs initialIndex option
- tabs.slideshow now stops working after the first iteration when autoplay is enabled
- tabs.slideshow added the onBeforePlay, onPlay, onBeforePause, onPause events
- tabs.history no more error messages on IE6 when being used together with the HTTPS protocol. See this forum thread
- tooltip ability to change the tooltip dynamically by setting: trigger.data("title", title). See this forum thread
- tooltip by default the tooltip position is now determined by using the offset() method of jQuery. This gives better results when the trigger is positioned inside relatively or absolutely positioned elements. See this and this forum threads. Thanks "bericum".
- tooltip the relative configuration property can be used to switch between positioning schemes. Using false positions the tooltip relative to the document and using true positions the tooltip relative to the parent element. you should rarely need to touch this property.
- tooltip when calling the hide API method the delay configuration variable is ignored and the tip will be hidden immediately. thanks Aramaki.
A whole new event model
In jQuery Tools version 1.1.1. the event processing is standardized according to the W3C standards. This is good news for advanced scripters - the users who want to extend the default behaviour of the tools and for the jQuery Tools plugin developers. Here is what you can do with it:
- Add and remove your existing callback functions.
- Specify a name for your callbacks and later remove only those named callbacks.
- Specify a single callback for multiple event types.
- If you have multiple callbacks of the same type you can prevent the rest of the callbacks from being executed.
You can read the details of the new event model in the User's Manual.
A change from version 1.1.0
With the new event model every supplied callback function receives the jQuery.Event object as the first argument for the callback function. This will break your old installations if you have used callback arguments. For example:
In earlier versions the index number was the first argument. You will need to add the event argument to your callback functions so that they work as expected.
Tooltip's slide effect as separate module
The Tooltip's default effect has been changed from the slide effect to the toggle effect which provides a simple show/hide functionality. The toggle effect is a logical choice as the default effect for a Tooltip. The sliding animation is a special feature and has not been included in the base code of the Tooltip. If you want to use the slide effect you will need to do following:
If you don't want to use the full library and want to download only the tools you want you should download a custom combination of the tools.
Now, give me a kiss or write a story about this library in your favourite blog!