Namenskorrektur
This commit is contained in:
parent
9eaa4a841c
commit
c0258314f4
73 changed files with 0 additions and 0 deletions
|
@ -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]);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue