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

this.$textarea.on(...).on(...).on is not a function #215

Closed
simplenotezy opened this issue Jan 11, 2016 · 10 comments · Fixed by #218
Closed

this.$textarea.on(...).on(...).on is not a function #215

simplenotezy opened this issue Jan 11, 2016 · 10 comments · Fixed by #218

Comments

@simplenotezy
Copy link

I am getting the following error:

this.$textarea.on(...).on(...).on is not a function

image

image

It used to work fine 10 minutes ago. I did not make any changes to this.

@acrobat
Copy link
Contributor

acrobat commented Jan 12, 2016

Can you provide a jsfiddle with a working example of the error?

@bzelba
Copy link

bzelba commented Jan 12, 2016

Same here!

@acrobat
Copy link
Contributor

acrobat commented Jan 14, 2016

Issue caused by jquery/jquery#2812, fixed should be pushed to 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.

@acrobat
Copy link
Contributor

acrobat commented Jan 14, 2016

@mgol Can you explain a bit more what is wrong with this piece of code? I don't understand what you mean!

@mgol
Copy link

mgol commented Jan 14, 2016

@acrobat elem.on(eventName, null or undefined) is not and has never been supported. See https://api.jquery.com/on/, there is no such signature in the docs.

@mgol
Copy link

mgol commented Jan 14, 2016

And I assume this piece of code doesn't work because this.keypress is undefined and so is $.proxy(this.keypress, this).

@simplenotezy
Copy link
Author

How do we overcome this issue? Bootstrap 4 alpha depends on jQuery 1.9.1 - 2

@acrobat
Copy link
Contributor

acrobat commented Jan 15, 2016

@mgol thanks for the info! I will push a fix to this library!

acrobat added a commit to acrobat/bootstrap-markdown that referenced this issue Jan 15, 2016
@acrobat
Copy link
Contributor

acrobat commented Jan 17, 2016

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

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

Successfully merging a pull request may close this issue.

4 participants