Top "This" questions

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

Controlling the value of 'this' in a jQuery event

I have created a 'control' using jQuery and used jQuery.extend to assist in making it as OO as possible. …

jquery scope this
Typescript "this" inside a class method

I know this is probably painfully basic, but i am having a tough time wrapping my head around it. class …

jquery this typescript proxy-classes
C# way to add value in a List<T> at index

Is there any way you can add a value at a specific index? I try to do indexator and I …

c# list indexing this add
Preserving a reference to "this" in JavaScript prototype functions

I'm just getting into using prototypal JavaScript and I'm having trouble figuring out how to preserve a this reference to …

javascript oop scope this prototype-programming
Using $this inside a static function fails

I have this method that I want to use $this in but all I get is: Fatal error: Using $this …

php oop this static-methods
Set "this" variable easily?

I have a pretty good understanding of Javascript, except that I can't figure out a nice way to set the "…

javascript variables scope this
How can I use multiple constructors to remove duplicated code while maintaining readability?

int a, b, c; Constructor() { a = 5; b = 10; c = 15; //do stuff } Constructor(int x, int y) { a = x; b = y; c = 15; //…

c# parameters constructor this code-duplication
TypeScript "this" scoping issue when called in jquery callback

I'm not sure of the best approach for handling scoping of "this" in TypeScript. Here's an example of a common …

typescript this
difference and when to use getApplication(), getApplicationContext(), getBaseContext() and someClass.this

I'm new to android and I'm trying to understand the difference between getApplication(), getApplicationContext(), getBaseContext(), getContext() and someClass.this and …

android android-intent this toast android-context
Javascript scope addEventListener and this

I am a C# developer experimenting with JavaScript and I'm trying to get my head around the scope :) I have …

javascript scope this addeventlistener