sproutcore 0.9.13 → 0.9.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +19 -0
- data/Manifest.txt +103 -26
- data/app_generators/sproutcore/templates/README +1 -1
- data/bin/sc-build +1 -1
- data/bin/sc-gen +0 -0
- data/bin/sc-ide +278 -0
- data/bin/sc-init +38 -0
- data/bin/sc-install +96 -0
- data/bin/sc-remove +94 -0
- data/bin/sc-server +4 -0
- data/bin/sc-update +94 -0
- data/bin/sproutcore +3 -14
- data/clients/sc_docs/controllers/docs.js +1 -1
- data/clients/sc_docs/models/doc.js +6 -0
- data/clients/sc_docs/views/doc_frame.js +1 -1
- data/clients/sc_test_runner/english.lproj/icons/small/next.png +0 -0
- data/clients/sc_test_runner/english.lproj/icons/small/reset.png +0 -0
- data/frameworks/sproutcore/HISTORY +34 -2
- data/frameworks/sproutcore/controllers/array.js +1 -1
- data/frameworks/sproutcore/controllers/controller.js +1 -1
- data/frameworks/sproutcore/controllers/object.js +9 -6
- data/frameworks/sproutcore/core.js +19 -4
- data/frameworks/sproutcore/english.lproj/blank.gif +0 -0
- data/frameworks/sproutcore/english.lproj/core.css +1 -0
- data/frameworks/sproutcore/english.lproj/menu.css +1 -0
- data/frameworks/sproutcore/foundation/application.js +3 -3
- data/frameworks/sproutcore/foundation/benchmark.js +1 -1
- data/frameworks/sproutcore/foundation/node_descriptor.js +13 -1
- data/frameworks/sproutcore/foundation/page.js +3 -2
- data/frameworks/sproutcore/foundation/path_module.js +33 -16
- data/frameworks/sproutcore/foundation/run_loop.js +1 -1
- data/frameworks/sproutcore/foundation/server.js +68 -18
- data/frameworks/sproutcore/foundation/string.js +1 -1
- data/frameworks/sproutcore/globals/window.js +62 -15
- data/frameworks/sproutcore/lib/core_views.rb +1 -0
- data/frameworks/sproutcore/lib/index.rhtml +4 -3
- data/frameworks/sproutcore/lib/menu_views.rb +2 -2
- data/frameworks/sproutcore/models/collection.js +122 -107
- data/frameworks/sproutcore/models/record.js +2 -2
- data/frameworks/sproutcore/panes/manager.js +1 -1
- data/frameworks/sproutcore/panes/overlay.js +3 -3
- data/frameworks/sproutcore/tests/controllers/object.rhtml +26 -0
- data/frameworks/sproutcore/tests/views/collection/incremental_rendering.rhtml +2 -2
- data/frameworks/sproutcore/views/button/disclosure.js +1 -1
- data/frameworks/sproutcore/views/collection/collection.js +19 -15
- data/frameworks/sproutcore/views/collection/source_list.js +1 -1
- data/frameworks/sproutcore/views/collection/table.js +2 -2
- data/frameworks/sproutcore/views/error_explanation.js +1 -1
- data/frameworks/sproutcore/views/field/checkbox_field.js +1 -1
- data/frameworks/sproutcore/views/field/field.js +1 -1
- data/frameworks/sproutcore/views/field/radio_field.js +1 -1
- data/frameworks/sproutcore/views/field/select_field.js +1 -1
- data/frameworks/sproutcore/views/form.js +1 -1
- data/frameworks/sproutcore/views/image.js +1 -1
- data/frameworks/sproutcore/views/menu_item.js +1 -1
- data/frameworks/sproutcore/views/popup_button.js +1 -1
- data/frameworks/sproutcore/views/popup_menu.js +1 -1
- data/frameworks/sproutcore/views/progress.js +4 -2
- data/frameworks/sproutcore/views/radio_group.js +1 -1
- data/frameworks/sproutcore/views/scroll.js +1 -1
- data/frameworks/sproutcore/views/source_list_group.js +1 -1
- data/frameworks/sproutcore/views/split.js +1 -1
- data/frameworks/sproutcore/views/tab.js +3 -1
- data/frameworks/sproutcore/views/view.js +19 -3
- data/jsdoc/README.txt +89 -57
- data/jsdoc/app/frame/Chain.js +102 -0
- data/jsdoc/app/frame/Dumper.js +144 -0
- data/jsdoc/app/frame/Hash.js +47 -0
- data/jsdoc/app/frame/Link.js +142 -0
- data/jsdoc/app/frame/Namespace.js +10 -0
- data/jsdoc/app/frame/Opt.js +134 -0
- data/jsdoc/app/frame/Reflection.js +26 -0
- data/jsdoc/app/frame/String.js +93 -0
- data/jsdoc/app/frame/Testrun.js +129 -0
- data/jsdoc/app/frame.js +33 -0
- data/jsdoc/app/handlers/FOODOC.js +26 -0
- data/jsdoc/app/handlers/XMLDOC/DomReader.js +159 -0
- data/jsdoc/app/handlers/XMLDOC/XMLDoc.js +16 -0
- data/jsdoc/app/handlers/XMLDOC/XMLParse.js +292 -0
- data/jsdoc/app/handlers/XMLDOC.js +26 -0
- data/jsdoc/app/lib/JSDOC/DocComment.js +200 -0
- data/jsdoc/app/lib/JSDOC/DocTag.js +294 -0
- data/jsdoc/app/lib/JSDOC/JsDoc.js +180 -0
- data/jsdoc/app/lib/JSDOC/JsPlate.js +100 -0
- data/jsdoc/app/lib/JSDOC/Lang.js +144 -0
- data/jsdoc/app/lib/JSDOC/Parser.js +109 -0
- data/jsdoc/app/lib/JSDOC/PluginManager.js +33 -0
- data/jsdoc/app/lib/JSDOC/Symbol.js +600 -0
- data/jsdoc/app/lib/JSDOC/SymbolSet.js +220 -0
- data/jsdoc/app/lib/JSDOC/TextStream.js +41 -0
- data/jsdoc/app/lib/JSDOC/Token.js +18 -0
- data/jsdoc/app/lib/JSDOC/TokenReader.js +323 -0
- data/jsdoc/app/lib/JSDOC/TokenStream.js +133 -0
- data/jsdoc/app/lib/JSDOC/Util.js +32 -0
- data/jsdoc/app/lib/JSDOC/Walker.js +416 -0
- data/jsdoc/app/lib/JSDOC.js +97 -0
- data/jsdoc/app/main.js +74 -0
- data/jsdoc/app/plugins/commentSrcJson.js +19 -0
- data/jsdoc/app/plugins/frameworkPrototype.js +16 -0
- data/jsdoc/app/plugins/functionCall.js +10 -0
- data/jsdoc/app/plugins/publishSrcHilite.js +62 -0
- data/jsdoc/app/plugins/sproutcoreTags.js +26 -0
- data/jsdoc/app/plugins/symbolLink.js +9 -0
- data/jsdoc/app/plugins/tagParamConfig.js +31 -0
- data/jsdoc/app/plugins/tagSynonyms.js +43 -0
- data/jsdoc/app/run.js +339 -137
- data/jsdoc/changes.txt +47 -0
- data/jsdoc/conf/sample.conf +31 -0
- data/jsdoc/java/build.xml +36 -0
- data/jsdoc/java/build_1.4.xml +36 -0
- data/jsdoc/java/classes/js.jar +0 -0
- data/jsdoc/java/src/JsDebugRun.java +21 -0
- data/jsdoc/java/src/JsRun.java +21 -0
- data/jsdoc/jsdebug.jar +0 -0
- data/jsdoc/jsrun.jar +0 -0
- data/jsdoc/t/TestDoc.js +144 -0
- data/jsdoc/t/runner.js +13 -0
- data/jsdoc/templates/sproutcore/allclasses.tmpl +17 -0
- data/jsdoc/templates/sproutcore/allfiles.tmpl +56 -0
- data/jsdoc/templates/sproutcore/class.tmpl +408 -326
- data/jsdoc/templates/sproutcore/index.tmpl +30 -31
- data/jsdoc/templates/sproutcore/publish.js +173 -81
- data/jsdoc/templates/sproutcore/static/default.css +191 -0
- data/jsdoc/templates/sproutcore/static/header.html +2 -0
- data/jsdoc/templates/sproutcore/static/index.html +19 -0
- data/jsdoc/templates/sproutcore/symbol.tmpl +35 -0
- data/jsdoc/test/addon.js +24 -0
- data/jsdoc/test/anon_inner.js +14 -0
- data/jsdoc/test/augments.js +31 -0
- data/jsdoc/test/augments2.js +26 -0
- data/jsdoc/test/borrows.js +41 -0
- data/jsdoc/test/borrows2.js +23 -0
- data/jsdoc/test/config.js +22 -0
- data/jsdoc/test/constructs.js +18 -0
- data/jsdoc/test/encoding.js +10 -0
- data/jsdoc/test/encoding_other.js +12 -0
- data/jsdoc/test/functions_anon.js +39 -0
- data/jsdoc/test/functions_nested.js +33 -0
- data/jsdoc/test/global.js +13 -0
- data/jsdoc/test/globals.js +25 -0
- data/jsdoc/test/ignore.js +10 -0
- data/jsdoc/test/inner.js +16 -0
- data/jsdoc/test/jsdoc_test.js +477 -0
- data/jsdoc/test/lend.js +33 -0
- data/jsdoc/test/memberof.js +20 -0
- data/jsdoc/test/memberof_constructor.js +15 -0
- data/jsdoc/test/name.js +19 -0
- data/jsdoc/test/namespace_nested.js +23 -0
- data/jsdoc/test/nocode.js +13 -0
- data/jsdoc/test/oblit_anon.js +20 -0
- data/jsdoc/test/overview.js +20 -0
- data/jsdoc/test/param_inline.js +37 -0
- data/jsdoc/test/params_optional.js +8 -0
- data/jsdoc/test/prototype.js +17 -0
- data/jsdoc/test/prototype_nested.js +9 -0
- data/jsdoc/test/prototype_oblit.js +13 -0
- data/jsdoc/test/prototype_oblit_constructor.js +24 -0
- data/jsdoc/test/public.js +10 -0
- data/jsdoc/test/shared.js +42 -0
- data/jsdoc/test/shared2.js +2 -0
- data/jsdoc/test/shortcuts.js +22 -0
- data/jsdoc/test/static_this.js +13 -0
- data/jsdoc/test/synonyms.js +23 -0
- data/jsdoc/test/tosource.js +23 -0
- data/jsdoc/test/variable_redefine.js +14 -0
- data/jsdoc/test.js +304 -0
- data/lib/sproutcore/build_tools/resource_builder.rb +6 -1
- data/lib/sproutcore/bundle_installer.rb +268 -0
- data/lib/sproutcore/jsdoc.rb +7 -6
- data/lib/sproutcore/library.rb +38 -0
- data/lib/sproutcore/merb/bundle_controller.rb +8 -4
- data/lib/sproutcore/version.rb +1 -1
- data/lib/sproutcore.rb +1 -1
- data/script/destroy +0 -0
- data/script/generate +0 -0
- data/script/txt2html +0 -0
- metadata +117 -29
- data/clients/view_builder/core.js +0 -19
- data/clients/view_builder/english.lproj/body.css +0 -149
- data/clients/view_builder/english.lproj/body.rhtml +0 -18
- data/clients/view_builder/english.lproj/strings.js +0 -14
- data/clients/view_builder/main.js +0 -37
- data/jsdoc/app/DocFile.js +0 -137
- data/jsdoc/app/DocTag.js +0 -110
- data/jsdoc/app/Doclet.js +0 -63
- data/jsdoc/app/Dumper.js +0 -143
- data/jsdoc/app/JsDoc.js +0 -103
- data/jsdoc/app/JsHilite.js +0 -45
- data/jsdoc/app/JsIO.js +0 -163
- data/jsdoc/app/JsParse.js +0 -385
- data/jsdoc/app/JsPlate.js +0 -130
- data/jsdoc/app/JsTestrun.js +0 -129
- data/jsdoc/app/JsToke.js +0 -564
- data/jsdoc/app/Symbol.js +0 -298
- data/jsdoc/app/Transformer.js +0 -14
- data/jsdoc/app/Util.js +0 -97
- data/jsdoc/app/js.jar +0 -0
- data/jsdoc/plugins/min.js +0 -316
- data/jsdoc/plugins/strip.js +0 -20
- data/jsdoc/templates/sproutcore/default.css +0 -191
- data/jsdoc/templates/sproutcore/index.html +0 -13
- data/jsdoc/templates/sproutcore/prototype.js +0 -4186
- data/jsdoc/templates/sproutcore/splash.html +0 -7
data/jsdoc/app/Symbol.js
DELETED
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileOverview
|
|
3
|
-
* @name Symbol
|
|
4
|
-
* @author Michael Mathews micmath@gmail.com
|
|
5
|
-
* @url $HeadURL: https://jsdoc-toolkit.googlecode.com/svn/tags/jsdoc_toolkit-1.4.0b/app/Symbol.js $
|
|
6
|
-
* @revision $Id: Symbol.js 340 2007-11-14 23:24:27Z micmath $
|
|
7
|
-
* @license <a href="http://en.wikipedia.org/wiki/MIT_License">X11/MIT License</a>
|
|
8
|
-
* (See the accompanying README file for full details.)
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
SYM = {
|
|
12
|
-
OBJECT: "OBJECT",
|
|
13
|
-
FUNCTION: "FUNCTION",
|
|
14
|
-
CONSTRUCTOR: "CONSTRUCTOR",
|
|
15
|
-
VIRTUAL: "VIRTUAL",
|
|
16
|
-
EVENT: "EVENT"
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
@class Represents an atomic unit of code.
|
|
21
|
-
@constructor
|
|
22
|
-
*/
|
|
23
|
-
function Symbol(name, params, isa, comment) {
|
|
24
|
-
if (isa == "META") {
|
|
25
|
-
if (comment.indexOf("/**#@+") == 0) { // start of shared doclet
|
|
26
|
-
Symbol.shared = Doclet.unwrapComment(comment.replace("/**#@+", "/**"));
|
|
27
|
-
}
|
|
28
|
-
else if (comment.indexOf("/**#@-") == 0) { // end of shared doclet
|
|
29
|
-
Symbol.shared = "";
|
|
30
|
-
}
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
comment = Symbol.shared+"\n"+Doclet.unwrapComment(comment);
|
|
34
|
-
|
|
35
|
-
this.name = name;
|
|
36
|
-
this.params = (params || []);
|
|
37
|
-
this.isa = (isa || SYM.OBJECT);
|
|
38
|
-
this.type = "";
|
|
39
|
-
this.alias = name;
|
|
40
|
-
this.desc = "";
|
|
41
|
-
this.classDesc = "";
|
|
42
|
-
this.memberof = "";
|
|
43
|
-
this.since = "";
|
|
44
|
-
this.version = "";
|
|
45
|
-
this.deprecated = "";
|
|
46
|
-
this.augments = [];
|
|
47
|
-
this.inherits = [];
|
|
48
|
-
this._inheritsFrom = [];
|
|
49
|
-
this.properties = [];
|
|
50
|
-
this.methods = [];
|
|
51
|
-
this.file = {};
|
|
52
|
-
this.returns = [];
|
|
53
|
-
this.exceptions = [];
|
|
54
|
-
this.events = [];
|
|
55
|
-
this.doc = new Doclet(comment);
|
|
56
|
-
this.see = [];
|
|
57
|
-
|
|
58
|
-
// move certain data out of the tags and into the Symbol
|
|
59
|
-
var overviews;
|
|
60
|
-
if ((overviews = this.doc.getTag("overview")) && overviews.length) {
|
|
61
|
-
var libraries;
|
|
62
|
-
if ((libraries = this.doc.getTag("name")) && libraries.length) {
|
|
63
|
-
this.name = libraries[0].desc;
|
|
64
|
-
this.doc._dropTag("name");
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
this.name = Util.fileName(this.alias)
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
this.desc = overviews[0].desc;
|
|
71
|
-
this.doc._dropTag("overview");
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
|
|
75
|
-
var since;
|
|
76
|
-
if ((since = this.doc.getTag("since")) && since.length) {
|
|
77
|
-
this.since = since[0].desc;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
var version;
|
|
81
|
-
if ((version = this.doc.getTag("version")) && version.length) {
|
|
82
|
-
this.version = version[0].desc;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
var deprecated;
|
|
86
|
-
if ((deprecated = this.doc.getTag("deprecated")) && deprecated.length) {
|
|
87
|
-
this.deprecated = deprecated[0];
|
|
88
|
-
this.doc._dropTag("deprecated");
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
var see;
|
|
92
|
-
if ((see = this.doc.getTag("see")) && version.length) {
|
|
93
|
-
this.see = see;
|
|
94
|
-
this.doc._dropTag("see");
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
var descs;
|
|
98
|
-
if ((descs = this.doc.getTag("desc")) && descs.length) {
|
|
99
|
-
this.desc = descs.join("\n"); // multiple descriptions are concatenated into one
|
|
100
|
-
this.doc._dropTag("desc");
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
var params;
|
|
104
|
-
if ((params = this.doc.getTag("param")) && params.length) { // user defined params override those defined by parser
|
|
105
|
-
this.params = params;
|
|
106
|
-
this.doc._dropTag("param");
|
|
107
|
-
}
|
|
108
|
-
else { // promote parser params into DocTag objects
|
|
109
|
-
for (var i = 0; i < this.params.length; i++) {
|
|
110
|
-
this.params[i] = new DocTag("param "+this.params[i]);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
var constructors;
|
|
115
|
-
if ((constructors = this.doc.getTag("constructor")) && constructors.length) {
|
|
116
|
-
this.isa = SYM.CONSTRUCTOR;
|
|
117
|
-
this.doc._dropTag("constructor");
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
var functions;
|
|
121
|
-
if ((functions = this.doc.getTag("function")) && functions.length) {
|
|
122
|
-
this.isa = SYM.FUNCTION;
|
|
123
|
-
this.doc._dropTag("function");
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
var events;
|
|
127
|
-
if ((events = this.doc.getTag("event")) && events.length) {
|
|
128
|
-
this.isa = SYM.EVENT;
|
|
129
|
-
this.doc._dropTag("event");
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
var methods;
|
|
133
|
-
if ((functions = this.doc.getTag("method")) && functions.length) {
|
|
134
|
-
this.isa = SYM.FUNCTION;
|
|
135
|
-
this.doc._dropTag("method");
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
var names;
|
|
139
|
-
if ((names = this.doc.getTag("name")) && names.length) {
|
|
140
|
-
this.name = names[0].desc;
|
|
141
|
-
this.doc._dropTag("name");
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
var properties;
|
|
145
|
-
if ((properties = this.doc.getTag("property")) && properties.length) {
|
|
146
|
-
for (var i = 0; i < properties.length; i++) {
|
|
147
|
-
properties[i].alias = this.alias+"."+properties[i].name;
|
|
148
|
-
this.properties.push(properties[i]);
|
|
149
|
-
}
|
|
150
|
-
this.doc._dropTag("property");
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
var returns;
|
|
154
|
-
if ((returns = this.doc.getTag("return")) && returns.length) {
|
|
155
|
-
for (var i = 0; i < returns.length; i++) {
|
|
156
|
-
this.returns.push(returns[i]);
|
|
157
|
-
}
|
|
158
|
-
this.doc._dropTag("return");
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
var exceptions;
|
|
162
|
-
if ((exceptions = this.doc.getTag("throws")) && exceptions.length) {
|
|
163
|
-
for (var i = 0; i < exceptions.length; i++) {
|
|
164
|
-
this.exceptions.push(exceptions[i]);
|
|
165
|
-
}
|
|
166
|
-
this.doc._dropTag("throws");
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
if (this.is("VIRTUAL")) this.isa = SYM.OBJECT;
|
|
170
|
-
|
|
171
|
-
var types;
|
|
172
|
-
if ((types = this.doc.getTag("type")) && types.length) {
|
|
173
|
-
if (this.is("OBJECT"))
|
|
174
|
-
this.type = (types[0].desc || ""); // multiple type tags are ignored
|
|
175
|
-
this.doc._dropTag("type");
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
if (this.doc.getTag("static").length > 0) {
|
|
179
|
-
this.isStatic = true;
|
|
180
|
-
this.doc._dropTag("static");
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
if (this.doc.getTag("private").length > 0) {
|
|
184
|
-
this.isPrivate = true;
|
|
185
|
-
this.doc._dropTag("private");
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
var classes;
|
|
189
|
-
if ((classes = this.doc.getTag("class")) && classes.length) {
|
|
190
|
-
if (this.doc.getTag("static").length > 0) this.isStatic = true;
|
|
191
|
-
this.isa = "CONSTRUCTOR"; // a class tag implies a conctuctor doclet
|
|
192
|
-
|
|
193
|
-
this.classDesc += "\n"+classes[0].desc; // multiple class tags are concatenated
|
|
194
|
-
//this.doc._dropTag("class");
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
var inherits;
|
|
198
|
-
if ((inherits = this.doc.getTag("inherits")) && inherits.length) {
|
|
199
|
-
for (var i = 0; i < inherits.length; i++) {
|
|
200
|
-
this.inherits.push(inherits[i].desc);
|
|
201
|
-
}
|
|
202
|
-
this.doc._dropTag("inherits");
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
var augments;
|
|
206
|
-
if ((augments = this.doc.getTag("augments")) && augments.length) {
|
|
207
|
-
for (var i = 0; i < augments.length; i++) {
|
|
208
|
-
this.augments.push(augments[i].desc);
|
|
209
|
-
}
|
|
210
|
-
this.doc._dropTag("augments");
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
Symbol.index[this.alias] = this;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
Symbol.shared = ""; // holds shared doclets
|
|
217
|
-
Symbol.index = {};
|
|
218
|
-
|
|
219
|
-
Symbol.prototype.is = function(what) {
|
|
220
|
-
return this.isa === SYM[what];
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
/** Generate a comma separated list of the parameters. */
|
|
224
|
-
Symbol.prototype.signature = function() {
|
|
225
|
-
var result = [];
|
|
226
|
-
for (var i = 0; i < this.params.length; i++) {
|
|
227
|
-
if (this.params[i].name.indexOf(".") == -1) // config information does not appear in the signature
|
|
228
|
-
result.push(this.params[i].name);
|
|
229
|
-
}
|
|
230
|
-
return result.join(", ");
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
Symbol.prototype.hasMethod = function(name) {
|
|
234
|
-
for (var i = 0; i < this.methods.length; i++) {
|
|
235
|
-
if (this.methods[i].name == name) return true
|
|
236
|
-
}
|
|
237
|
-
return false;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
Symbol.prototype.hasEvent = function(name) {
|
|
241
|
-
for (var i = 0; i < this.events.length; i++) {
|
|
242
|
-
if (this.events[i].name == name) return true
|
|
243
|
-
}
|
|
244
|
-
return false;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
Symbol.prototype.hasProperty = function(name) {
|
|
248
|
-
for (var i = 0; i < this.properties.length; i++) {
|
|
249
|
-
if (this.properties[i].name == name) return true
|
|
250
|
-
}
|
|
251
|
-
return false;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
Array.prototype.isUnique = function() {
|
|
255
|
-
var l = this.length;
|
|
256
|
-
for(var i = 0; i < l; i++ ) {
|
|
257
|
-
if (this.lastIndexOf(this[i]) > i) return false;
|
|
258
|
-
}
|
|
259
|
-
return true;
|
|
260
|
-
};
|
|
261
|
-
|
|
262
|
-
Symbol.prototype.getInheritedMethods = function(r) {
|
|
263
|
-
var inherited = [];
|
|
264
|
-
for(var i = 0; i < this.inherits.length; i++) {
|
|
265
|
-
inherited.push(this.file.fileGroup.getSymbol(this.inherits[i]));
|
|
266
|
-
}
|
|
267
|
-
var result = this.methods.concat(inherited);
|
|
268
|
-
for(var i = 0; i < this.augments.length; i++) {
|
|
269
|
-
var contributer = this.file.fileGroup.getSymbol(this.augments[i]);
|
|
270
|
-
if (contributer) {
|
|
271
|
-
this._inheritsFrom.push(contributer.alias);
|
|
272
|
-
|
|
273
|
-
if (!this._inheritsFrom.isUnique()) {
|
|
274
|
-
LOG.warn("Circular reference: "+this.alias+" inherits from the same symbol more than once.");
|
|
275
|
-
}
|
|
276
|
-
else {
|
|
277
|
-
result = result.concat(contributer.getInheritedMethods(true));
|
|
278
|
-
this._inheritsFrom = [];
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
// remove overridden
|
|
283
|
-
for (var i = 0; i < result.length; i++) {
|
|
284
|
-
var j = i;
|
|
285
|
-
while (++j < result.length) {
|
|
286
|
-
if (result[j].name == result[i].name) result.splice(j, 1);
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
if (!r) { // not recursing
|
|
291
|
-
var s = this;
|
|
292
|
-
function notLocal(element, index, array) {
|
|
293
|
-
return (!s.hasMethod(element.name));
|
|
294
|
-
}
|
|
295
|
-
result = result.filter(notLocal);
|
|
296
|
-
}
|
|
297
|
-
return result;
|
|
298
|
-
}
|
data/jsdoc/app/Transformer.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** @class Use a style sheet to transform XML. Requires Rhino. */
|
|
2
|
-
function Transformer(xsl) { //like: var t = new Transformer("data/teststyle.xsl");
|
|
3
|
-
var xsltFile = new Packages.java.io.File(xsl);
|
|
4
|
-
var xsltSource = new Packages.javax.xml.transform.stream.StreamSource(xsltFile);
|
|
5
|
-
this.transformer = Packages.javax.xml.transform.TransformerFactory.newInstance().newTransformer(xsltSource);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
Transformer.prototype.transform = function(xml, out) { //like: t.transform("data/testdata.xml", "data/testout.txt");
|
|
9
|
-
var xmlFile = new Packages.java.io.File(xml);
|
|
10
|
-
var resFile = new Packages.java.io.File(out);
|
|
11
|
-
var xmlSource = new Packages.javax.xml.transform.stream.StreamSource(xmlFile);
|
|
12
|
-
var result = new Packages.javax.xml.transform.stream.StreamResult(resFile);
|
|
13
|
-
this.transformer.transform(xmlSource, result);
|
|
14
|
-
}
|
data/jsdoc/app/Util.js
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileOverview
|
|
3
|
-
* @name Util
|
|
4
|
-
* @author Michael Mathews micmath@gmail.com
|
|
5
|
-
* @url $HeadURL: https://jsdoc-toolkit.googlecode.com/svn/tags/jsdoc_toolkit-1.4.0b/app/Util.js $
|
|
6
|
-
* @revision $Id: Util.js 244 2007-09-23 09:42:21Z micmath $
|
|
7
|
-
* @license <a href="http://en.wikipedia.org/wiki/MIT_License">X11/MIT License</a>
|
|
8
|
-
* (See the accompanying README file for full details.)
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @class Various utility methods used by JsDoc.
|
|
13
|
-
* @static
|
|
14
|
-
*/
|
|
15
|
-
Util = {
|
|
16
|
-
/**
|
|
17
|
-
* Turn a path into just the name of the file.
|
|
18
|
-
* @static
|
|
19
|
-
* @param {string} path
|
|
20
|
-
* @return {string} The fileName portion of the path.
|
|
21
|
-
*/
|
|
22
|
-
fileName: function(path) {
|
|
23
|
-
var nameStart = Math.max(path.lastIndexOf("/")+1, path.lastIndexOf("\\")+1, 0);
|
|
24
|
-
return path.substring(nameStart);
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Turn a path into just the directory part.
|
|
29
|
-
* @static
|
|
30
|
-
* @param {string} path
|
|
31
|
-
* @return {string} The directory part of the path.
|
|
32
|
-
*/
|
|
33
|
-
dir: function(path) {
|
|
34
|
-
var nameStart = Math.max(path.lastIndexOf("/")+1, path.lastIndexOf("\\")+1, 0);
|
|
35
|
-
return path.substring(0, nameStart-1);
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Get commandline option values.
|
|
40
|
-
* @static
|
|
41
|
-
* @param {Array} args Commandline arguments. Like ["-a=xml", "-b", "--class=new", "--debug"]
|
|
42
|
-
* @param {object} optNames Map short names to long names. Like {a:"accept", b:"backtrace", c:"class", d:"debug"}.
|
|
43
|
-
* @return {object} Short names and values. Like {a:"xml", b:true, c:"new", d:true}
|
|
44
|
-
*/
|
|
45
|
-
getOptions: function(args, optNames) {
|
|
46
|
-
var opt = {"_": []}; // the unnamed option allows multiple values
|
|
47
|
-
for (var i = 0; i < args.length; i++) {
|
|
48
|
-
var arg = new String(args[i]);
|
|
49
|
-
var name;
|
|
50
|
-
var value;
|
|
51
|
-
if (arg.charAt(0) == "-") {
|
|
52
|
-
if (arg.charAt(1) == "-") { // it's a longname like --foo
|
|
53
|
-
arg = arg.substring(2);
|
|
54
|
-
var m = arg.split("=");
|
|
55
|
-
name = m.shift();
|
|
56
|
-
value = m.shift();
|
|
57
|
-
if (typeof value == "undefined") value = true;
|
|
58
|
-
|
|
59
|
-
for (var n in optNames) { // convert it to a shortname
|
|
60
|
-
if (name == optNames[n]) {
|
|
61
|
-
name = n;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
else { // it's a shortname like -f
|
|
66
|
-
arg = arg.substring(1);
|
|
67
|
-
var m = arg.split("=");
|
|
68
|
-
name = m.shift();
|
|
69
|
-
value = m.shift();
|
|
70
|
-
if (typeof value == "undefined") value = true;
|
|
71
|
-
|
|
72
|
-
for (var n in optNames) { // find the matching key
|
|
73
|
-
if (name == n || name+'[]' == n) {
|
|
74
|
-
name = n;
|
|
75
|
-
break;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
if (name.match(/(.+)\[\]$/)) { // it's an array type like n[]
|
|
80
|
-
name = RegExp.$1;
|
|
81
|
-
if (!opt[name]) opt[name] = [];
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
if (opt[name] && opt[name].push) {
|
|
85
|
-
opt[name].push(value);
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
opt[name] = value;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
else { // not associated with any optname
|
|
92
|
-
opt._.push(args[i]);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return opt;
|
|
96
|
-
}
|
|
97
|
-
}
|
data/jsdoc/app/js.jar
DELETED
|
Binary file
|