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

Templated Event Listeners string replacement problem #127

Closed
josephtate opened this issue May 21, 2012 · 2 comments
Closed

Templated Event Listeners string replacement problem #127

josephtate opened this issue May 21, 2012 · 2 comments

Comments

@josephtate
Copy link
Contributor

Given the following:

var options = {
  cssNamespace: 'mynamespace-',
  tagClass: 'mynamespace-tag',
  tagSelector: 'a.mynamespace-tag'
}

If I create the templated event listeners "a.{tagClass} mouseover", and "{tagSelector} mouseover" the events are handled appropriately. But if I use "a.{cssNamespace}-tag mouseover", the event isn't handled.

@daffl
Copy link
Contributor

daffl commented May 21, 2012

In you example a.{cssNamespace}-tag mouseover would evaluate to a.mynamespace--tag mouseover. Notice the double dash. Is that correct?

@josephtate
Copy link
Contributor Author

Of course you're right, and that doesn't match anything... Sorry for the noise.

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

2 participants