Oct 272010
 
  • bugfix : when initially fading in, the ‘Asleep’ state wasn’t being cleared (typo) which meant that the Dock would run onWake() and trigger dockwake (which it shouldn’t)
  • new option, active (default -1), which is the index (zero-based) of an image required to be expanded on initial display
  • new option, noBuffer (default false), which disables the buffering of the last mouse event while the dock is asleep
  • added a command to jqDock() function – jqDock(‘destroy’) – which removes jqDock from a menu
  • added ‘expand’ and ‘active’ commands, which expand a selected image to full size, with/without animation respectively
  • expanded the (previously undocumented) ‘get’ command to return either the internal Dock object, or an internal image object, depending on the selector
  • added listener for custom event – dockfreeze – on the original menu element (as a sub-function of docksleep), which can be triggered by the calling program to (try to) freeze the dock, ie. put it to sleep but without ‘tidying up’ first
  • added a ‘freeze’ command, which does the same thing as triggering the new dockfreeze event (but synchronously)
  • the onReady, onSleep and onWake hook functions are now each passed a single string argument (‘ready’, ‘sleep’ or ‘freeze’, and ‘wake’ or ‘thaw’ respectively)
  • the triggered custom events – dockshow, docksleep and dockwake – are now passed 1 extra parameter when being triggered – ‘ready’, ‘sleep’ or ‘freeze’, and ‘wake’ or ‘thaw’ respectively
  • the creation of labels has changed slightly, and the setLabel option has been provided with an additional parameter of the div.jqDockLabel DOM element; this is to enable the setLabel() function to manipulate the label’s DOM directly if desired or required
  • the decision of whether or not to ‘show’ labels is now solely dependent on the ‘labels’ option setting, and not whether the label has any content or not
  • partial expansion/collapse times (on mouseenter/leave) are now equal – eg. going on then off the menu (before expansion has completed) will allocate the same time to the collapse as was used for the expansion (instead of always using the full ‘duration’)
  • re-worked the timings and added a ‘tidy-up’ loop – previous versions were too dependent on receiving mousemove events to complete the animations (particularly noticeable with ‘flow’ enabled)
Share

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

(required)

(required)