fix binding

This commit is contained in:
rlx 2014-09-20 12:29:03 +02:00
parent 1150a27a06
commit aa1f45bef8

View file

@ -27,7 +27,7 @@ Ox.History = function(options) {
if (!$element) { if (!$element) {
$element = Ox.Element(); $element = Ox.Element();
} }
$element.bindEvent.apply(this, arguments); $element.bindEvent.apply($element, arguments);
}, },
clear: function() { clear: function() {
history = []; history = [];
@ -54,7 +54,7 @@ Ox.History = function(options) {
}, },
unbindEvent: function() { unbindEvent: function() {
$element && $element.unbindEvent.apply(this, arguments); $element && $element.unbindEvent.apply($element, arguments);
}, },
undo: function() { undo: function() {
if (position > 0) { if (position > 0) {