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

Add Noon Pacific (noonpacific.com) #142

Merged
merged 1 commit into from
May 10, 2017
Merged

Conversation

iver56
Copy link
Contributor

@iver56 iver56 commented Jul 26, 2015

Note that on noonpacific.com the simulated click only worked correctly with cancelable = true. [1] cancelable = true was not the default, so I had to create a way to override the default by passing an options object. The existing usage of simulateClick, where only one parameter (the element) is passed, should still work as before.

[1] The control buttons on noonpacific.com are actually anchors (a tags with href set to an empty string) that reload the entire page by default, but the click handlers on noonpacific.com use preventDefault to prevent that, and create the wanted behavior. Only with cancelable = true can noonpacific.com correctly cancel the unwanted navigation, and perform the appropriate music control actions.
http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-flow-cancelation

@iver56 iver56 force-pushed the noon-pacific branch 2 times, most recently from f5973f8 to f3c1140 Compare July 26, 2015 00:53
@craftbyte
Copy link

I agree on that.

@borismus
Copy link
Owner

Ideally noonpacific.com should implement #122. Can we try this approach first?

@iver56
Copy link
Contributor Author

iver56 commented Jul 27, 2015

@borismus I've notified one of the guys at noonpacific.com

@feedbee
Copy link
Collaborator

feedbee commented May 10, 2017

As noonpacific.com still don't support our generic API, we can merge this PR. @iver56, can your resolve the conflict with README, please?

@feedbee feedbee self-requested a review May 10, 2017 11:44
@feedbee feedbee merged commit f3c1140 into borismus:master May 10, 2017
@feedbee
Copy link
Collaborator

feedbee commented May 10, 2017

I resolved conflict by myself. Merged in #209

Copy link
Collaborator

@feedbee feedbee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed, test

@iver56
Copy link
Contributor Author

iver56 commented May 10, 2017

Sweet! Thanks for getting this in :)

@iver56 iver56 deleted the noon-pacific branch May 10, 2017 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants