This project is archived and is in readonly mode.

#160 ✓resolved
Nir Tayeb

instanceof on derived class don't work with the base class

Reported by Nir Tayeb | June 24th, 2008 @ 02:46 PM | in 1.2.1

var Animal = new Class({});
var Cat = new Class({Extends: Animal});
var c = new Cat();

c instanceof Animal // returns false

Comments and changes to this ticket

  • Tom Occhino

    Tom Occhino October 6th, 2008 @ 08:37 AM

    • Assigned user changed from “Valerio” to “Tom Occhino”
    • State changed from “new” to “resolved”
    • Milestone changed from 2.0 to 1.2.1
    • Tag set to class

    fixed, works with the inheritance technique in the new Class.js.

  • Nir Tayeb

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket