Projects | Contribute in GitHub

litejs

@version    1.3.0
@date       2016-07-08
@stability  3 - Stable

Browser upgrade

Implement EcmaScript 5 methods for older browsers.

Contains

Notes

// hasOwnProperty polyfill
Object.prototype.hasOwnProperty = function(name, obj) {
    try {
        obj = this.constructor
        while (obj=obj.prototype) if (obj[name]===this[name]) return false
    } catch(e) {}
    return true
}

Licence

Copyright (c) 2012-2016 Lauri Rooden <[email protected]>
The MIT License


Tags: browser, litejs

Have an update or suggestion for this note? You can edit it and send me a pull request.

Fork me on GitHub

Since 2013 to 2015