Ticket #296 (closed defect: fixed)

Opened 4 months ago

Last modified 4 months ago

MochiKit.Color.isColor() fails with "Color is not defined" if not exported

Reported by: cederberg@gmail.com Assigned to: somebody
Priority: normal Milestone: MochiKit 1.4
Component: component1 Version:
Severity: normal Keywords:
Cc:

Description

The MochiKit.Color.isColor(...) function fails with "Color is not defined" if MochiKit.Color is not exported into the public namespace:

        var isColor = function () {
            for (var i = 0; i < arguments.length; i++) {
// XXX: Should probably use MochiKit.Color.Color here instead
                if (!(arguments[i] instanceof Color)) {
                    return false;
                }
            }
            return true;
        };

Change History

03/26/08 11:10:14 changed by bob@redivi.com

Nice find, want to go ahead and patch it? :)

03/26/08 11:29:42 changed by cederberg@gmail.com

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [1345].