Skip to main content

Bug Tracker

Side navigation

#6228 closed bug (invalid)

Opened March 05, 2010 07:59AM UTC

Closed March 05, 2010 03:02PM UTC

jquery seem to conflict with object.prototype.create

Reported by: bobvanhoove Owned by:
Priority: Milestone: 1.4.3
Component: unfiled Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:
Description

When i put the following code in my script

if ( ! Object.prototype.create ) {

Object.prototype.create = function (o) {

var F = function () {};

F.prototype = o;

return new F();

};

}

along with jQuery I get load errors in the following lines:

Object doesn't support this property or method jquery-1.4.2.js, line 2828 character 4

Attachments (0)
Change History (2)

Changed March 05, 2010 08:02AM UTC by bobvanhoove comment:1

Ah, i found the cause sorry for bothering:

http://ejohn.org/blog/ecmascript-5-objects-and-properties/

Changed March 05, 2010 03:02PM UTC by john comment:2

resolution: → invalid
status: newclosed

Yep, jQuery doesn't attempt to work with Object.prototype manipulation.