Skip to content

Commit

Permalink
Revert "Check if node is element in widget.getByElement."
Browse files Browse the repository at this point in the history
This method is supposed to be used with elements. If not an element was
passed it means that the code outside it is incorrect and it should be
checked and fixed.

This reverts commit ca144d2.
  • Loading branch information
Reinmar committed Dec 5, 2014
1 parent bddc6d0 commit 978a9a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/widget/plugin.js
Expand Up @@ -450,7 +450,7 @@
}

return function( element, checkWrapperOnly ) {
if ( !element || element.type != CKEDITOR.NODE_ELEMENT )
if ( !element )
return null;

var id = getWidgetId( element );
Expand Down

0 comments on commit 978a9a5

Please sign in to comment.