Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#23780 closed defect (bug) (fixed)

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

Reported by: markjaquith's profile markjaquith Owned by: markjaquith's profile 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)

#1 @SergeyBiryukov
12 years 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].

#2 @markjaquith
12 years 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.