Bug Tracker

Opened 8 years ago

Closed 8 years ago

#11089 closed bug (wontfix)

css function fail when register function to object prototype

Reported by: or.virnik@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

Description

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.

Change History (1)

comment:1 Changed 8 years ago by ajpiano

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.