Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Deleted return statement within conditional which prevented the post-…

…initialization render event from firing unless the editor element was inside of a parent form.
  • Loading branch information...
commit aacb695104227d4c5c3ee6df34bf2effe8436192 1 parent facc10b
@Yuffster Yuffster authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 Source/MooEditable/MooEditable.js
View
9 Source/MooEditable/MooEditable.js
@@ -152,10 +152,11 @@ this.MooEditable = new Class({
// Update & cleanup content before submit
if (this.options.handleSubmit){
this.form = this.textarea.getParent('form');
- if (!this.form) return;
- this.form.addEvent('submit', function(){
- if (self.mode == 'iframe') self.saveContent();
- });
+ if (this.form) {
+ this.form.addEvent('submit', function(){
+ if (self.mode == 'iframe') self.saveContent();
+ });
+ }
}
this.fireEvent('render', this);
Please sign in to comment.
Something went wrong with that request. Please try again.