Namenskorrektur

This commit is contained in:
lars 2008-08-23 12:31:08 +00:00
parent 9eaa4a841c
commit c0258314f4
73 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,12 @@
/*
* Checks if property is derived from prototype, applies method if it is not exists
*
* @param string property name
* @return bool true if prototyped
* @access public
*/
if ('undefined' == typeof Object.hasOwnProperty) {
Object.prototype.hasOwnProperty = function (prop) {
return !('undefined' == typeof this[prop] || this.constructor && this.constructor.prototype[prop] && this[prop] === this.constructor.prototype[prop]);
}
}