Skip to content

Commit

Permalink
fix(destroy): replace text with original text on destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
ritz078 committed Nov 7, 2015
1 parent e687a03 commit fdfa221
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 33 deletions.
2 changes: 1 addition & 1 deletion dist/embed.min.js

Large diffs are not rendered by default.

19 changes: 3 additions & 16 deletions src/embed.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/embed.js.map

Large diffs are not rendered by default.

17 changes: 2 additions & 15 deletions src/js/embed.es6
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,7 @@ const helper = require('./modules/video/helper.es6');

var defaultOptions = {
marked: false,
markedOptions: {
gfm: true,
tables: true,
breaks: false,
pedantic: false,
sanitize: false,
sanitizer: null,
mangle: true,
smartLists: false,
silent: false,
langPrefix: 'lang-',
smartypants: false,
headerPrefix: '',
xhtml: false
},
markedOptions: {},
link: true,
linkOptions: {
target: 'self',
Expand Down Expand Up @@ -201,6 +187,7 @@ const helper = require('./modules/video/helper.es6');
destroy() {
this.options.element.removeEventListener('rendered', this.twitter.load(), false);
helper.destroy('ejs-video-thumb', this.options);
this.options.element.innerHTML = this.input;
}
}

Expand Down

0 comments on commit fdfa221

Please sign in to comment.