sproutcore 1.6.0.rc.1-x86-mingw32 → 1.6.0.rc.2-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (217) hide show
  1. data/CHANGELOG +31 -6
  2. data/{History.txt → History.rdoc} +0 -0
  3. data/{README.txt → README.rdoc} +3 -2
  4. data/Rakefile +15 -15
  5. data/{Todo.txt → Todo.rdoc} +0 -0
  6. data/VERSION.yml +1 -1
  7. data/lib/buildtasks/manifest.rake +11 -4
  8. data/lib/buildtasks/target.rake +20 -23
  9. data/lib/frameworks/sproutcore/CHANGELOG.md +36 -0
  10. data/lib/frameworks/sproutcore/frameworks/core_foundation/core.js +2 -42
  11. data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/bind.js +2 -1
  12. data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/collection.js +3 -1
  13. data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/checkbox_support.js +5 -5
  14. data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/text_field_support.js +29 -12
  15. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/event.js +4 -4
  16. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/template_helpers/text_field_support.js +9 -0
  17. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/collection.js +110 -0
  18. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template_collection.js +63 -26
  19. data/lib/frameworks/sproutcore/frameworks/datastore/system/child_array.js +25 -5
  20. data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +3 -3
  21. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array.js +26 -3
  22. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/core_methods.js +74 -53
  23. data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +6 -7
  24. data/lib/frameworks/sproutcore/frameworks/desktop/panes/picker.js +6 -3
  25. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/ui.js +25 -1
  26. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js +1 -3
  27. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/ui.js +20 -1
  28. data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +1 -1
  29. data/lib/frameworks/sproutcore/frameworks/desktop/views/tab.js +46 -49
  30. data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/ui.js +23 -0
  31. data/lib/frameworks/sproutcore/frameworks/foundation/views/container.js +14 -2
  32. data/lib/frameworks/sproutcore/frameworks/jquery/jquery-buffered.js +2 -76
  33. data/lib/frameworks/sproutcore/frameworks/jquery/jquery.js +3348 -1591
  34. data/lib/frameworks/sproutcore/frameworks/runtime/core.js +25 -5
  35. data/lib/frameworks/sproutcore/frameworks/runtime/system/index_set.js +0 -3
  36. data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/objectForPropertyPath.js +10 -5
  37. data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/requiredObjectForPropertyPath.js +29 -0
  38. data/lib/frameworks/sproutcore/frameworks/runtime/tests/private/observer_queue.js +98 -0
  39. data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list_item.css +2 -2
  40. data/lib/frameworks/sproutcore/themes/ace/resources/split/split.css +1 -1
  41. data/lib/gen/language/Buildfile +1 -1
  42. data/lib/sproutcore.rb +1 -14
  43. data/lib/sproutcore/buildfile/string_ext.rb +0 -4
  44. data/lib/sproutcore/helpers/cssmin.rb +44 -59
  45. data/lib/sproutcore/helpers/text_helper.rb +11 -13
  46. data/lib/sproutcore/models/manifest.rb +4 -4
  47. data/lib/sproutcore/models/target.rb +11 -110
  48. data/lib/sproutcore/rack.rb +0 -1
  49. data/lib/sproutcore/rack/dev.rb +0 -1
  50. data/lib/sproutcore/rack/proxy.rb +9 -8
  51. data/lib/sproutcore/rack/service.rb +1 -1
  52. data/lib/sproutcore/render_engines/haml.rb +2 -5
  53. data/lib/sproutcore/tools/build.rb +2 -0
  54. data/lib/sproutcore/tools/docs.rb +7 -36
  55. data/lib/sproutcore/tools/manifest.rb +1 -1
  56. data/spec/buildtasks/target_spec.rb +9 -0
  57. data/spec/fixtures/real_world/frameworks/sproutcore/Buildfile +1 -1
  58. data/sproutcore.gemspec +3 -4
  59. data/vendor/chance/lib/chance/instance.rb +5 -8
  60. metadata +41 -207
  61. data/lib/doc_templates/jsdoc/allclasses.tmpl +0 -17
  62. data/lib/doc_templates/jsdoc/allfiles.tmpl +0 -56
  63. data/lib/doc_templates/jsdoc/class.tmpl +0 -487
  64. data/lib/doc_templates/jsdoc/index.tmpl +0 -38
  65. data/lib/doc_templates/jsdoc/publish.js +0 -170
  66. data/lib/doc_templates/jsdoc/static/default.css +0 -162
  67. data/lib/doc_templates/jsdoc/static/header.html +0 -2
  68. data/lib/doc_templates/jsdoc/static/index.html +0 -19
  69. data/lib/doc_templates/jsdoc/symbol.tmpl +0 -35
  70. data/lib/doc_templates/sproutcore/allclasses.tmpl +0 -0
  71. data/lib/doc_templates/sproutcore/allfiles.tmpl +0 -56
  72. data/lib/doc_templates/sproutcore/class.tmpl +0 -674
  73. data/lib/doc_templates/sproutcore/classes-json.tmpl +0 -55
  74. data/lib/doc_templates/sproutcore/index.tmpl +0 -62
  75. data/lib/doc_templates/sproutcore/publish.js +0 -346
  76. data/lib/doc_templates/sproutcore/static/default.css +0 -258
  77. data/lib/doc_templates/sproutcore/static/header.html +0 -2
  78. data/lib/doc_templates/sproutcore/static/index.html +0 -19
  79. data/lib/doc_templates/sproutcore/symbol.tmpl +0 -35
  80. data/lib/frameworks/sproutcore/frameworks/runtime/tests/private/observer_queue/isObservingSuspended.js +0 -55
  81. data/lib/sproutcore/rack/docs.rb +0 -24
  82. data/spec/fixtures/real_world/frameworks/sproutcore/apps/docs/PLACEHOLDER +0 -0
  83. data/vendor/jsdoc/README.txt +0 -151
  84. data/vendor/jsdoc/app/frame.js +0 -33
  85. data/vendor/jsdoc/app/frame/Chain.js +0 -102
  86. data/vendor/jsdoc/app/frame/Dumper.js +0 -144
  87. data/vendor/jsdoc/app/frame/Hash.js +0 -47
  88. data/vendor/jsdoc/app/frame/Link.js +0 -142
  89. data/vendor/jsdoc/app/frame/Namespace.js +0 -10
  90. data/vendor/jsdoc/app/frame/Opt.js +0 -134
  91. data/vendor/jsdoc/app/frame/Reflection.js +0 -26
  92. data/vendor/jsdoc/app/frame/String.js +0 -93
  93. data/vendor/jsdoc/app/frame/Testrun.js +0 -129
  94. data/vendor/jsdoc/app/handlers/FOODOC.js +0 -26
  95. data/vendor/jsdoc/app/handlers/XMLDOC.js +0 -26
  96. data/vendor/jsdoc/app/handlers/XMLDOC/DomReader.js +0 -159
  97. data/vendor/jsdoc/app/handlers/XMLDOC/XMLDoc.js +0 -16
  98. data/vendor/jsdoc/app/handlers/XMLDOC/XMLParse.js +0 -292
  99. data/vendor/jsdoc/app/lib/JSDOC.js +0 -98
  100. data/vendor/jsdoc/app/lib/JSDOC/DocComment.js +0 -200
  101. data/vendor/jsdoc/app/lib/JSDOC/DocTag.js +0 -294
  102. data/vendor/jsdoc/app/lib/JSDOC/JsDoc.js +0 -162
  103. data/vendor/jsdoc/app/lib/JSDOC/JsPlate.js +0 -100
  104. data/vendor/jsdoc/app/lib/JSDOC/Lang.js +0 -144
  105. data/vendor/jsdoc/app/lib/JSDOC/Parser.js +0 -109
  106. data/vendor/jsdoc/app/lib/JSDOC/PluginManager.js +0 -33
  107. data/vendor/jsdoc/app/lib/JSDOC/Symbol.js +0 -681
  108. data/vendor/jsdoc/app/lib/JSDOC/SymbolSet.js +0 -226
  109. data/vendor/jsdoc/app/lib/JSDOC/TextStream.js +0 -41
  110. data/vendor/jsdoc/app/lib/JSDOC/Token.js +0 -18
  111. data/vendor/jsdoc/app/lib/JSDOC/TokenReader.js +0 -332
  112. data/vendor/jsdoc/app/lib/JSDOC/TokenStream.js +0 -133
  113. data/vendor/jsdoc/app/lib/JSDOC/Util.js +0 -32
  114. data/vendor/jsdoc/app/lib/JSDOC/Walker.js +0 -453
  115. data/vendor/jsdoc/app/main.js +0 -74
  116. data/vendor/jsdoc/app/plugins/commentSrcJson.js +0 -19
  117. data/vendor/jsdoc/app/plugins/frameworkPrototype.js +0 -16
  118. data/vendor/jsdoc/app/plugins/functionCall.js +0 -10
  119. data/vendor/jsdoc/app/plugins/publishSrcHilite.js +0 -62
  120. data/vendor/jsdoc/app/plugins/sproutcoreTags.js +0 -26
  121. data/vendor/jsdoc/app/plugins/symbolLink.js +0 -9
  122. data/vendor/jsdoc/app/plugins/tagParamConfig.js +0 -31
  123. data/vendor/jsdoc/app/plugins/tagSynonyms.js +0 -43
  124. data/vendor/jsdoc/app/run.js +0 -346
  125. data/vendor/jsdoc/app/t/TestDoc.js +0 -144
  126. data/vendor/jsdoc/app/t/runner.js +0 -13
  127. data/vendor/jsdoc/app/test.js +0 -304
  128. data/vendor/jsdoc/app/test/addon.js +0 -24
  129. data/vendor/jsdoc/app/test/anon_inner.js +0 -14
  130. data/vendor/jsdoc/app/test/augments.js +0 -31
  131. data/vendor/jsdoc/app/test/augments2.js +0 -26
  132. data/vendor/jsdoc/app/test/borrows.js +0 -41
  133. data/vendor/jsdoc/app/test/borrows2.js +0 -23
  134. data/vendor/jsdoc/app/test/config.js +0 -22
  135. data/vendor/jsdoc/app/test/constructs.js +0 -18
  136. data/vendor/jsdoc/app/test/encoding.js +0 -10
  137. data/vendor/jsdoc/app/test/encoding_other.js +0 -12
  138. data/vendor/jsdoc/app/test/functions_anon.js +0 -39
  139. data/vendor/jsdoc/app/test/functions_nested.js +0 -33
  140. data/vendor/jsdoc/app/test/global.js +0 -13
  141. data/vendor/jsdoc/app/test/globals.js +0 -25
  142. data/vendor/jsdoc/app/test/ignore.js +0 -10
  143. data/vendor/jsdoc/app/test/inner.js +0 -16
  144. data/vendor/jsdoc/app/test/jsdoc_test.js +0 -477
  145. data/vendor/jsdoc/app/test/lend.js +0 -33
  146. data/vendor/jsdoc/app/test/memberof.js +0 -20
  147. data/vendor/jsdoc/app/test/memberof_constructor.js +0 -15
  148. data/vendor/jsdoc/app/test/name.js +0 -19
  149. data/vendor/jsdoc/app/test/namespace_nested.js +0 -23
  150. data/vendor/jsdoc/app/test/nocode.js +0 -13
  151. data/vendor/jsdoc/app/test/oblit_anon.js +0 -20
  152. data/vendor/jsdoc/app/test/overview.js +0 -20
  153. data/vendor/jsdoc/app/test/param_inline.js +0 -37
  154. data/vendor/jsdoc/app/test/params_optional.js +0 -8
  155. data/vendor/jsdoc/app/test/prototype.js +0 -17
  156. data/vendor/jsdoc/app/test/prototype_nested.js +0 -9
  157. data/vendor/jsdoc/app/test/prototype_oblit.js +0 -13
  158. data/vendor/jsdoc/app/test/prototype_oblit_constructor.js +0 -24
  159. data/vendor/jsdoc/app/test/public.js +0 -10
  160. data/vendor/jsdoc/app/test/shared.js +0 -42
  161. data/vendor/jsdoc/app/test/shared2.js +0 -2
  162. data/vendor/jsdoc/app/test/shortcuts.js +0 -22
  163. data/vendor/jsdoc/app/test/static_this.js +0 -13
  164. data/vendor/jsdoc/app/test/synonyms.js +0 -23
  165. data/vendor/jsdoc/app/test/tosource.js +0 -23
  166. data/vendor/jsdoc/app/test/variable_redefine.js +0 -14
  167. data/vendor/jsdoc/changes.txt +0 -47
  168. data/vendor/jsdoc/conf/sample.conf +0 -31
  169. data/vendor/jsdoc/java/build.xml +0 -36
  170. data/vendor/jsdoc/java/build_1.4.xml +0 -36
  171. data/vendor/jsdoc/java/classes/js.jar +0 -0
  172. data/vendor/jsdoc/java/src/JsDebugRun.java +0 -21
  173. data/vendor/jsdoc/java/src/JsRun.java +0 -21
  174. data/vendor/jsdoc/jsdebug.jar +0 -0
  175. data/vendor/jsdoc/jsrun.jar +0 -0
  176. data/vendor/jsdoc/t/TestDoc.js +0 -144
  177. data/vendor/jsdoc/t/runner.js +0 -13
  178. data/vendor/jsdoc/test.js +0 -304
  179. data/vendor/jsdoc/test/addon.js +0 -24
  180. data/vendor/jsdoc/test/anon_inner.js +0 -14
  181. data/vendor/jsdoc/test/augments.js +0 -31
  182. data/vendor/jsdoc/test/augments2.js +0 -26
  183. data/vendor/jsdoc/test/borrows.js +0 -41
  184. data/vendor/jsdoc/test/borrows2.js +0 -23
  185. data/vendor/jsdoc/test/config.js +0 -22
  186. data/vendor/jsdoc/test/constructs.js +0 -18
  187. data/vendor/jsdoc/test/encoding.js +0 -10
  188. data/vendor/jsdoc/test/encoding_other.js +0 -12
  189. data/vendor/jsdoc/test/functions_anon.js +0 -39
  190. data/vendor/jsdoc/test/functions_nested.js +0 -33
  191. data/vendor/jsdoc/test/global.js +0 -13
  192. data/vendor/jsdoc/test/globals.js +0 -25
  193. data/vendor/jsdoc/test/ignore.js +0 -10
  194. data/vendor/jsdoc/test/inner.js +0 -16
  195. data/vendor/jsdoc/test/jsdoc_test.js +0 -477
  196. data/vendor/jsdoc/test/lend.js +0 -33
  197. data/vendor/jsdoc/test/memberof.js +0 -20
  198. data/vendor/jsdoc/test/memberof_constructor.js +0 -15
  199. data/vendor/jsdoc/test/name.js +0 -19
  200. data/vendor/jsdoc/test/namespace_nested.js +0 -23
  201. data/vendor/jsdoc/test/nocode.js +0 -13
  202. data/vendor/jsdoc/test/oblit_anon.js +0 -20
  203. data/vendor/jsdoc/test/overview.js +0 -20
  204. data/vendor/jsdoc/test/param_inline.js +0 -37
  205. data/vendor/jsdoc/test/params_optional.js +0 -8
  206. data/vendor/jsdoc/test/prototype.js +0 -17
  207. data/vendor/jsdoc/test/prototype_nested.js +0 -9
  208. data/vendor/jsdoc/test/prototype_oblit.js +0 -13
  209. data/vendor/jsdoc/test/prototype_oblit_constructor.js +0 -24
  210. data/vendor/jsdoc/test/public.js +0 -10
  211. data/vendor/jsdoc/test/shared.js +0 -42
  212. data/vendor/jsdoc/test/shared2.js +0 -2
  213. data/vendor/jsdoc/test/shortcuts.js +0 -22
  214. data/vendor/jsdoc/test/static_this.js +0 -13
  215. data/vendor/jsdoc/test/synonyms.js +0 -23
  216. data/vendor/jsdoc/test/tosource.js +0 -23
  217. data/vendor/jsdoc/test/variable_redefine.js +0 -14
