Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #328 from dovydaskukalis/fix-#6489
Browse files Browse the repository at this point in the history
Fix: Editor will now load correctly in environment with Symbol polyfilled. Closes ckeditor/ckeditor5#6489.
  • Loading branch information
mlewand authored Mar 26, 2020
2 parents 8846e66 + a2c25eb commit 7cd1f48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/observablemixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const ObservableMixin = {
*/
unbind( ...unbindProperties ) {
// Nothing to do here if not inited yet.
if ( !( observablePropertiesSymbol in this ) ) {
if ( !( this[ observablePropertiesSymbol ] ) ) {
return;
}

Expand Down Expand Up @@ -271,7 +271,7 @@ export default ObservableMixin;
// @param {module:utils/observablemixin~ObservableMixin} observable
function initObservable( observable ) {
// Do nothing if already inited.
if ( observablePropertiesSymbol in observable ) {
if ( observable[ observablePropertiesSymbol ] ) {
return;
}

Expand Down

0 comments on commit 7cd1f48

Please sign in to comment.