Which of these coding patterns is considered to be more efficient?
Pattern 1:
var jso = new Class({
initialize: function () {
// implementation
},
hiliteField: function () {
// implementation
}
});
Pattern 2:
var jso = new Class({
initialize: function () {
this.hiliteField = hiliteField.bind(this);
// implementation
}
});
var hiliteField = function () {
// implementation
}