joelpurra/skipontab — pull request #1 by joelpurra (2012-02-12 10:01:32+00:00)
Title: Converted per-field .focus() listener to one document level .focusin() listener

Instead of creating one identical listener per intiated field, use one top level `$(document).focusin()` listener. The new listener looks at the the attributes the target element that received focus, plus all of the target´s DOM parents.

This change makes it easier to

* Apply SkipOnTab on containers.
* Dynamically add elements in containers that are already marked to be skippable. Inheritance is implied and the new element does not have to be added explicitly.
* Disable skipping in subcontainers of skipped containers. Disabling has precedence over enabling.
* Keep track of what elements have been initiated - it is not necessary. Dynamically initiating an element just adds the default `[data-skip-on-tab=true]`, and does not require additional data to be saved.