Skip to content

Commit

Permalink
5.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nmielnik committed Sep 16, 2015
1 parent b72369c commit a3a2efb
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
5.8.1 / 2015-09-16
==================
* Fix inconsistancies and errors in isDescendant utility method


5.8.0 / 2015-09-13
==================
* Added relativeContainer options for the toolbar
Expand Down
10 changes: 7 additions & 3 deletions dist/js/medium-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,12 @@ MediumEditor.extensions = {};
if (!parent || !child) {
return false;
}
if (checkEquality && parent === child) {
return true;
if (parent === child) {
return !!checkEquality;
}
// If parent is not an element, it can't have any descendants
if (parent.nodeType !== 1) {
return false;
}
if (nodeContainsWorksWithTextNodes || child.nodeType !== 3) {
return parent.contains(child);
Expand Down Expand Up @@ -6382,7 +6386,7 @@ MediumEditor.parseVersionString = function (release) {

MediumEditor.version = MediumEditor.parseVersionString.call(this, ({
// grunt-bump looks for this:
'version': '5.8.0'
'version': '5.8.1'
}).version);

return MediumEditor;
Expand Down
4 changes: 2 additions & 2 deletions dist/js/medium-editor.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medium-editor",
"version": "5.8.0",
"version": "5.8.1",
"author": "Davi Ferreira <[email protected]>",
"contributors": [
{
Expand Down
2 changes: 1 addition & 1 deletion src/js/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ MediumEditor.parseVersionString = function (release) {

MediumEditor.version = MediumEditor.parseVersionString.call(this, ({
// grunt-bump looks for this:
'version': '5.8.0'
'version': '5.8.1'
}).version);

0 comments on commit a3a2efb

Please sign in to comment.