Diffstat (limited to 'frontend/gamma/js/MochiKit/MochiKit.js') (more/less context) (ignore whitespace changes)
-rw-r--r-- | frontend/gamma/js/MochiKit/MochiKit.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/frontend/gamma/js/MochiKit/MochiKit.js b/frontend/gamma/js/MochiKit/MochiKit.js index 8e5be68..511e075 100644 --- a/frontend/gamma/js/MochiKit/MochiKit.js +++ b/frontend/gamma/js/MochiKit/MochiKit.js | |||
@@ -1,85 +1,82 @@ | |||
1 | /*** | 1 | /*** |
2 | 2 | ||
3 | MochiKit.MochiKit 1.5 | 3 | MochiKit.MochiKit 1.5 |
4 | 4 | ||
5 | See <http://mochikit.com/> for documentation, downloads, license, etc. | 5 | See <http://mochikit.com/> for documentation, downloads, license, etc. |
6 | 6 | ||
7 | (c) 2005 Bob Ippolito. All rights Reserved. | 7 | (c) 2005 Bob Ippolito. All rights Reserved. |
8 | 8 | ||
9 | ***/ | 9 | ***/ |
10 | 10 | ||
11 | if (typeof(MochiKit) == 'undefined') { | 11 | var MochiKit = MochiKit || {}; |
12 | MochiKit = {}; | ||
13 | } | ||
14 | 12 | ||
15 | if (typeof(MochiKit.MochiKit) == 'undefined') { | 13 | /** @id MochiKit.MochiKit */ |
16 | /** @id MochiKit.MochiKit */ | 14 | MochiKit.MochiKit = MochiKit.MochiKit || {}; |
17 | MochiKit.MochiKit = {}; | ||
18 | } | ||
19 | 15 | ||
20 | MochiKit.MochiKit.NAME = "MochiKit.MochiKit"; | 16 | MochiKit.MochiKit.NAME = "MochiKit.MochiKit"; |
21 | MochiKit.MochiKit.VERSION = "1.5"; | 17 | MochiKit.MochiKit.VERSION = "1.5"; |
18 | MochiKit.MochiKit.__export__ = false; | ||
22 | MochiKit.MochiKit.__repr__ = function () { | 19 | MochiKit.MochiKit.__repr__ = function () { |
23 | return "[" + this.NAME + " " + this.VERSION + "]"; | 20 | return "[" + this.NAME + " " + this.VERSION + "]"; |
24 | }; | 21 | }; |
25 | 22 | ||
26 | /** @id MochiKit.MochiKit.toString */ | 23 | /** @id MochiKit.MochiKit.toString */ |
27 | MochiKit.MochiKit.toString = function () { | 24 | MochiKit.MochiKit.toString = function () { |
28 | return this.__repr__(); | 25 | return this.__repr__(); |
29 | }; | 26 | }; |
30 | 27 | ||
31 | /** @id MochiKit.MochiKit.SUBMODULES */ | 28 | /** @id MochiKit.MochiKit.SUBMODULES */ |
32 | MochiKit.MochiKit.SUBMODULES = [ | 29 | MochiKit.MochiKit.SUBMODULES = [ |
33 | "Base", | 30 | "Base", |
34 | "Iter", | 31 | "Iter", |
35 | "Logging", | 32 | "Logging", |
36 | "DateTime", | 33 | "DateTime", |
37 | "Format", | 34 | "Format", |
38 | "Text", | 35 | "Text", |
39 | "Async", | 36 | "Async", |
40 | "DOM", | 37 | "DOM", |
41 | "Selector", | 38 | "Selector", |
42 | "Style", | 39 | "Style", |
43 | "LoggingPane", | 40 | "LoggingPane", |
44 | "Color", | 41 | "Color", |
45 | "Signal", | 42 | "Signal", |
46 | "Position", | 43 | "Position", |
47 | "Visual", | 44 | "Visual", |
48 | "DragAndDrop", | 45 | "DragAndDrop", |
49 | "Sortable" | 46 | "Sortable" |
50 | ]; | 47 | ]; |
51 | 48 | ||
52 | (function () { | 49 | (function () { |
53 | if (typeof(document) == "undefined") { | 50 | if (typeof(document) == "undefined") { |
54 | return; | 51 | return; |
55 | } | 52 | } |
56 | var scripts = document.getElementsByTagName("script"); | 53 | var scripts = document.getElementsByTagName("script"); |
57 | var kXHTMLNSURI = "http://www.w3.org/1999/xhtml"; | 54 | var kXHTMLNSURI = "http://www.w3.org/1999/xhtml"; |
58 | var kSVGNSURI = "http://www.w3.org/2000/svg"; | 55 | var kSVGNSURI = "http://www.w3.org/2000/svg"; |
59 | var kXLINKNSURI = "http://www.w3.org/1999/xlink"; | 56 | var kXLINKNSURI = "http://www.w3.org/1999/xlink"; |
60 | var kXULNSURI = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; | 57 | var kXULNSURI = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; |
61 | var base = null; | 58 | var base = null; |
62 | var baseElem = null; | 59 | var baseElem = null; |
63 | var allScripts = {}; | 60 | var allScripts = {}; |
64 | var i; | 61 | var i; |
65 | var src; | 62 | var src; |
66 | for (i = 0; i < scripts.length; i++) { | 63 | for (i = 0; i < scripts.length; i++) { |
67 | src = null; | 64 | src = null; |
68 | switch (scripts[i].namespaceURI) { | 65 | switch (scripts[i].namespaceURI) { |
69 | case kSVGNSURI: | 66 | case kSVGNSURI: |
70 | src = scripts[i].getAttributeNS(kXLINKNSURI, "href"); | 67 | src = scripts[i].getAttributeNS(kXLINKNSURI, "href"); |
71 | break; | 68 | break; |
72 | /* | 69 | /* |
73 | case null: // HTML | 70 | case null: // HTML |
74 | case '': // HTML | 71 | case '': // HTML |
75 | case kXHTMLNSURI: | 72 | case kXHTMLNSURI: |
76 | case kXULNSURI: | 73 | case kXULNSURI: |
77 | */ | 74 | */ |
78 | default: | 75 | default: |
79 | src = scripts[i].getAttribute("src"); | 76 | src = scripts[i].getAttribute("src"); |
80 | break; | 77 | break; |
81 | } | 78 | } |
82 | if (!src) { | 79 | if (!src) { |
83 | continue; | 80 | continue; |
84 | } | 81 | } |
85 | allScripts[src] = true; | 82 | allScripts[src] = true; |