In Ember.js’s docs, they have a jQuery code snippet with the following syntax:
this.$().button();
Is this snippet only turning this into a jQuery object so that the jQuery UI .button() function can be called on it?
Would this snippet be identical?
$(this).button();
The source code explains this as follows:
So to answer your question: no it’s not the same as
$(this), which would wrap the ember view instance in a jQuery object…