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

Use absolutes URL for the partiales #1174

Merged
merged 1 commit into from
May 10, 2016
Merged

Use absolutes URL for the partiales #1174

merged 1 commit into from
May 10, 2016

Conversation

sbrunner
Copy link
Member

fix #1171
replace #1121

var urlElements = window.location.pathname.split('/');
urlElements.pop();
urlElements.pop();
urlElements.pop();
Copy link

Choose a reason for hiding this comment

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

It looks like you are programming in Logo.. ;)

This could be:

var gmfUrlElements = urlElements.slice(0, urlElements.length - 3);

Copy link
Member Author

Choose a reason for hiding this comment

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

:-) +1

@sbrunner
Copy link
Member Author

Thanks @tsauerwein, mutch better :-)

@@ -1,12 +1,21 @@
var urlElements = window.location.pathname.split('/');

gmfUrlElements = urlElements.slice(0, urlElements.length - 3);

Choose a reason for hiding this comment

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

var gmfUrlElements = ...

var urlElements = window.location.pathname.split('/');

gmfUrlElements = urlElements.slice(0, urlElements.length - 3);
gmfUrlElements.push('src', 'directives', 'partials')

Choose a reason for hiding this comment

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

missing semicolon

@sbrunner sbrunner merged commit cff60e4 into master May 10, 2016
@sbrunner sbrunner deleted the partial-url branch May 10, 2016 14:54
var urlElements = window.location.pathname.split('/');

var gmfUrlElements = urlElements.slice(0, urlElements.length - 3);
gmfUrlElements.push('src', 'directives', 'partials')

Choose a reason for hiding this comment

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

missing semicolons

Copy link
Member

Choose a reason for hiding this comment

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

This is strange than eslint didn't detect it: #1072

Choose a reason for hiding this comment

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

Are these files not scanned by eslint? The missing var ... was also not detected.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed with 3cde1d7

@sbrunner sbrunner added this to the Older milestone Aug 23, 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.

layertree partial fails loading in desktop app
3 participants