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: | or.virnik@gmail.com | 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.
Attachments (0)
Change History (1)
Changed December 21, 2011 08:35AM UTC by comment:1
resolution: | → wontfix |
---|---|
status: | new → closed |
Sorry, we just don't support that. http://docs.jquery.com/Won%27t_Fix#Object.prototype_Issues