@@ -1,24 +0,0 @@
1
- String.prototype.reverse = function() {
2
- }
3
-
4
- String.prototype.reverse.utf8 = function() {
5
- }
6
-
7
- Function.count = function() {
8
- }
9
-
10
- /** @memberOf Function */
11
- Function.count.reset = function() {
12
- }
13
-
14
- /** @memberOf Function */
15
- count.getValue = function() {
16
- }
17
-
18
- /** @memberOf Function.prototype */
19
- getSig = function() {
20
- }
21
-
22
- /** @memberOf Function.prototype */
23
- Function.prototype.getProps = function() {
24
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * @name bar
3
- * @namespace
4
- */
5
-
6
- new function() {
7
- /**
8
- * @name bar-foo
9
- * @function
10
- * @param {number} x
11
- */
12
- function foo(x) {
13
- }
14
- }
@@ -1,31 +0,0 @@
1
- /**
2
- @constructor
3
- */
4
- function Layout(p) {
5
- this.init = function(p) {
6
- }
7
-
8
- this.getId = function() {
9
- }
10
-
11
- /** @type Page */
12
- this.orientation = "landscape";
13
- }
14
-
15
- /**
16
- @constructor
17
- @augments Layout
18
- */
19
- function Page() {
20
- this.reset = function(b) {
21
- }
22
- }
23
-
24
- /**
25
- @extends Page
26
- @constructor
27
- */
28
- function ThreeColumnPage() {
29
- this.init = function(resetCode) {
30
- }
31
- }
@@ -1,26 +0,0 @@
1
- /**
2
- @constructor
3
- */
4
- function LibraryItem() {
5
- this.reserve = function() {
6
- }
7
- }
8
-
9
- /**
10
- @constructor
11
- */
12
- function Junkmail() {
13
- this.annoy = function() {
14
- }
15
- }
16
-
17
- /**
18
- @inherits Junkmail.prototype.annoy as pester
19
- @augments ThreeColumnPage
20
- @augments LibraryItem
21
- @constructor
22
- */
23
- function NewsletterPage() {
24
- this.getHeadline = function() {
25
- }
26
- }
@@ -1,41 +0,0 @@
1
- /**
2
- @constructor
3
- */
4
- function Layout(p) {
5
- /** initilize 1 */
6
- this.init = function(p) {
7
- }
8
-
9
- /** get the id */
10
- this.getId = function() {
11
- }
12
-
13
- /** @type string */
14
- this.orientation = "landscape";
15
-
16
- function getInnerElements(elementSecretId){
17
- }
18
- }
19
-
20
- /**
21
- @constructor
22
- @borrows Layout#orientation as #orientation
23
- @borrows Layout-getInnerElements as myGetInnerElements
24
- */
25
- function Page() {
26
- /** reset the page */
27
- this.reset = function(b) {
28
- }
29
- }
30
-
31
- /**
32
- @constructor
33
- @borrows Layout.prototype.orientation as this.orientation
34
- @borrows Layout.prototype.init as #init
35
- @inherits Page.prototype.reset as #reset
36
- */
37
- function ThreeColumnPage() {
38
- /** initilize 2 */
39
- this.init = function(p) {
40
- }
41
- }
@@ -1,23 +0,0 @@
1
- // testing circular borrows
2
-
3
- /**
4
- @class
5
- @borrows Bar#zop as this.my_zop
6
- */
7
- function Foo() {
8
- /** this is a zip. */
9
- this.zip = function() {}
10
-
11
- this.my_zop = new Bar().zop;
12
- }
13
-
14
- /**
15
- @class
16
- @borrows Foo#zip as this.my_zip
17
- */
18
- function Bar() {
19
- /** this is a zop. */
20
- this.zop = function() {}
21
-
22
- this.my_zip = new Foo().zip;
23
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * @constructor
3
- * @param person The person.
4
- * @param {string} person.name The person's name.
5
- * @config {integer} age The person's age.
6
- * @config [id=1] Optional id number to use.
7
- * @param connection
8
- */
9
- function Contact(person, connection) {
10
-
11
- }
12
-
13
- /**
14
- * @constructor
15
- * @param persons
16
- * @config {string} Father The paternal person.
17
- * @config {string} Mother The maternal person.
18
- * @config {string[]} Children And the rest.
19
- */
20
- function Family(/**Object*/persons) {
21
-
22
- }
@@ -1,18 +0,0 @@
1
- var Person = makeClass(
2
- /**
3
- @scope Person
4
- */
5
- {
6
- /**
7
- This is just another way to define a constructor.
8
- @constructs
9
- @param {string} name The name of the person.
10
- */
11
- initialize: function(name) {
12
- this.name = name;
13
- },
14
- say: function(message) {
15
- return this.name + " says: " + message;
16
- }
17
- }
18
- );
@@ -1,10 +0,0 @@
1
-
2
- /**
3
- * @Constructor
4
- * @desc 配置文件
5
- * @class 什么也不返回
6
- */
7
- function Test(conf) {
8
- // do something;
9
- }
10
-
@@ -1,12 +0,0 @@
1
-
2
- /**
3
- * @Constructor
4
- * @desc ����
5
- * @class ����������������� �����������
6
- */
7
- function Test(conf) {
8
- // do something;
9
- }
10
-
11
- // run with commanline option -e=iso-8859-5
12
-
@@ -1,39 +0,0 @@
1
- /** an anonymous constructor executed inline */
2
- a = new function() {
3
- /** a.b*/
4
- this.b = 1;
5
- /** a.f */
6
- this.f = function() {
7
- /** a.c */
8
- this.c = 2;
9
- }
10
- }
11
-
12
-
13
- /**
14
- named function executed inline
15
- */
16
- bar1 = function Zoola1() {
17
- /** property of global */
18
- this.g = 1;
19
- }();
20
-
21
- /**
22
- named constructor executed inline
23
- */
24
- bar2 = new function Zoola2() {
25
- /** property of bar */
26
- this.p = 1;
27
- };
28
-
29
- /** module pattern */
30
- module = (function () {
31
- /** won't appear in documentation */
32
- var priv = 1;
33
-
34
- /** @scope module */
35
- return {
36
- /** will appear as a property of module */
37
- pub: 1
38
- }
39
- })();
@@ -1,33 +0,0 @@
1
- /** @constructor */
2
- function Zop() {
3
- }
4
-
5
- /**
6
- @class
7
- */
8
- Foo = function(id) {
9
- // this is a bit twisted, but if you call Foo() you will then
10
- // modify Foo(). This is kinda, sorta non-insane, because you
11
- // would have to call Foo() 100% of the time to use Foo's methods
12
- Foo.prototype.methodOne = function(bar) {
13
- alert(bar);
14
- };
15
-
16
- // same again
17
- Foo.prototype.methodTwo = function(bar2) {
18
- alert(bar2);
19
- };
20
-
21
- // and these are only executed if the enclosing function is actually called
22
- // and who knows if that will ever happen?
23
- Bar = function(pez) {
24
- alert(pez);
25
- };
26
- Zop.prototype.zap = function(p){
27
- alert(p);
28
- };
29
-
30
- // but this is only visible inside Foo
31
- function inner() {
32
- }
33
- };
@@ -1,13 +0,0 @@
1
- /** ecks */
2
- var x = [1, 2, 4];
3
-
4
- var y = {
5
- foo: function(){
6
- }
7
- }
8
-
9
- bar = function() {
10
- }
11
-
12
- function zop() {
13
- }
@@ -1,25 +0,0 @@
1
- function example(/**Circle*/a, b) {
2
- /** a global defined in function */
3
- var number = a;
4
-
5
- var hideNumber = function(){
6
- }
7
-
8
- setNumber = function(){
9
- }
10
- alert('You have chosen: ' + b);
11
- }
12
-
13
- function initPage() {
14
- var supported = document.createElement && document.getElementsByTagName;
15
- if (!supported) return;
16
- // start of DOM script
17
- var x = document.getElementById('writeroot');
18
- // etc.
19
- }
20
-
21
- /** an example var */
22
- var document = new Document(x, y);
23
-
24
- var getNumber = function(){
25
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * A test constructor.
3
- * @constructor
4
- * @ignore
5
- */
6
- function Ignored() {
7
- /** a method */
8
- this.bar = function() {
9
- }
10
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * @constructor
3
- */
4
- function Outer() {
5
- /**
6
- * @constructor
7
- */
8
- function Inner(name) {
9
- /** The name of this. */
10
- this.name = name;
11
- }
12
-
13
- this.open = function(name) {
14
- return (new Inner(name));
15
- }
16
- }
@@ -1,477 +0,0 @@
1
- /**
2
- * @fileoverview This file is to be used for testing the JSDoc parser
3
- * It is not intended to be an example of good JavaScript OO-programming,
4
- * nor is it intended to fulfill any specific purpose apart from
5
- * demonstrating the functionality of the
6
- * <a href='http://sourceforge.net/projects/jsdoc'>JSDoc</a> parser
7
- *
8
- * @author Gabriel Reid gab_reid@users.sourceforge.net
9
- * @version 0.1
10
- */
11
-
12
-
13
- /**
14
- * Construct a new Shape object.
15
- * @class This is the basic Shape class.
16
- * It can be considered an abstract class, even though no such thing
17
- * really existing in JavaScript
18
- * @constructor
19
- * @throws MemoryException if there is no more memory
20
- * @throws GeneralShapeException rarely (if ever)
21
- * @return {Shape|Coordinate} A new shape.
22
- */
23
- function Shape(){
24
-
25
- /**
26
- * This is an example of a function that is not given as a property
27
- * of a prototype, but instead it is assigned within a constructor.
28
- * For inner functions like this to be picked up by the parser, the
29
- * function that acts as a constructor <b>must</b> be denoted with
30
- * the <b>&#64;constructor</b> tag in its comment.
31
- * @type String
32
- */
33
- this.getClassName = function(){
34
- return "Shape";
35
- }
36
-
37
- /**
38
- * This is an inner method, just used here as an example
39
- * @since version 0.5
40
- * @author Sue Smart
41
- */
42
- function addReference(){
43
- // Do nothing...
44
- }
45
-
46
- }
47
-
48
- /**
49
- * Create a new Hexagon instance.
50
- * @extends Shape
51
- * @class Hexagon is a class that is a <i>logical</i> sublcass of
52
- * {@link Shape} (thanks to the <code>&#64;extends</code> tag), but in
53
- * reality it is completely unrelated to Shape.
54
- * @param {int} sideLength The length of one side for the new Hexagon
55
- * @example
56
- * var h = new Hexagon(2);
57
- * @example
58
- * if (hasHex) {
59
- * hex = new Hexagon(5);
60
- * color = hex.getColor();
61
- * }
62
- */
63
- function Hexagon(sideLength) {
64
- }
65
-
66
-
67
- /**
68
- * This is an unattached (static) function that adds two integers together.
69
- * @param {int} One The first number to add
70
- * @param {int} Two The second number to add
71
- * @author Gabriel Reid
72
- * @deprecated So you shouldn't use it anymore!
73
- */
74
- function Add(One, Two){
75
- return One + Two;
76
- }
77
-
78
-
79
- /**
80
- * The color of this shape
81
- * @type Color
82
- */
83
- Shape.prototype.color = null;
84
-
85
- /**
86
- * The border of this shape.
87
- * @field
88
- * @type int
89
- */
90
- Shape.prototype.border = function(){return border;};
91
-
92
- /*
93
- * These are all the instance method implementations for Shape
94
- */
95
-
96
- /**
97
- * Get the coordinates of this shape. It is assumed that we're always talking
98
- * about shapes in a 2D location here.
99
- * @requires The {@link Shape} class
100
- * @returns A Coordinate object representing the location of this Shape
101
- * @type Coordinate[]
102
- */
103
- Shape.prototype.getCoords = function(){
104
- return this.coords;
105
- }
106
-
107
- /**
108
- * Get the color of this shape.
109
- * @see #setColor
110
- * @see The <a href="http://example.com">Color</a> library.
111
- * @link Shape
112
- * @type Color
113
- */
114
- Shape.prototype.getColor = function(){
115
- return this.color;
116
- }
117
-
118
- /**
119
- * Set the coordinates for this Shape
120
- * @param {Coordinate} coordinates The coordinates to set for this Shape
121
- */
122
- Shape.prototype.setCoords = function(coordinates){
123
- this.coords = coordinates;
124
- }
125
-
126
- /**
127
- * Set the color for this Shape
128
- * @param {Color} color The color to set for this Shape
129
- * @param other There is no other param, but it can still be documented if
130
- * optional parameters are used
131
- * @throws NonExistantColorException (no, not really!)
132
- * @see #getColor
133
- */
134
- Shape.prototype.setColor = function(color){
135
- this.color = color;
136
- }
137
-
138
- /**
139
- * Clone this shape
140
- * @returns A copy of this shape
141
- * @type Shape
142
- * @author Gabriel Reid
143
- */
144
- Shape.prototype.clone = function(){
145
- return new Shape();
146
- }
147
-
148
- /**
149
- * Create a new Rectangle instance.
150
- * @class A basic rectangle class, inherits from Shape.
151
- * This class could be considered a concrete implementation class
152
- * @constructor
153
- * @param {int} width The optional width for this Rectangle
154
- * @param {int} height Thie optional height for this Rectangle
155
- * @author Gabriel Reid
156
- * @see Shape is the base class for this
157
- * @augments Shape
158
- * @hilited
159
- */
160
- function Rectangle(width, // This is the width
161
- height // This is the height
162
- ){
163
- if (width){
164
- this.width = width;
165
- if (height){
166
- this.height = height;
167
- }
168
- }
169
- }
170
-
171
-
172
- /* Inherit from Shape */
173
- Rectangle.prototype = new Shape();
174
-
175
- /**
176
- * Value to represent the width of the Rectangle.
177
- * <br>Text in <b>bold</b> and <i>italic</i> and a
178
- * link to <a href="http://sf.net">SourceForge</a>
179
- * @private
180
- * @type int
181
- */
182
- Rectangle.prototype.width = 0;
183
-
184
- /**
185
- * Value to represent the height of the Rectangle
186
- * @private
187
- * @type int
188
- */
189
- Rectangle.prototype.height = 0;
190
-
191
- /**
192
- * Get the type of this object.
193
- * @type String
194
- */
195
- Rectangle.prototype.getClassName= function(){
196
- return "Rectangle";
197
- }
198
-
199
- /**
200
- * Get the value of the width for the Rectangle
201
- * @type int
202
- * @see Rectangle#setWidth
203
- */
204
- Rectangle.prototype.getWidth = function(){
205
- return this.width;
206
- }
207
-
208
- /**
209
- * Get the value of the height for the Rectangle.
210
- * Another getter is the {@link Shape#getColor} method in the
211
- * {@link Shape} base class.
212
- * @return The height of this Rectangle
213
- * @type int
214
- * @see Rectangle#setHeight
215
- */
216
- Rectangle.prototype.getHeight = function(){
217
- return this.height;
218
- }
219
-
220
- /**
221
- * Set the width value for this Rectangle.
222
- * @param {int} width The width value to be set
223
- * @see #setWidth
224
- */
225
- Rectangle.prototype.setWidth = function(width){
226
- this.width = width;
227
- }
228
-
229
- /**
230
- * Set the height value for this Rectangle.
231
- * @param {int} height The height value to be set
232
- * @see #getHeight
233
- */
234
- Rectangle.prototype.setHeight = function(height){
235
- this.height = height;
236
- }
237
-
238
- /**
239
- * Get the value for the total area of this Rectangle
240
- * @return total area of this Rectangle
241
- * @type int
242
- */
243
- Rectangle.prototype.getArea = function(){
244
- return width * height;
245
- }
246
-
247
-
248
- /**
249
- * Create a new Square instance.
250
- * @class A Square is a subclass of {@link Rectangle}
251
- * @param {int} width The optional width for this Rectangle
252
- * @param {int} height The optional height for this Rectangle
253
- * @augments Rectangle
254
- */
255
- function Square(width, height){
256
- if (width){
257
- this.width = width;
258
- if (height){
259
- this.height = height;
260
- }
261
- }
262
-
263
- }
264
-
265
- /* Square is a subclass of Rectangle */
266
- Square.prototype = new Rectangle();
267
-
268
- /**
269
- * Set the width value for this Shape.
270
- * @param {int} width The width value to be set
271
- * @see #getWidth
272
- */
273
- Square.prototype.setWidth = function(width){
274
- this.width = this.height = width;
275
- }
276
-
277
- /**
278
- * Set the height value for this Shape
279
- * Sets the {@link Rectangle#height} attribute in the Rectangle.
280
- * @param {int} height The height value to be set
281
- */
282
- Square.prototype.setHeight = function(height){
283
- this.height = this.width = height;
284
- }
285
-
286
-
287
- /**
288
- * Create a new Circle instance based on a radius.
289
- * @class Circle class is another subclass of Shape
290
- * @extends Shape
291
- * @param {int} radius The optional radius of this {@link Circle }
292
- * @mixin Square.prototype.setWidth as this.setDiameter
293
- */
294
- function Circle(radius){
295
- if (radius) {
296
- /** The radius of the this Circle. */
297
- this.radius = radius;
298
- }
299
- }
300
-
301
- /* Circle inherits from {@link Shape} */
302
- Circle.prototype = new Shape();
303
-
304
- /**
305
- * The radius value for this Circle
306
- * @private
307
- * @type int
308
- */
309
- Circle.prototype.radius = 0;
310
-
311
- /**
312
- * A very simple class (static) field that is also a constant
313
- * @final
314
- * @type float
315
- */
316
- Circle.PI = 3.14;
317
-
318
- /**
319
- * Get the radius value for this Circle
320
- * @type int
321
- * @see #setRadius
322
- */
323
- Circle.prototype.getRadius = function(){
324
- return this.radius;
325
- }
326
-
327
- /**
328
- * Set the radius value for this Circle
329
- * @param {int} radius The {@link Circle#radius} value to set
330
- * @see #getRadius
331
- */
332
- Circle.prototype.setRadius = function(radius){
333
- this.radius = radius;
334
- }
335
-
336
- /**
337
- * An example of a class (static) method that acts as a factory for Circle
338
- * objects. Given a radius value, this method creates a new Circle.
339
- * @param {int} radius The radius value to use for the new Circle.
340
- * @type Circle
341
- */
342
- Circle.createCircle = function(radius){
343
- return new Circle(radius);
344
- }
345
-
346
-
347
- /**
348
- * Create a new Coordinate instance based on x and y grid data.
349
- * @class Coordinate is a class that can encapsulate location information.
350
- * @param {int} [x=0] The optional x portion of the Coordinate
351
- * @param {int} [y=0] The optinal y portion of the Coordinate
352
- */
353
- function Coordinate(x, y){
354
- if (x){
355
- this.x = x;
356
- if (y){
357
- this.y = y;
358
- }
359
- }
360
- }
361
-
362
- /**
363
- * The x portion of the Coordinate
364
- * @type int
365
- * @see #getX
366
- * @see #setX
367
- */
368
- Coordinate.prototype.x = 0;
369
-
370
- /**
371
- * The y portion of the Coordinate
372
- * @type int
373
- * @see #getY
374
- * @see #setY
375
- */
376
- Coordinate.prototype.y = 0;
377
-
378
- /**
379
- * Gets the x portion of the Coordinate.
380
- * @type int
381
- * @see #setX
382
- */
383
- Coordinate.prototype.getX = function(){
384
- return this.x;
385
- }
386
-
387
- /**
388
- * Get the y portion of the Coordinate.
389
- * @type int
390
- * @see #setY
391
- */
392
- Coordinate.prototype.getY = function(){
393
- return this.y;
394
- }
395
-
396
- /**
397
- * Sets the x portion of the Coordinate.
398
- * @param {int} x The x value to set
399
- * @see #getX
400
- */
401
- Coordinate.prototype.setX = function(x){
402
- this.x = x;
403
- }
404
-
405
- /**
406
- * Sets the y portion of the Coordinate.
407
- * @param {int} y The y value to set
408
- * @see #getY
409
- */
410
- Coordinate.prototype.setY = function(y){
411
- this.y = y;
412
- }
413
-
414
- /**
415
- * @class This class exists to demonstrate the assignment of a class prototype
416
- * as an anonymous block.
417
- */
418
- function ShapeFactory(){
419
- }
420
-
421
- ShapeFactory.prototype = {
422
- /**
423
- * Creates a new {@link Shape} instance.
424
- * @return A new {@link Shape}
425
- * @type Shape
426
- */
427
- createShape: function(){
428
- return new Shape();
429
- }
430
- }
431
-
432
- /**
433
- * An example of a singleton class
434
- * @param ... Arguments represent {@link coordinate}s in the shape.
435
- * @constructor
436
- */
437
- MySingletonShapeFactory = function(){
438
-
439
- /**
440
- * Get the next {@link Shape}
441
- * @type Shape
442
- * @return A new {@link Shape}
443
- */
444
- this.getShape = function(){
445
- return null;
446
- }
447
-
448
- }
449
-
450
-
451
- /**
452
- * Create a new Foo instance.
453
- * @class This is the Foo class. It exists to demonstrate 'nested' classes.
454
- * @constructor
455
- * @see Foo.Bar
456
- */
457
- function Foo(){}
458
-
459
- /**
460
- * Creates a new instance of Bar.
461
- * @class This class exists to demonstrate 'nested' classes.
462
- * @constructor
463
- * @see Foo.Bar
464
- */
465
- function Bar(){}
466
-
467
- /**
468
- * Nested class
469
- * @constructor
470
- */
471
- Foo.Bar = function(){
472
- /** The x. */ this.x = 2;
473
- }
474
-
475
- Foo.Bar.prototype = new Bar();
476
- /** The y. */
477
- Foo.Bar.prototype.y = '3';