cleanup
This commit is contained in:
parent
0d5de4332f
commit
68d1861671
1 changed files with 5 additions and 8 deletions
|
@ -99,7 +99,7 @@
|
|||
var sizes = {
|
||||
small: 20,
|
||||
medium: 24,
|
||||
large: 28,
|
||||
large: 28
|
||||
};
|
||||
return sizes[size];
|
||||
};
|
||||
|
@ -176,10 +176,7 @@
|
|||
var dfd = new $.Deferred();
|
||||
var script = document.createElement('script');
|
||||
script.onload = function() {
|
||||
//setTimeout(function() {
|
||||
console.log('onload', src)
|
||||
dfd.resolve();
|
||||
//}, 1000)
|
||||
dfd.resolve();
|
||||
};
|
||||
script.src = Ox.UI.PATH + src;
|
||||
script.type = 'text/javascript';
|
||||
|
@ -191,7 +188,7 @@
|
|||
promises = [];
|
||||
// fixme: find a better way to not wait for flags
|
||||
data = data.filter(function(image) {
|
||||
return !Ox.startsWith(image, 'svg/ox.map/')
|
||||
return !Ox.startsWith(image, 'svg/ox.map/');
|
||||
});
|
||||
data.forEach(function(src) {
|
||||
if (/\.js$/(src)) {
|
||||
|
|
Loading…
Reference in a new issue