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

Need a way to know if an event handler attribute value was provided #33

Open
PK1A opened this issue Jan 13, 2014 · 2 comments
Open

Need a way to know if an event handler attribute value was provided #33

PK1A opened this issue Jan 13, 2014 · 2 comments
Labels

Comments

@PK1A
Copy link
Contributor

PK1A commented Jan 13, 2014

Consider the following component:

<#alert onclose="{iWasClosed()}">Foo</alert>

and

<#alert>Foo</alert>

where the close callback wasn't passed - currently there is no way (?) of distinguishing those 2 situations. It might be useful in cases like this one where we want to add (or not) a close button to the alert, depending if a callback was provided or not.

@benouat
Copy link
Member

benouat commented Jan 24, 2014

Can't we use the defaultValue attribute definition property for that ?

@divdavem
Copy link
Member

divdavem commented May 3, 2014

The following plunk shows that this issue is not fixed: http://embed.plnkr.co/HgAxYrnMqCIriauKujxm
isEmpty seems to always be true.

@divdavem divdavem reopened this May 3, 2014
@divdavem divdavem added bug and removed enhancement labels May 3, 2014
marclaval added a commit to marclaval/hashspace that referenced this issue Sep 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants