Ox.loadFile -> Ox.getFile

This commit is contained in:
rolux 2012-06-17 15:37:21 +02:00
parent 77adfbf7b8
commit 8d8e087e3d
2 changed files with 6 additions and 6 deletions

View file

@ -96,7 +96,7 @@ Ox.load.UI = function(options, callback) {
/*
// SVG transform performs worse than CSS transform
var src = Ox.PATH + 'Ox.UI/themes/' + options.theme + '/svg/symbolLoadingAnimated.svg'
Ox.loadFile(src, function() {
Ox.getFile(src, function() {
Ox.$('<img>')
.attr({
src: src
@ -116,7 +116,7 @@ Ox.load.UI = function(options, callback) {
var deg = 0,
element,
src = Ox.PATH + 'Ox.UI/themes/' + options.theme + '/svg/symbolLoading.svg'
Ox.loadFile(src, function() {
Ox.getFile(src, function() {
element = Ox.$('<img>')
.attr({
src: src
@ -156,7 +156,7 @@ Ox.load.UI = function(options, callback) {
isInternetExplorer ? browsers.pop() : browsers.shift();
browsers.forEach(function(browser) {
browser.src = Ox.PATH + 'Ox.UI/png/browser' + browser.name.replace(' ', '') + '128.png';
Ox.loadFile(browser.src, function() {
Ox.getFile(browser.src, function() {
++counter == browsers.length && showIcons();
});
});
@ -206,7 +206,7 @@ Ox.load.UI = function(options, callback) {
function loadFiles() {
Ox.loadFile(Ox.PATH + '/Ox.UI/jquery/jquery.js', function() {
Ox.getFile(Ox.PATH + '/Ox.UI/jquery/jquery.js', function() {
initUI();
Ox.getJSON(Ox.UI.PATH + 'json/Ox.UI.files.json?' + Ox.VERSION, function(files) {
var promises = [], themes = {};
@ -220,7 +220,7 @@ Ox.load.UI = function(options, callback) {
dfd.resolve();
});
} else {
Ox.loadFile(Ox.PATH + file, function() {
Ox.getFile(Ox.PATH + file, function() {
dfd.resolve();
});
}

View file

@ -123,7 +123,7 @@ Ox.load = function() {
}
length = Ox.len(modules);
Ox.forEach(modules, function(options, module) {
Ox.loadFile(
Ox.getFile(
Ox.PATH + 'Ox.' + module + '/Ox.' + module + '.js',
function() {
Ox.load[module](options, function(s) {