SCM

[#6563] Use is() for class comparisons

Date:
2018-02-19 18:17
Priority:
3
State:
Closed
Submitted by:
Jeffrey Arnold (jrnold)
Assigned to:
David Scott (dscott)
Hardware:
All
Product:
None
Operating System:
All
Component:
None
Version:
v1.1
Severity:
minor
Resolution:
Fixed
URL:
Summary:
Use is() for class comparisons

Detailed description
At a couple places, the inheritance relationship between an object and a class is tested with class(x) == "classname" rather than the recommended is() or inherits(). The attached patch replaces those cases with is().

Comments:

No Comments Have Been Posted

Attached Files:

Attachments:
Size Name Date By Download
1 KiBfix-class-tests.diff2018-02-19 18:17jrnoldfix-class-tests.diff

Changes

Field Old Value Date By
status_idOpen2020-06-17 12:09dscott
close_dateNone2020-06-17 12:09dscott
ResolutionNone2020-06-17 12:09dscott
assigned_tonone2020-06-17 12:08dscott
File Added5163: fix-class-tests.diff2018-02-19 18:17jrnold
Thanks to:
Vienna University of Economics and Business Powered By FusionForge