Weird JavaScript statement, what does it mean? -


I'm looking at this code, what is this doing?

  var obj = this;    

This only stores the current context of the this object This is useful for future use, because in this value of , depends on a reference.

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -