Bug Tracker

Changes between Initial Version and Version 1 of Ticket #9425, comment 13


Ignore:
Timestamp:
Jul 7, 2011, 11:26:42 AM (12 years ago)
Author:
Robert Katić
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9425, comment 13

    initial v1  
    1 @timmywil: Although it seams wrong to have a a "setInterval" property in a prototype, it is not so wrong to have such property in a plain object that acts as a map. So, we could at least do:
     1@timmywil: Although it seams wrong to have a a "setInterval" property in a prototype, it is not so wrong to have such property in a plain object that acts as a map.
    22
    3 {{{
    4 return !!obj && typeof obj === "object" && "setInterval" in obj && !hasOwn.call(obj, "setInterval");
    5 }}}
     3EDIT: Removed a solution that would fail in IE6,7,8