updateElement

This commit is contained in:
j 2014-05-17 13:45:57 +02:00
commit 877e867d03
35 changed files with 516 additions and 314 deletions

View file

@ -7,16 +7,16 @@ oml.ui.viewer = function() {
that = Ox.Element()
.bindEvent({
oml_item: function(data) {
that.update();
that.updateElement();
},
oml_itemview: function(data) {
that.update();
that.updateElement();
}
}),
$iframe;
that.update = function() {
that.updateElement = function() {
if (ui.item && ui.itemView == 'book') {
$iframe = $iframe || Ox.Element('<iframe>').css({
width: '100%',
@ -30,6 +30,6 @@ oml.ui.viewer = function() {
return that;
};
return that.update();
return that.updateElement();
};