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

Make it posible to determine alternate location of data file #15

Merged
merged 4 commits into from Nov 4, 2019

Conversation

agmoyano
Copy link
Contributor

@agmoyano agmoyano commented Nov 4, 2019

This patch adds the posibility to determine an alternate location for data file.

For it to work, you should add a locateFile option, that is a function that returns the path of your data file.

If you do not specify a locateFile option, behaviour remains the same.

README.md Outdated
@@ -19,13 +19,17 @@ $( document ).ready(function() {
color: "red",
onUnpdate: midiUpdate,
onStop: midiStop,
width: 250
width: 250,
locateFile: function(file) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks. Could you fix the indentation?

@agmoyano
Copy link
Contributor Author

agmoyano commented Nov 4, 2019

Hi @lpugin,

Thanks for the quick response.

I've fixed (twice :-P) the indentation.

Regards

@lpugin lpugin merged commit 91e5e17 into rism-digital:master Nov 4, 2019
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.

None yet

2 participants