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