Skip to content

Conversation

@tonyjmnz
Copy link

This PR is intended to solve #314.

It seems to be working properly for me, although I have to admit that I haven't tested it for all the different options.

Changes:

  • If intervalId != null then there’s a scheduled timeOut interval.
  • If registeredDelay == true there’s a scheduled extendedTimeOut interval.
  • The extendedTimeOut interval checks if intervalId == null before hiding the toast, if it isn’t, the toast isn’t hidden.
  • The timeOut timer checks if registeredDelayed == true before hiding the toast, if it isn’t, the toast isn’t hidden. (prevents the former timeOut interval to override a extendedTimeOut interval)
  • The stickAround function no longer clears the timeOut interval, but the function checks for :hover before hiding.

New behaviour:

The toast isn't hidden if the added extendedTimeOut timer ends before the former timeOut timer.

…erty

If intervalId != null then there’s a scheduled timeOut timer.
If registeredDelay == true there’s a scheduled extendedTimeOut timer.

The extendedTimeOut timer checks if intervalId == null before hiding
the toast, if it isn’t, the toast isn’t hidden.
The timeOut timer checks if registeredDelayed == true before hiding the
toast, if it isn’t, the toast isn’t hidden.

The stickAround function no longer clears the previous timeout, but the
timeout checks for :hover before hiding.
@gray-one
Copy link

👍

@gray-one
Copy link

gray-one commented Oct 1, 2015

@tonyjmnz are you going to resolve conflicts and merge this fix?

@tonyjmnz
Copy link
Author

tonyjmnz commented Oct 1, 2015

I'd like to see it merged, but that's up to the project owners.

@johnpapa
Copy link
Member

johnpapa commented Oct 1, 2015

We've been pretty busy lately and working towards v3. So it might be a bit til we can get bandwidth to test these.

But what would help is you adding tests. Any change we make has to have a pass and fail test for it to keep the library's integrity

@tonyjmnz
Copy link
Author

tonyjmnz commented Oct 1, 2015

Sounds reasonable. I'll try to add them soon.

@TimFerrell
Copy link
Member

@tonyjmnz - any update here?

@TimFerrell
Copy link
Member

No update; PR is against incorrect branch.

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

Successfully merging this pull request may close these issues.

4 participants