| author | veltr |
| Thu, 19 Apr 2012 19:20:41 +0200 | |
| branch | new-model |
| changeset 872 | d777d05a16e4 |
| parent 868 | a525cc2214e7 |
| child 875 | 43629caa77bc |
| permissions | -rw-r--r-- |
|
358
430c1a7a09de
got rid of useless LdtPlayer.js -moved the necessary lines of code in main.js
hamidouk
parents:
diff
changeset
|
1 |
/* main file */ |
| 842 | 2 |
// Why is it called main ? It only loads the libs ! |
|
520
fe008e95a716
added jsdoc support, and a script to generate the docs.
hamidouk
parents:
511
diff
changeset
|
3 |
|
| 866 | 4 |
if(window.IriSP === undefined && window.__IriSP === undefined) { |
5 |
/** |
|
6 |
@class |
|
7 |
the object under which everything goes. |
|
8 |
*/ |
|
9 |
IriSP = {}; |
|
10 |
||
11 |
/** Alias to IriSP for backward compatibility */ |
|
12 |
__IriSP = IriSP; |
|
|
358
430c1a7a09de
got rid of useless LdtPlayer.js -moved the necessary lines of code in main.js
hamidouk
parents:
diff
changeset
|
13 |
} |
|
430c1a7a09de
got rid of useless LdtPlayer.js -moved the necessary lines of code in main.js
hamidouk
parents:
diff
changeset
|
14 |
|
| 866 | 15 |
/* underscore comes bundled with the player and we need |
16 |
it ASAP, so load it that way |
|
17 |
*/ |
|
|
743
69a9969daa41
better defaults - paths are now computed at run-time.
hamidouk
parents:
662
diff
changeset
|
18 |
|
|
69a9969daa41
better defaults - paths are now computed at run-time.
hamidouk
parents:
662
diff
changeset
|
19 |
IriSP._ = window._.noConflict(); |
|
69a9969daa41
better defaults - paths are now computed at run-time.
hamidouk
parents:
662
diff
changeset
|
20 |
IriSP.underscore = IriSP._; |
|
69a9969daa41
better defaults - paths are now computed at run-time.
hamidouk
parents:
662
diff
changeset
|
21 |
|
| 842 | 22 |
IriSP.getLib = function(lib) { |
23 |
return ( |
|
24 |
IriSP.libFiles.useCdn && typeof IriSP.libFiles.cdn[lib] == "string" |
|
25 |
? IriSP.libFiles.cdn[lib] |
|
26 |
: ( |
|
27 |
typeof IriSP.libFiles.locations[lib] == "string" |
|
28 |
? IriSP.libFiles.locations[lib] |
|
29 |
: ( |
|
30 |
typeof IriSP.libFiles.inDefaultDir[lib] == "string" |
|
31 |
? IriSP.libFiles.defaultDir + IriSP.libFiles.inDefaultDir[lib] |
|
32 |
: null |
|
33 |
) |
|
34 |
) |
|
35 |
) |
|
36 |
} |