Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Sorry, we just don't support that. http://docs.jquery.com/Won%27t_Fix#Object.prototype_Issues