Bug Tracker

Modify

Ticket #875 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

Misleading code sample for ScrollToAnchors()

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

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);

Change History

comment:1 Changed 6 years ago by joern

  • Owner changed from john to stefan
  • Component changed from fx to interface

comment:2 Changed 6 years ago by stefan

  • Status changed from new to closed
  • Resolution set to fixed

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.