WordPress.org

Make WordPress Core

Opened 22 months ago

Closed 22 months ago

Last modified 22 months ago

#25986 closed defect (bug) (fixed)

jshint shouldn't throw errors: wp-includes/js/heartbeat.js

Reported by: dziudek Owned by: nacin
Milestone: 3.8 Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: has-patch
Focuses: Cc:

Description

6 JSLint errors to fix

2 JSLint errors are connected with checking type of global variables: pagenow and ajaxurl.

Attachments (1)

25986.diff (1.6 KB) - added by dziudek 22 months ago.

Download all attachments as: .zip

Change History (5)

@dziudek22 months ago

comment:1 @dziudek22 months ago

  • Keywords has-patch added

The attached patch file fixes the following JSLint problems:

  • missing radix parameter in the parseInt function
  • 3 times unused "e" variable in the callback for the events
  • unachievable break statement after the return
  • mixed tabs and spaces in one place
Last edited 22 months ago by dziudek (previous) (diff)

comment:2 @nacin22 months ago

Sorry dziudek, this file just got largely re-written in [26169]. Luckily there was not much work for you here. :-)

comment:3 @nacin22 months ago

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

In 26197:

Fix JSHint errors in heartbeat.js.

props dziudek.
fixes #25986.

comment:4 @nacin22 months ago

  • Milestone changed from Awaiting Review to 3.8

Moving fixed JSHint error tickets to 3.8.

Note: See TracTickets for help on using tickets.