WordPress.org

Make WordPress Core

#23780 closed defect (bug) (fixed)

JS Error: <#HTMLDocument> has no method 'save'

Reported by: markjaquith Owned by: markjaquith
Milestone: 3.6 Priority: high
Severity: major Version: 3.6
Component: General Keywords:
Focuses: Cc:

Description

On clicking "Save Draft" I get:

Uncaught TypeError: Object <#HTMLDocument> has no method 'save'

Suspect it is related to the local autosave stuff. Going to run a bisect to narrow it down to a commit.

Change History (2)

comment:1 SergeyBiryukov13 months ago

Seeing it too:

Error: TypeError: self.save is not a function
Source File: http://trunk.wordpress/wp-includes/js/autosave.js?ver=3.6-alpha-23695
Line: 555

http://core.trac.wordpress.org/browser/trunk/wp-includes/js/autosave.js?rev=23693#L552

Appears to be introduced in [23683].

comment:2 markjaquith13 months ago

  • Owner set to markjaquith
  • Resolution set to fixed
  • Status changed from new to closed

In 23703:

Wrap self.run in an anonymous function wrapper so self always gets the same scope.

props azaozz. fixes #23780

Note: See TracTickets for help on using tickets.