make 'this' work in event handlers
This commit is contained in:
parent
dfd2787438
commit
3597b8c60c
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ Ox.Element = function(options, self) {
|
||||||
|
|
||||||
function bind(action, event, callback) {
|
function bind(action, event, callback) {
|
||||||
self.$eventHandler[action]('ox_' + event, function(event, data) {
|
self.$eventHandler[action]('ox_' + event, function(event, data) {
|
||||||
callback(Ox.extend({
|
callback.call(that, Ox.extend({
|
||||||
_element: that.$element,
|
_element: that.$element,
|
||||||
_event: event
|
_event: event
|
||||||
}, data));
|
}, data));
|
||||||
|
|
Loading…
Reference in a new issue