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) {
$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) {