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

ES6 (ECMAScript 2015) Javascript support #2

Open
zbackscatter opened this issue Jan 19, 2017 · 2 comments
Open

ES6 (ECMAScript 2015) Javascript support #2

zbackscatter opened this issue Jan 19, 2017 · 2 comments

Comments

@zbackscatter
Copy link

We are experiencing great difficulty running the latest OpenSeaDragonGL on Windows 7 and Visual Studio 2015 as it requires ES6 javascript. OpenSeaDragon runs fine but we would like to introduce OpenSeaDragonGL. Is there a version of OpenSeaDragonGL demo that does not depend on the new standard ES6?

Thanks,
Tim

@thejohnhoffer
Copy link
Owner

Thanks for opening the issue!
I didn't realize Visual Studio doesn't support the aspects of ES6 that I used.
Let me look at the source code of openseadragongl.js to see which bits rely on ES6.

@thejohnhoffer
Copy link
Owner

thejohnhoffer commented Jan 19, 2017

Here's the relevant ES6 javascript feature used in openseadragongl.js. This is syntactic sugar.

In line 58 of merger:

for (var key of this.and(this.viaGL)) {

In line 65 of adder:

for (var key of this.and(this.defaults)) {

@thejohnhoffer thejohnhoffer changed the title ES5 Javascript support ES6 (ECMAScript 2015) Javascript support Jan 19, 2017
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

No branches or pull requests

2 participants