Bug Tracker

Modify

Ticket #11089 (closed bug: wontfix)

Opened 17 months ago

Last modified 17 months ago

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

comment:1 Changed 17 months ago by ajpiano

  • Status changed from new to closed
  • Resolution set to wontfix

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.