What does 'this' refer to in this function?

Posted by Blankman on Stack Overflow See other posts from Stack Overflow or by Blankman
Published on 2010-04-01T19:51:59Z Indexed on 2010/04/01 19:53 UTC
Read the original article Hit count: 120

Filed under:
make: function(o) { // turns an object into a publisher
for(var i in this) {
o[i] = this[i];
o.subscribers = [];
}
}

© Stack Overflow or respective owner

Related posts about JavaScript