93
edits
(Added notes on jetpack.tabs) |
(added notes on tab event handlers) |
||
Line 24: | Line 24: | ||
'''Limitations:''' At present, the <code>tabs</code> array is immutable, which means that destructive methods like <code>splice()</code> won't work on them. All other [https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/Array Array methods and properties] are available, however. | '''Limitations:''' At present, the <code>tabs</code> array is immutable, which means that destructive methods like <code>splice()</code> won't work on them. All other [https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/Array Array methods and properties] are available, however. | ||
==== Tab Event Handlers ==== | |||
Much of what <code>jetpack.tabs</code> is useful for is setting up event handlers. The wonderful thing about these event handlers is that they handle all the difficult edge cases for you. When you create an event handler using an event binder function such as <code>jetpack.tabs.onReady()</code>, it's not only set up for all currently open tabs, but when a new tab is created—in any window—Jetpack will bind the event handler to it. |
edits