From aa1f45bef837d2c801a967a314094a36ef7daf34 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 20 Sep 2014 12:29:03 +0200 Subject: [PATCH] fix binding --- source/Ox.UI/js/Core/History.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Core/History.js b/source/Ox.UI/js/Core/History.js index 998448a0..423d467d 100644 --- a/source/Ox.UI/js/Core/History.js +++ b/source/Ox.UI/js/Core/History.js @@ -27,7 +27,7 @@ Ox.History = function(options) { if (!$element) { $element = Ox.Element(); } - $element.bindEvent.apply(this, arguments); + $element.bindEvent.apply($element, arguments); }, clear: function() { history = []; @@ -54,7 +54,7 @@ Ox.History = function(options) { }, unbindEvent: function() { - $element && $element.unbindEvent.apply(this, arguments); + $element && $element.unbindEvent.apply($element, arguments); }, undo: function() { if (position > 0) {