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

Bug Fix : JS error on IE9 #1974

Merged
merged 1 commit into from Jul 8, 2016
Merged

Bug Fix : JS error on IE9 #1974

merged 1 commit into from Jul 8, 2016

Conversation

chandon
Copy link
Contributor

@chandon chandon commented Jul 7, 2016

Please answer the following questions:

Q A
Bug fix? Y
New feature? N
BC breaks? N
Deprecations? N
Fixed issues #1973

Description

When using the javascript with IE9, there is a javascript error generated (seems to be at MauticJS.documentReady, it expects a function and not a string...)

Steps to reproduce the bug (if applicable)

Just open a page with the script included on IE9, and watch errors on console. You can also emulate IE9 with IE Developer Tools

Steps to test this PR

Just reproduce with this PR

Solution

There was a mistake, as MautiJS.documentReady must have a function as parameter, and not a string. New browser are able to convert string to function, but not older one...

@escopecz escopecz added this to the 2.0.1 milestone Jul 7, 2016
@escopecz escopecz added T2 Medium difficulty to fix (issue) or test (PR) bug Issues or PR's relating to bugs ready-to-test PR's that are ready to test labels Jul 7, 2016
@dongilbert
Copy link
Member

+1

1 similar comment
@escopecz
Copy link
Sponsor Member

escopecz commented Jul 8, 2016

👍

@escopecz escopecz merged commit d92dca3 into mautic:staging Jul 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues or PR's relating to bugs ready-to-test PR's that are ready to test T2 Medium difficulty to fix (issue) or test (PR)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants