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

*jquery* and *bootstrap-markdown* Preview/Exit full screen buttons unresponsiveness #216

Closed
Martii opened this issue Jan 14, 2016 · 10 comments

Comments

@Martii
Copy link
Contributor

Martii commented Jan 14, 2016

So I updated jQuery about a day ago and didn't notice until tonight that the Preview button and exit full screen mode was failing in this package.

I'm not sure whether to create the issue with this project or jQuery's ... but I thought I would start here first.

The work-around is to back out the jQuery update from 2.2.0 back to 2.1.0 but was hoping for some more insight here.

TIA
OUJS Admin

@acrobat
Copy link
Contributor

acrobat commented Jan 14, 2016

Hi @Martii, can you provide an jsfiddle example? So we can test this bug!

@Martii
Copy link
Contributor Author

Martii commented Jan 14, 2016

Not until next week although I don't use jsfiddle ever so perhaps a little demo project to see what appears. I notice this project doesn't have any tests otherwise I would have run that first... although you are welcome to check out the dev commit that showed this and see it for yourself. ;) e.g. $ git checkout adf1f88 of OUJS... I can temporarily restore it to production too but coordinating with you might be a trick. :)

I should mention I only tested this issue on SM before I reverted... Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 SeaMonkey/2.39 but in a few days I can do the git checkout under Fx, Chromium and a few others to see if it's isolated to SM... which is unlikely since it's Moz's backend.

There are a number of open issues on jQuery's repo too and some breaking changes there... so who knows for sure what's going on.

@Martii
Copy link
Contributor Author

Martii commented Jan 14, 2016

btw here's some Error Console clips (line numbers are from minified source):

Warning: ReferenceError: reference to undefined property this[r]
Source File: http://localhost:8080/redist/npm/jquery/dist/jquery.js
Line: 2

Warning: ReferenceError: reference to undefined property p.toggle
Source File: http://localhost:8080/redist/npm/bootstrap-markdown/js/bootstrap-markdown.js
Line: 1

Warning: ReferenceError: reference to undefined property this.keypress
Source File: http://localhost:8080/redist/npm/bootstrap-markdown/js/bootstrap-markdown.js
Line: 1

Warning: ReferenceError: reference to undefined property u.disabled
Source File: http://localhost:8080/redist/npm/jquery/dist/jquery.js
Line: 2

Warning: ReferenceError: reference to undefined property t.uniqueID
Source File: http://localhost:8080/redist/npm/jquery/dist/jquery.js
Line: 1

Warning: ReferenceError: reference to undefined property oe.event.triggered
Source File: http://localhost:8080/redist/npm/jquery/dist/jquery.js
Line: 2

Warning: ReferenceError: reference to undefined property n.closest(...)[0]
Source File: http://localhost:8080/redist/npm/bootstrap-markdown/js/bootstrap-markdown.js
Line: 1



Error: TypeError: this.$textarea.on(...).on(...).on is not a function
Source File: http://localhost:8080/redist/npm/bootstrap-markdown/js/bootstrap-markdown.js
Line: 1

this looks a lot like #215

@acrobat
Copy link
Contributor

acrobat commented Jan 14, 2016

I've created a jsfiddle with jquery 2.2 which can reproduce the bug: http://jsfiddle.net/4prknn7m/1/

Bug doesn't appear with jquery 2.1.*

@acrobat
Copy link
Contributor

acrobat commented Jan 14, 2016

Bug can is related to jquery/jquery#2812. Fix for this bug will be released with jquery 1.12.1/2.2.1 other jquery version will work!

@mgol
Copy link

mgol commented Jan 14, 2016

Note, though, that passing an undefined handler is not supported and never has. We plan to fix it for 2.2.1 because it's inconsistent with how 1.12.0 works and we want both versions to be as close to each other as possible. This will most likely just start throwing in jQuery 3.0.0 (we'll have a beta out soon). If you disagree with this, please comment on #2812.

@Martii
Copy link
Contributor Author

Martii commented Jan 14, 2016

Closing as a duplicate as I'm following #215 now since it appears to be that... easier to follow one issue.

@Martii Martii closed this as completed Jan 14, 2016
@acrobat
Copy link
Contributor

acrobat commented Jan 17, 2016

bootstrap-markdown 2.10.0 was released with a fix for this issue!

@Martii
Copy link
Contributor Author

Martii commented Jan 17, 2016

Awesome... I'll give it a shot tomorrow when I'm back at dev station. TIA.


P.S. Doesn't appear to be on npm registry yet.

@acrobat
Copy link
Contributor

acrobat commented Jan 18, 2016

Ah yes indeed @Martii!

Ping @toopay can you publish the latest version on npm?

Martii pushed a commit to Martii/OpenUserJS.org that referenced this issue Jan 19, 2016
* *jquery* changes that affect *bootstrap-markdown* appear resolved ... Preview once again working refactory-id/bootstrap-markdown#216 and refactory-id/bootstrap-markdown#215
* Doc fixes, and bug fixes as usual... see their changelogs
* Delete op retested
* Strategy steam retested... okay
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

3 participants