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
Ah, i found the cause sorry for bothering:
http://ejohn.org/blog/ecmascript-5-objects-and-properties/