Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add callbacks to javascript page parts adding/selecting functions #20

Open
seancribbs opened this issue Sep 27, 2009 · 0 comments
Open

Comments

@seancribbs
Copy link
Contributor

Something like this:

var TabControl = Class.create({ [skipped]

select: function(tab) { [skipped]

this.select_callback(tab.label);

},

select_callback: function(pagename){}, });

Ed. IMO it would be better to fire custom events. Like tab.fire("tab:selected") or something. Then you can just observe.

(originally lighthouse #45)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant