fix binding
This commit is contained in:
parent
1150a27a06
commit
aa1f45bef8
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue