Top "This" questions

Keyword that refers to the current class instance or object in many object-oriented programming languages.

What's the difference between '$(this)' and 'this'?

I am currently working through this tutorial: Getting Started with jQuery For the two examples below: $("#orderedlist").find("li").each(…

javascript jquery this
How to access the correct `this` inside a callback?

I have a constructor function which registers an event handler: However, I'm not able to access the data property of …

javascript callback this
How does the "this" keyword work?

I have noticed that there doesn't appear to be a clear explanation of what the this keyword is and how …

javascript this
'this' vs $scope in AngularJS controllers

In the "Create Components" section of AngularJS's homepage, there is this example: controller: function($scope, $element) { var panes = $scope.panes = []; $…

angularjs angularjs-scope this
Difference between getContext() , getApplicationContext() , getBaseContext() and "this"

What is the difference between getContext() , getApplicationContext() , getBaseContext() , and "this"? Though this is simple question I am unable to understand …

android this android-context
When should I use "this" in a class?

I know that this refers to a current object. But I do not know when I really need to use …

java oop this
What does the variable $this mean in PHP?

I see the variable $this in PHP all the time and I have no idea what it's used for. I've …

php class oop this
When do you use the "this" keyword?

I was curious about how other people use the this keyword. I tend to use it in constructors, but I …

c# coding-style this
Pass correct "this" context to setTimeout callback?

How do I pass context into setTimeout? I want to call this.tip.destroy() if this.options.destroyOnHide after 1000 ms. …

javascript callback this settimeout
Use of "this" keyword in C++

Possible Duplicate: Is excessive use of this in C++ a code smell When should you use the "this" keyword in …

c++ this