Skip to main content

Bug Tracker

Side navigation

#875 closed bug (fixed)

Opened January 24, 2007 11:09AM UTC

Closed February 01, 2007 06:01PM UTC

Last modified June 21, 2007 04:11AM UTC

Misleading code sample for ScrollToAnchors()

Reported by: Lennart Owned by: stefan
Priority: major Milestone:
Component: interface Version:
Keywords: Cc:
Blocked by: Blocking:
Description

The code sample for ScrollToAnchors() (http://interface.eyecon.ro/docs/fx) suggests applying the function on a jQuery object of A elements. Wondering why it wouldn't work, a look at the source revealed that the jQuery object's elements are only used as context to search for matching anchors. Hence, for enabling autoscrolling for all As of a page, instead of

$("a").ScrollToAnchors(800)

the correct code sample should be:

$("body").ScrollToAnchors(800);

Attachments (0)
Change History (2)

Changed January 31, 2007 09:42PM UTC by joern comment:1

component: fxinterface
owner: johnstefan

Changed February 01, 2007 06:01PM UTC by stefan comment:2

resolution: → fixed
status: newclosed