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

autoplay is enabled when switching to a tab #2

Open
nelwa opened this issue Mar 22, 2011 · 0 comments
Open

autoplay is enabled when switching to a tab #2

nelwa opened this issue Mar 22, 2011 · 0 comments

Comments

@nelwa
Copy link

nelwa commented Mar 22, 2011

The setupTabs function is like this:

setupTabs: function(tab, contents, i) {
    tab.addEvent('mousedown', function(e) {
        if (tab != this.activeTab) {
    this.stop().play();

This means that when a tab is clicked, the autoPlay function is automatically created. It should be like this:

setupTabs: function(tab, contents, i) {
    tab.addEvent('mousedown', function(e) {
        if (tab != this.activeTab) {
    if (this.options.autoPlay) {
                this.stop().play();
    }

Regards

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

No branches or pull requests

1 participant