usablica/intro.js — pull request #225 by andragan (2013-11-28 03:31:57+00:00)
Title: added onafterchange method, and call it just before the end of _showElem...

...ent method

difference with onchange is that onchange is executed first time upon entering _showElement method. This will fail if we want to, for example, set focus to the current input element being shown, because the element is modified in _showElement method. onafterchange is executed just before the end of _showElement method, so any changes to the current element will persist. I found this especially useful when trying to set focus to an input element which is currently being intro-ed using jquery's .focus().