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 fallback for ExtJS5 to return the layer. #392

Closed
wants to merge 1 commit into from

Conversation

KaiVolland
Copy link
Contributor

This is a small PR which adds a fallback to the getLayer() method in the LayerModel so it works even if this.raw is undefined. E.g. for ExtJS5.

This resolves #390

@chrismayer
Copy link
Contributor

LGTM @KaiVolland. Thank you!

I wondered a bit why the tests did not fail before with ExtJS5. Did you have a look at that?

@KaiVolland
Copy link
Contributor Author

I'm not 100% convinced of the testsuite we are using (or the tests we wrote). If i run the tests in chrome or firefox and not in shell some of them fail sometimes and work afterwards...
So i'd like to trust travis on that.

Alternatively we could change to:

if(GeoExt.Version.isExt4){
    return this.raw;
} else {
    return this.data;
}

@chrismayer
Copy link
Contributor

I was just curious about the tests. So no worries from my side. Feel free to merge if noone else vetos.

@bentrm
Copy link
Member

bentrm commented Mar 1, 2017

@KaiVolland, save to merge this?

@KaiVolland KaiVolland closed this May 16, 2022
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.

LayerModel getLayer() in ExtJS5
4 participants