make jslint happy

This commit is contained in:
j 2011-04-23 16:55:14 +02:00
parent d4a57539de
commit 1ac454b4dd

View file

@ -184,14 +184,18 @@ Provides function Ox.UI([options], callback) that fires when
}, },
attr: function(obj) { attr: function(obj) {
for (var key in obj) { for (var key in obj) {
if (obj.hasOwnProperty(key)) {
this[0].setAttribute(key, obj[key]); this[0].setAttribute(key, obj[key]);
} }
}
return this; return this;
}, },
css: function(obj) { css: function(obj) {
for (var key in obj) { for (var key in obj) {
if (obj.hasOwnProperty(key)) {
this[0].style[key] = obj[key]; this[0].style[key] = obj[key];
} }
}
return this; return this;
}, },
html: function(str) { html: function(str) {
@ -206,13 +210,13 @@ Provides function Ox.UI([options], callback) that fires when
} }
function start() { function start() {
console.log('start') console.log('start');
var image = new Image(), var image = new Image(),
src = path + 'svg/ox.ui.classic/symbolLoading.svg'; src = path + 'svg/ox.ui.classic/symbolLoading.svg';
image.onload = function() { image.onload = function() {
element('<img>') element('<img>')
.attr({ .attr({
src: src, src: src
}) })
.css(css) .css(css)
.css({ .css({
@ -220,7 +224,7 @@ Provides function Ox.UI([options], callback) that fires when
height: '32px' height: '32px'
}) })
.mousedown(function(e) { .mousedown(function(e) {
e.preventDefault() e.preventDefault();
}) })
.appendTo(div); .appendTo(div);
}; };
@ -228,7 +232,7 @@ Provides function Ox.UI([options], callback) that fires when
} }
function stop() { function stop() {
console.log('stop') console.log('stop');
var counter = 0, var counter = 0,
message = 'Browser not supported, use ' + userAgents.map(function(userAgent, i) { message = 'Browser not supported, use ' + userAgents.map(function(userAgent, i) {
return userAgent.name + ( return userAgent.name + (
@ -271,7 +275,7 @@ Provides function Ox.UI([options], callback) that fires when
position: 'absolute', position: 'absolute',
left: (i * 72) + 'px', left: (i * 72) + 'px',
width: '72px', width: '72px',
height: '72px', height: '72px'
}) })
.appendTo(box); .appendTo(box);
element('<img>') element('<img>')