Guest User

Untitled

a guest
Feb 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. Object.prototype.delegated = function(props) {
  2. var f = function() { }
  3. f.prototype = this
  4. var r = new f()
  5. for (var p in props)
  6. if (props.hasOwnProperty(p))
  7. r[p] = props[p]
  8. return r
  9. }
Add Comment
Please, Sign In to add comment