cosmetic changes
This commit is contained in:
parent
335c374b73
commit
812e95d740
1 changed files with 6 additions and 8 deletions
|
@ -93,16 +93,14 @@ Ox.Element = function(options, self) {
|
||||||
// create public object
|
// create public object
|
||||||
var that = new Ox.JQueryElement($(self.options.element || '<div>'))
|
var that = new Ox.JQueryElement($(self.options.element || '<div>'))
|
||||||
.addClass('OxElement')
|
.addClass('OxElement')
|
||||||
.on({
|
.on(Ox.extend({
|
||||||
mousedown: mousedown,
|
mousedown: mousedown,
|
||||||
mousewheel: mousewheel
|
mousewheel: mousewheel
|
||||||
});
|
}, self.options.element == '<iframe>' ? {
|
||||||
|
load: function() {
|
||||||
if (self.options.element == '<iframe>') {
|
|
||||||
that.on('load', function() {
|
|
||||||
Ox.Message.post(that, 'init', {id: that.oxid});
|
Ox.Message.post(that, 'init', {id: that.oxid});
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
} : {}));
|
||||||
|
|
||||||
setTooltip();
|
setTooltip();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue