Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

BB10-WebWorks-Samples / Toast dont execute a dissmissCallback #158

Open
theclabs opened this issue Aug 30, 2013 · 8 comments
Open

BB10-WebWorks-Samples / Toast dont execute a dissmissCallback #158

theclabs opened this issue Aug 30, 2013 · 8 comments

Comments

@theclabs
Copy link

On disappear toast, dont call te dissmissCallback function

https://github.com/blackberry/BB10-WebWorks-Samples/blob/master/Toast/js/app.js#L50

@JoabMendes
Copy link
Contributor

Do you are using the bbUI.js/bbUI.css version 0.9.6? If not, try to update https://www.dropbox.com/s/kvbef82rv4b5ak8/bbui.zip
I was having some problems to call functions with the old version, the most samples here, doesn't are updated.

@gcsantiago
Copy link

You need to call with button on it for first time to ensure to work (bug??)

#66

@timwindsor
Copy link
Contributor

Is that still happening on the latest OS or developer preview OS? The original issue suggests that it should be fixed by now.

@theclabs
Copy link
Author

@gcsantiago yes, have a button in the function, but dont execute anyway. look ( https://github.com/blackberry/BB10-WebWorks-Samples/blob/master/Toast/js/app.js#L50 )
@timwindsor: yes happening in the last simulators and 10.2 final releases.

@jeffheifetz
Copy link

Is this issue specifically with the sample, or with the API?

@timwindsor
Copy link
Contributor

@ctetreault is the author, so perhaps he can take a look. We are updating some of these samples shortly anyway.

@ctetreault
Copy link
Contributor

Pretty sure it's just the sample Jeff. I use toasts with callbacks in the upcoming BFB Boilerplate without a problem.

We're updating the old samples shortly to correct a few issues, I'll make sure this one is on the list.

@T-M-C
Copy link

T-M-C commented Dec 2, 2013

Every time my app shows a toast (with no dismisscallback), i get an error in console:
TypeError: 'undefined' is not an object (evaluating 'options.dismissCallback')

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

No branches or pull requests

7 participants