Ticket #1201 (closed task: fixed)

Opened 15 months ago

Last modified 14 months ago

[PATCH] Replace isUnit, isAnimal, ... with calls to hasClass

Reported by: leper Owned by: quantumstate
Priority: If Time Permits Milestone: Alpha 10
Component: Core engine Keywords:
Cc:

Description

input.js, unit_commands.js and utility_functions.js use functions like isUnit that duplicate the functionality of hasClass introduced by [11279].

Attachments

hasClass.patch (4.4 KB) - added by leper 15 months ago.

Change History

Changed 15 months ago by leper

comment:1 Changed 15 months ago by leper

  • Keywords review added

comment:2 Changed 14 months ago by quantumstate

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

In 11365:

Replace isUnit, isAnimal, ... with calls to hasClass using patch from leper. Fixes #1201.

comment:3 Changed 14 months ago by quantumstate

  • Keywords review removed

Thanks for the patch.

Note: See TracTickets for help on using tickets.