Skip to main content

Bug Tracker

Side navigation

#11089 closed bug (wontfix)

Opened December 21, 2011 08:21AM UTC

Closed December 21, 2011 08:35AM UTC

css function fail when register function to object prototype

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

I register this function to the Object prototype:

Object.prototype.length = function () {
    var length = 0;
    for (var i in this) length++;
    return length - 1;

when i use the css function, it runs this line:

name = name.replace(rupper, "-$1").toLowerCase();

but the variable 'name' is the 'length' function(above), not a string.

Attachments (0)
Change History (1)

Changed December 21, 2011 08:35AM UTC by ajpiano comment:1

resolution: → wontfix
status: newclosed