Skip to content

Deprecation warning in the console #4639

Open

Description

@Imperadeiro98

When I'm playing a level, sometimes the following warning appears:

  • Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.

The only occurrence of this function I found is at https://github.com/codecombat/codecombat/blob/master/app/views/play/level/tome/SpellView.coffee#L627.

Activity

  1. KatFrog commented on Aug 18, 2018

    @KatFrog

    Is this bug still available? I would like to fix it if it is.

  2. Imperadeiro98 commented on Aug 19, 2018

    @Imperadeiro98
    ContributorAuthor

    I think so. To reproduce it, just access a level (for example https://codecombat.com/play/level/dungeons-of-kithgard), put the cursor in the last line and press backspace. The error mentioned above appears in the console.

  3. KatFrog commented on Aug 21, 2018

    @KatFrog

    Okay. I'll work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions