I have a bit of code that has a bit of a foreign syntax to me:
$.widget('ui.filterFieldDisplay', $.ui.fieldDisplay, {
setFoo: function() {
.
.
.
// added the next two lines
var fooFieldWidgetOptions = fooFieldOptions.widgetOptions;
fooFieldWidgetOptions['default'] = operator;
var fooChangeProxy = $.proxy(this.fooChange, this);
fooFieldWidgetOptions.changeCallback = fooChangeProxy;
}
fooChange: function(fooModel) {
fooModel.getValue('bar');
.
.
.
}
});
Is fooModel in this case referenced to the this pointer?
I know that the $.proxy method binds the this pointer to the function, so that it operates within that context. But I know that this doesn't get referenced to fooModel. So my question is: what is fooModel and where does it come from?
.'s is just your way of saying there's code there that you've omitted?.is omitted code for the sake of secrecy.