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

dont check for svg support, temporary fix for typescript 2.2 bug #375

Merged
merged 4 commits into from
Feb 23, 2017

Conversation

dms1lva
Copy link
Contributor

@dms1lva dms1lva commented Feb 22, 2017

Since SVG supported is supported in all browsers, removed the check.
http://caniuse.com/#feat=svg
https://developers.coveo.com/display/public/JsSearch/Browser+Support

Issue with the definition file for document.implementation.hasFeature microsoft/TypeScript#14062

Also fixed a variable used before declaration error in ResultsList, introduced in typescript 2.2

I did not remove the FeatureDetectionUtils file since it's publicly exposed.

Deploy

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.001%) to 76.408% when pulling 5a30cee on JSUI-1445 into 02d8943 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.001%) to 76.408% when pulling 99694f9 on JSUI-1445 into 02d8943 on master.

}

declare var document: IDocument;

export class FeatureDetectionUtils {
Copy link
Member

Choose a reason for hiding this comment

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

If it's not used anywhere else.... Remove it.

I would remove the file completely, and then we don't need this fix.

Copy link
Contributor Author

@dms1lva dms1lva Feb 22, 2017

Choose a reason for hiding this comment

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

I did not remove the FeatureDetectionUtils file since its function is publicly exposed.

Copy link
Member

@olamothe olamothe Feb 22, 2017

Choose a reason for hiding this comment

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

Yeah, but it's not documented.

Anything that is not publicly documented, it's fair game to remove it.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.002%) to 76.407% when pulling 7bb8400 on JSUI-1445 into 02d8943 on master.

@olamothe olamothe merged commit 483d119 into master Feb 23, 2017
@olamothe olamothe deleted the JSUI-1445 branch February 23, 2017 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants