make jslint happy
This commit is contained in:
parent
d4a57539de
commit
1ac454b4dd
1 changed files with 11 additions and 7 deletions
|
@ -184,13 +184,17 @@ Provides function Ox.UI([options], callback) that fires when
|
|||
},
|
||||
attr: function(obj) {
|
||||
for (var key in obj) {
|
||||
this[0].setAttribute(key, obj[key]);
|
||||
if (obj.hasOwnProperty(key)) {
|
||||
this[0].setAttribute(key, obj[key]);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
},
|
||||
css: function(obj) {
|
||||
for (var key in obj) {
|
||||
this[0].style[key] = obj[key];
|
||||
if (obj.hasOwnProperty(key)) {
|
||||
this[0].style[key] = obj[key];
|
||||
}
|
||||
}
|
||||
return this;
|
||||
},
|
||||
|
@ -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>')
|
||||
|
|
Loading…
Reference in a new issue