ninjs 0.13.6 → 0.13.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (275) hide show
  1. data/VERSION +1 -1
  2. data/ninjs.gemspec +5 -290
  3. metadata +52 -345
  4. data/.bundle/config +0 -2
  5. data/CNAME +0 -1
  6. data/Gemfile +0 -16
  7. data/Gemfile.lock +0 -36
  8. data/LICENSE +0 -29
  9. data/README.md +0 -348
  10. data/bin/ninjs +0 -218
  11. data/lib/ninjs.rb +0 -10
  12. data/lib/ninjs/command.rb +0 -91
  13. data/lib/ninjs/configuration.rb +0 -72
  14. data/lib/ninjs/dependencies.rb +0 -16
  15. data/lib/ninjs/generator.rb +0 -57
  16. data/lib/ninjs/helpers.rb +0 -17
  17. data/lib/ninjs/manifest.rb +0 -9
  18. data/lib/ninjs/notification.rb +0 -37
  19. data/lib/ninjs/project.rb +0 -233
  20. data/repository/jquery/1.1.4.js +0 -2508
  21. data/repository/jquery/1.2.6.js +0 -32
  22. data/repository/jquery/1.3.2.js +0 -19
  23. data/repository/jquery/1.4.2.js +0 -154
  24. data/repository/jquery/1.4.3.js +0 -166
  25. data/repository/jquery/1.4.4.js +0 -167
  26. data/repository/jquery/1.5.js +0 -16
  27. data/repository/jquery/fancybox/1.3.1.js +0 -1079
  28. data/repository/jquery/fancybox/assets/1.3.1/css/fancybox.css +0 -363
  29. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/blank.gif +0 -0
  30. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_close.png +0 -0
  31. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_loading.png +0 -0
  32. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_nav_left.png +0 -0
  33. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_nav_right.png +0 -0
  34. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_e.png +0 -0
  35. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_n.png +0 -0
  36. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_ne.png +0 -0
  37. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_nw.png +0 -0
  38. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_s.png +0 -0
  39. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_se.png +0 -0
  40. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_sw.png +0 -0
  41. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_w.png +0 -0
  42. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_title_left.png +0 -0
  43. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_title_main.png +0 -0
  44. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_title_over.png +0 -0
  45. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_title_right.png +0 -0
  46. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancybox-x.png +0 -0
  47. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancybox-y.png +0 -0
  48. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancybox.png +0 -0
  49. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/jquery.easing-1.3.pack.js +0 -72
  50. data/repository/jquery/fancybox/latest.js +0 -1
  51. data/repository/jquery/latest.js +0 -1
  52. data/repository/jquery/mobile/1.0a3.js +0 -123
  53. data/repository/jquery/mobile/1.0a3/assets/css/jquery.mobile.css +0 -1652
  54. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/ajax-loader.png +0 -0
  55. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/form-check-off.png +0 -0
  56. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/form-check-on.png +0 -0
  57. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/form-radio-off.png +0 -0
  58. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/form-radio-on.png +0 -0
  59. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/icon-search-black.png +0 -0
  60. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/icons-18-black.png +0 -0
  61. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/icons-18-white.png +0 -0
  62. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/icons-36-black.png +0 -0
  63. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/icons-36-white.png +0 -0
  64. data/repository/jquery/mobile/latest.js +0 -1
  65. data/repository/jquery/mousewheel/3.0.2.js +0 -11
  66. data/repository/jquery/mousewheel/latest.js +0 -1
  67. data/repository/jquery/ui/1.8.7.js +0 -783
  68. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.accordion.css +0 -19
  69. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.all.css +0 -11
  70. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.autocomplete.css +0 -53
  71. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.base.css +0 -11
  72. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.button.css +0 -38
  73. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.core.css +0 -41
  74. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.datepicker.css +0 -68
  75. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.dialog.css +0 -21
  76. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.progressbar.css +0 -11
  77. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.resizable.css +0 -20
  78. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.selectable.css +0 -10
  79. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.slider.css +0 -24
  80. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.tabs.css +0 -18
  81. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.theme.css +0 -252
  82. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  83. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_flat_75_ffffff_40x100.png +0 -0
  84. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  85. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_glass_65_ffffff_1x400.png +0 -0
  86. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_glass_75_dadada_1x400.png +0 -0
  87. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  88. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  89. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  90. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-icons_222222_256x240.png +0 -0
  91. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-icons_2e83ff_256x240.png +0 -0
  92. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-icons_454545_256x240.png +0 -0
  93. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-icons_888888_256x240.png +0 -0
  94. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-icons_cd0a0a_256x240.png +0 -0
  95. data/repository/jquery/ui/latest.js +0 -1
  96. data/repository/json2.js +0 -482
  97. data/repository/modernizr/1.5.js +0 -28
  98. data/repository/modernizr/latest.js +0 -1
  99. data/repository/ninjs/core/.core.pdoc.yaml +0 -0
  100. data/repository/ninjs/core/.existence.pdoc.yaml +0 -12
  101. data/repository/ninjs/core/.extend.pdoc.yaml +0 -0
  102. data/repository/ninjs/core/.nin.pdoc.yaml +0 -0
  103. data/repository/ninjs/core/application.js +0 -47
  104. data/repository/ninjs/core/existence.js +0 -277
  105. data/repository/ninjs/core/extend.js +0 -77
  106. data/repository/ninjs/core/module.js +0 -135
  107. data/repository/ninjs/core/nin.js +0 -4
  108. data/repository/ninjs/docs/Data/ClassHierarchy.nd +0 -0
  109. data/repository/ninjs/docs/Data/ConfigFileInfo.nd +0 -0
  110. data/repository/ninjs/docs/Data/FileInfo.nd +0 -16
  111. data/repository/ninjs/docs/Data/ImageFileInfo.nd +0 -0
  112. data/repository/ninjs/docs/Data/ImageReferenceTable.nd +0 -0
  113. data/repository/ninjs/docs/Data/IndexInfo.nd +0 -0
  114. data/repository/ninjs/docs/Data/PreviousMenuState.nd +0 -0
  115. data/repository/ninjs/docs/Data/PreviousSettings.nd +0 -0
  116. data/repository/ninjs/docs/Data/SymbolTable.nd +0 -0
  117. data/repository/ninjs/docs/Languages.txt +0 -113
  118. data/repository/ninjs/docs/Menu.txt +0 -63
  119. data/repository/ninjs/docs/Topics.txt +0 -81
  120. data/repository/ninjs/docs/files/core/application-js.html +0 -44
  121. data/repository/ninjs/docs/files/core/existence-js.html +0 -60
  122. data/repository/ninjs/docs/files/core/extend-js.html +0 -55
  123. data/repository/ninjs/docs/files/core/module-js.html +0 -80
  124. data/repository/ninjs/docs/files/core/nin-js.html +0 -38
  125. data/repository/ninjs/docs/index.html +0 -1
  126. data/repository/ninjs/docs/index/Classes.html +0 -33
  127. data/repository/ninjs/docs/index/Files.html +0 -45
  128. data/repository/ninjs/docs/index/Functions.html +0 -65
  129. data/repository/ninjs/docs/index/General.html +0 -85
  130. data/repository/ninjs/docs/index/Variables.html +0 -45
  131. data/repository/ninjs/docs/javascript/main.js +0 -841
  132. data/repository/ninjs/docs/javascript/prettify.js +0 -1526
  133. data/repository/ninjs/docs/javascript/searchdata.js +0 -152
  134. data/repository/ninjs/docs/search/ClassesN.html +0 -20
  135. data/repository/ninjs/docs/search/FilesA.html +0 -20
  136. data/repository/ninjs/docs/search/FilesE.html +0 -20
  137. data/repository/ninjs/docs/search/FilesM.html +0 -20
  138. data/repository/ninjs/docs/search/FilesN.html +0 -20
  139. data/repository/ninjs/docs/search/FunctionsA.html +0 -20
  140. data/repository/ninjs/docs/search/FunctionsC.html +0 -20
  141. data/repository/ninjs/docs/search/FunctionsE.html +0 -20
  142. data/repository/ninjs/docs/search/FunctionsI.html +0 -20
  143. data/repository/ninjs/docs/search/FunctionsM.html +0 -20
  144. data/repository/ninjs/docs/search/FunctionsR.html +0 -20
  145. data/repository/ninjs/docs/search/FunctionsS.html +0 -20
  146. data/repository/ninjs/docs/search/FunctionsSymbols.html +0 -20
  147. data/repository/ninjs/docs/search/FunctionsU.html +0 -20
  148. data/repository/ninjs/docs/search/GeneralA.html +0 -20
  149. data/repository/ninjs/docs/search/GeneralC.html +0 -20
  150. data/repository/ninjs/docs/search/GeneralD.html +0 -20
  151. data/repository/ninjs/docs/search/GeneralE.html +0 -20
  152. data/repository/ninjs/docs/search/GeneralF.html +0 -20
  153. data/repository/ninjs/docs/search/GeneralI.html +0 -20
  154. data/repository/ninjs/docs/search/GeneralM.html +0 -20
  155. data/repository/ninjs/docs/search/GeneralN.html +0 -20
  156. data/repository/ninjs/docs/search/GeneralR.html +0 -20
  157. data/repository/ninjs/docs/search/GeneralS.html +0 -20
  158. data/repository/ninjs/docs/search/GeneralSymbols.html +0 -20
  159. data/repository/ninjs/docs/search/GeneralT.html +0 -20
  160. data/repository/ninjs/docs/search/GeneralU.html +0 -20
  161. data/repository/ninjs/docs/search/GeneralV.html +0 -20
  162. data/repository/ninjs/docs/search/NoResults.html +0 -15
  163. data/repository/ninjs/docs/search/VariablesD.html +0 -20
  164. data/repository/ninjs/docs/search/VariablesN.html +0 -20
  165. data/repository/ninjs/docs/search/VariablesR.html +0 -20
  166. data/repository/ninjs/docs/search/VariablesT.html +0 -20
  167. data/repository/ninjs/docs/styles/main.css +0 -828
  168. data/repository/ninjs/extensions/jquery.elements.js +0 -60
  169. data/repository/ninjs/tests/index.html +0 -21
  170. data/repository/ninjs/tests/ninjs.test.js +0 -188
  171. data/repository/ninjs/tests/ninjs.utilities.test.js +0 -137
  172. data/repository/ninjs/tests/qunit/qunit.css +0 -197
  173. data/repository/ninjs/tests/qunit/qunit.js +0 -1415
  174. data/repository/ninjs/utilities/all.js +0 -5
  175. data/repository/ninjs/utilities/array.js +0 -29
  176. data/repository/ninjs/utilities/cookie.js +0 -0
  177. data/repository/ninjs/utilities/css.js +0 -51
  178. data/repository/ninjs/utilities/number.js +0 -11
  179. data/repository/ninjs/utilities/string.js +0 -61
  180. data/repository/nullconsole.js +0 -7
  181. data/repository/qunit/assets/css/qunit.css +0 -196
  182. data/repository/qunit/qunit.js +0 -1374
  183. data/repository/selectivizr/1.0.js +0 -5
  184. data/repository/selectivizr/latest.js +0 -1
  185. data/repository/syntaxhighlighter/all.js +0 -11
  186. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCore.css +0 -226
  187. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreDefault.css +0 -328
  188. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreDjango.css +0 -331
  189. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreEclipse.css +0 -339
  190. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreEmacs.css +0 -324
  191. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreFadeToGrey.css +0 -328
  192. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreMDUltra.css +0 -324
  193. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreMidnight.css +0 -324
  194. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreRDark.css +0 -324
  195. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeDefault.css +0 -117
  196. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeDjango.css +0 -120
  197. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeEclipse.css +0 -128
  198. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeEmacs.css +0 -113
  199. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeFadeToGrey.css +0 -117
  200. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeMDUltra.css +0 -113
  201. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeMidnight.css +0 -113
  202. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeRDark.css +0 -113
  203. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCore.scss +0 -216
  204. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreDefault.scss +0 -2
  205. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreDjango.scss +0 -2
  206. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreEclipse.scss +0 -2
  207. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreEmacs.scss +0 -2
  208. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreFadeToGrey.scss +0 -2
  209. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreMDUltra.scss +0 -2
  210. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreMidnight.scss +0 -2
  211. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreRDark.scss +0 -2
  212. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeDefault.scss +0 -7
  213. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeDjango.scss +0 -36
  214. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeEclipse.scss +0 -48
  215. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeEmacs.scss +0 -32
  216. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeFadeToGrey.scss +0 -36
  217. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeMDUltra.scss +0 -32
  218. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeMidnight.scss +0 -32
  219. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeRDark.scss +0 -32
  220. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_theme_template.scss +0 -120
  221. data/repository/syntaxhighlighter/shAutoloader.js +0 -17
  222. data/repository/syntaxhighlighter/shBrushAS3.js +0 -59
  223. data/repository/syntaxhighlighter/shBrushAppleScript.js +0 -75
  224. data/repository/syntaxhighlighter/shBrushBash.js +0 -59
  225. data/repository/syntaxhighlighter/shBrushCSharp.js +0 -65
  226. data/repository/syntaxhighlighter/shBrushColdFusion.js +0 -100
  227. data/repository/syntaxhighlighter/shBrushCpp.js +0 -97
  228. data/repository/syntaxhighlighter/shBrushCss.js +0 -91
  229. data/repository/syntaxhighlighter/shBrushDelphi.js +0 -55
  230. data/repository/syntaxhighlighter/shBrushDiff.js +0 -41
  231. data/repository/syntaxhighlighter/shBrushErlang.js +0 -52
  232. data/repository/syntaxhighlighter/shBrushGroovy.js +0 -67
  233. data/repository/syntaxhighlighter/shBrushJScript.js +0 -52
  234. data/repository/syntaxhighlighter/shBrushJava.js +0 -57
  235. data/repository/syntaxhighlighter/shBrushJavaFX.js +0 -58
  236. data/repository/syntaxhighlighter/shBrushPerl.js +0 -72
  237. data/repository/syntaxhighlighter/shBrushPhp.js +0 -88
  238. data/repository/syntaxhighlighter/shBrushPlain.js +0 -33
  239. data/repository/syntaxhighlighter/shBrushPowerShell.js +0 -74
  240. data/repository/syntaxhighlighter/shBrushPython.js +0 -64
  241. data/repository/syntaxhighlighter/shBrushRuby.js +0 -55
  242. data/repository/syntaxhighlighter/shBrushSass.js +0 -94
  243. data/repository/syntaxhighlighter/shBrushScala.js +0 -51
  244. data/repository/syntaxhighlighter/shBrushSql.js +0 -66
  245. data/repository/syntaxhighlighter/shBrushVb.js +0 -56
  246. data/repository/syntaxhighlighter/shBrushXml.js +0 -69
  247. data/repository/syntaxhighlighter/shCore.js +0 -17
  248. data/repository/syntaxhighlighter/shLegacy.js +0 -17
  249. data/spec/fixtures/global.js +0 -7
  250. data/spec/fixtures/global.module.js +0 -7
  251. data/spec/fixtures/myapplication.js +0 -576
  252. data/spec/fixtures/nin.js +0 -573
  253. data/spec/fixtures/ninjs.conf +0 -6
  254. data/spec/fixtures/test.elements.js +0 -4
  255. data/spec/fixtures/test.js +0 -15
  256. data/spec/fixtures/test.model.js +0 -3
  257. data/spec/fixtures/test.module.js +0 -10
  258. data/spec/fixtures/updated.myapplication.js +0 -27
  259. data/spec/fixtures/utilities.js +0 -162
  260. data/spec/helpers_spec.rb +0 -11
  261. data/spec/integration_spec.rb +0 -257
  262. data/spec/manifest_spec.rb +0 -8
  263. data/spec/ninjs_spec.rb +0 -36
  264. data/spec/notification_spec.rb +0 -27
  265. data/spec/spec_helper.rb +0 -5
  266. data/tmp/ff9e83aa019b712b90200b8d1b8fa0c7e14576af.json +0 -1
  267. data/tmp/metric_fu/_data/20110305.yml +0 -1548
  268. data/tmp/metric_fu/output/bluff-min.js +0 -1
  269. data/tmp/metric_fu/output/excanvas.js +0 -35
  270. data/tmp/metric_fu/output/js-class.js +0 -1
  271. data/tmp/metric_fu/output/lib_ninjs_dependencies.rb.html +0 -34
  272. data/tmp/metric_fu/output/lib_ninjs_helpers.rb.html +0 -34
  273. data/tmp/metric_fu/output/lib_ninjs_manifest.rb.html +0 -27
  274. data/tmp/metric_fu/output/rails_best_practices.js +0 -11
  275. data/tmp/metric_fu/scratch/rcov/rcov.txt +0 -1
@@ -1,135 +0,0 @@
1
- var NinjsModule = function(name) {
2
- this.dom = {};
3
- this.data = {};
4
- this.name = name;
5
- this.run_tests = false;
6
- this.tests = [];
7
- };
8
-
9
- NinjsModule.method('actions', function() {});
10
-
11
- NinjsModule.method('run', function() {
12
- this.call_on_ready(this.execute);
13
- });
14
-
15
- NinjsModule.method('call_on_ready', function(callback) {
16
- var timer;
17
- var module = this;
18
-
19
- function check_ready() {
20
- timer = setInterval(is_ready, 13);
21
- }
22
-
23
- function is_ready() {
24
- if (document && document.getElementsByTagName && document.getElementById && document.body) {
25
- clearInterval(timer);
26
- timer = null;
27
- callback.call(module);
28
- }
29
- }
30
-
31
- check_ready();
32
- });
33
-
34
- NinjsModule.method('execute', function() {
35
- if (this.run_tests) {
36
- this._run_tests();
37
- }
38
-
39
- this.actions();
40
- });
41
-
42
- NinjsModule.method('elements', function(elements) {
43
- if (is_undefined(elements)) {
44
- if (is_typeof(Object, elements)) {
45
- throw new SyntaxError("NinjsModule.elements(elements): elements is undefined");
46
- }
47
- else if (is_string(elements)) {
48
- throw new SyntaxError("NinjsModule.elements(name): name is undefined");
49
- }
50
- }
51
-
52
- // If first argument is a string, retrieve the element
53
- if (is_string(elements)) {
54
- var name = elements;
55
- return is_defined(this.dom[name]) ? this.dom[name] : undefined;
56
- }
57
- // Set elements
58
- else {
59
- this.call_on_ready(function() {
60
- for(var key in elements) {
61
- if (elements.hasOwnProperty(key)) {
62
- this.dom[key] = elements[key];
63
- }
64
- }
65
- });
66
- }
67
- });
68
-
69
- NinjsModule.method('set_data', function(key, value) {
70
- if (is_undefined(key)) {
71
- throw new SyntaxError('NinjsModule.set_data(key, value): key is undefined');
72
- }
73
-
74
- if (is_typeof(String, key) && is_undefined(value)) {
75
- throw new SyntaxError('NinjsModule.set_data(key, value): value is undefined');
76
- }
77
-
78
- if (is_typeof(String, key)) {
79
- this.data[key] = value;
80
- }
81
- else if (is_typeof(Object, key)) {
82
- var data = key;
83
- for(var property in data) {
84
- this.data[property] = data[property];
85
- }
86
- }
87
-
88
- return this;
89
- });
90
-
91
- NinjsModule.method('add_test', function(test_file) {
92
- this.tests.push(test_file);
93
- });
94
-
95
- NinjsModule.method('_run_tests', function() {
96
- var test_template = [];
97
- test_template.push('<div class="test-results" title="Test Results">');
98
- test_template.push('<h1 id="qunit-header">' + this.name + ' module tests</h1>');
99
- test_template.push('<h2 id="qunit-banner"></h2>');
100
- test_template.push('<h2 id="qunit-userAgent"></h2>');
101
- test_template.push('<ol id="qunit-tests"></ol>');
102
- test_template.push('</div>');
103
-
104
- var qunit_dependencies = '<script src="' + _.tests_path +'qunit/qunit.js"></script>';
105
- $.getScript(_.tests_path + 'qunit/qunit.js');
106
- var qunit_styles = '<link rel="stylesheet" href="' + _.tests_path + 'qunit/qunit.css">';
107
- $('body').append(qunit_styles);
108
- $('body').append(test_template.join("\n"));
109
-
110
- this.tests.each(function(test) {
111
- $.getScript(_.tests_path + test + '.test.js', function() {
112
- var test_results_dialog = $('.test-results');
113
- var height = $(window).height() - 200;
114
- var width = $(window).width() - 300;
115
- try {
116
- test_results_dialog.dialog({
117
- width: width,
118
- height: height,
119
- autoOpen: false,
120
- buttons: {
121
- "Thanks buddy": function() {
122
- test_results_dialog.dialog('close');
123
- }
124
- }
125
- });
126
- var failed = $('.failed');
127
- console.log(failed.html());
128
- test_results_dialog.dialog('open');
129
- }
130
- catch(error) {
131
- alert("Test harness requires jQueryUI");
132
- }
133
- });
134
- });
135
- });
@@ -1,4 +0,0 @@
1
- /* File: nin.js */
2
- //= require "extend"
3
- //= require "module"
4
- //= require "application"
@@ -1,16 +0,0 @@
1
- 1.51
2
- JavaScript
3
- /Volumes/Storage/Development/ninjs/repository/ninjs/tests/ninjs.utilities.test.js 1302233364 0 /Volumes/Storage/Development/ninjs/repository/ninjs/tests/ninjs.utilities.test.js
4
- /Volumes/Storage/Development/ninjs/repository/ninjs/utilities/css.js 1294599934 0 /Volumes/Storage/Development/ninjs/repository/ninjs/utilities/css.js
5
- /Volumes/Storage/Development/ninjs/repository/ninjs/core/nin.js 1302363353 1 nin.js
6
- /Volumes/Storage/Development/ninjs/repository/ninjs/utilities/number.js 1295331490 0 /Volumes/Storage/Development/ninjs/repository/ninjs/utilities/number.js
7
- /Volumes/Storage/Development/ninjs/repository/ninjs/utilities/all.js 1295497444 0 /Volumes/Storage/Development/ninjs/repository/ninjs/utilities/all.js
8
- /Volumes/Storage/Development/ninjs/repository/ninjs/core/existence.js 1302363338 1 existence.js
9
- /Volumes/Storage/Development/ninjs/repository/ninjs/core/application.js 1302363330 1 application.js
10
- /Volumes/Storage/Development/ninjs/repository/ninjs/core/module.js 1302363348 1 module.js
11
- /Volumes/Storage/Development/ninjs/repository/ninjs/utilities/cookie.js 1295499140 0 /Volumes/Storage/Development/ninjs/repository/ninjs/utilities/cookie.js
12
- /Volumes/Storage/Development/ninjs/repository/ninjs/tests/qunit/qunit.js 1294856988 0 /Volumes/Storage/Development/ninjs/repository/ninjs/tests/qunit/qunit.js
13
- /Volumes/Storage/Development/ninjs/repository/ninjs/utilities/array.js 1295331421 0 /Volumes/Storage/Development/ninjs/repository/ninjs/utilities/array.js
14
- /Volumes/Storage/Development/ninjs/repository/ninjs/utilities/string.js 1295331396 0 /Volumes/Storage/Development/ninjs/repository/ninjs/utilities/string.js
15
- /Volumes/Storage/Development/ninjs/repository/ninjs/tests/ninjs.test.js 1302361055 0 /Volumes/Storage/Development/ninjs/repository/ninjs/tests/ninjs.test.js
16
- /Volumes/Storage/Development/ninjs/repository/ninjs/core/extend.js 1302369579 1 extend.js
@@ -1,113 +0,0 @@
1
- Format: 1.51
2
-
3
- # This is the Natural Docs languages file for this project. If you change
4
- # anything here, it will apply to THIS PROJECT ONLY. If you'd like to change
5
- # something for all your projects, edit the Languages.txt in Natural Docs'
6
- # Config directory instead.
7
-
8
-
9
- # You can prevent certain file extensions from being scanned like this:
10
- # Ignore Extensions: [extension] [extension] ...
11
-
12
-
13
- #-------------------------------------------------------------------------------
14
- # SYNTAX:
15
- #
16
- # Unlike other Natural Docs configuration files, in this file all comments
17
- # MUST be alone on a line. Some languages deal with the # character, so you
18
- # cannot put comments on the same line as content.
19
- #
20
- # Also, all lists are separated with spaces, not commas, again because some
21
- # languages may need to use them.
22
- #
23
- # Language: [name]
24
- # Alter Language: [name]
25
- # Defines a new language or alters an existing one. Its name can use any
26
- # characters. If any of the properties below have an add/replace form, you
27
- # must use that when using Alter Language.
28
- #
29
- # The language Shebang Script is special. It's entry is only used for
30
- # extensions, and files with those extensions have their shebang (#!) lines
31
- # read to determine the real language of the file. Extensionless files are
32
- # always treated this way.
33
- #
34
- # The language Text File is also special. It's treated as one big comment
35
- # so you can put Natural Docs content in them without special symbols. Also,
36
- # if you don't specify a package separator, ignored prefixes, or enum value
37
- # behavior, it will copy those settings from the language that is used most
38
- # in the source tree.
39
- #
40
- # Extensions: [extension] [extension] ...
41
- # [Add/Replace] Extensions: [extension] [extension] ...
42
- # Defines the file extensions of the language's source files. You can
43
- # redefine extensions found in the main languages file. You can use * to
44
- # mean any undefined extension.
45
- #
46
- # Shebang Strings: [string] [string] ...
47
- # [Add/Replace] Shebang Strings: [string] [string] ...
48
- # Defines a list of strings that can appear in the shebang (#!) line to
49
- # designate that it's part of the language. You can redefine strings found
50
- # in the main languages file.
51
- #
52
- # Ignore Prefixes in Index: [prefix] [prefix] ...
53
- # [Add/Replace] Ignored Prefixes in Index: [prefix] [prefix] ...
54
- #
55
- # Ignore [Topic Type] Prefixes in Index: [prefix] [prefix] ...
56
- # [Add/Replace] Ignored [Topic Type] Prefixes in Index: [prefix] [prefix] ...
57
- # Specifies prefixes that should be ignored when sorting symbols in an
58
- # index. Can be specified in general or for a specific topic type.
59
- #
60
- #------------------------------------------------------------------------------
61
- # For basic language support only:
62
- #
63
- # Line Comments: [symbol] [symbol] ...
64
- # Defines a space-separated list of symbols that are used for line comments,
65
- # if any.
66
- #
67
- # Block Comments: [opening sym] [closing sym] [opening sym] [closing sym] ...
68
- # Defines a space-separated list of symbol pairs that are used for block
69
- # comments, if any.
70
- #
71
- # Package Separator: [symbol]
72
- # Defines the default package separator symbol. The default is a dot.
73
- #
74
- # [Topic Type] Prototype Enders: [symbol] [symbol] ...
75
- # When defined, Natural Docs will attempt to get a prototype from the code
76
- # immediately following the topic type. It stops when it reaches one of
77
- # these symbols. Use \n for line breaks.
78
- #
79
- # Line Extender: [symbol]
80
- # Defines the symbol that allows a prototype to span multiple lines if
81
- # normally a line break would end it.
82
- #
83
- # Enum Values: [global|under type|under parent]
84
- # Defines how enum values are referenced. The default is global.
85
- # global - Values are always global, referenced as 'value'.
86
- # under type - Values are under the enum type, referenced as
87
- # 'package.enum.value'.
88
- # under parent - Values are under the enum's parent, referenced as
89
- # 'package.value'.
90
- #
91
- # Perl Package: [perl package]
92
- # Specifies the Perl package used to fine-tune the language behavior in ways
93
- # too complex to do in this file.
94
- #
95
- #------------------------------------------------------------------------------
96
- # For full language support only:
97
- #
98
- # Full Language Support: [perl package]
99
- # Specifies the Perl package that has the parsing routines necessary for full
100
- # language support.
101
- #
102
- #-------------------------------------------------------------------------------
103
-
104
- # The following languages are defined in the main file, if you'd like to alter
105
- # them:
106
- #
107
- # Text File, Shebang Script, C/C++, C#, Java, JavaScript, Perl, Python,
108
- # PHP, SQL, Visual Basic, Pascal, Assembly, Ada, Tcl, Ruby, Makefile,
109
- # ActionScript, ColdFusion, R, Fortran
110
-
111
- # If you add a language that you think would be useful to other developers
112
- # and should be included in Natural Docs by default, please e-mail it to
113
- # languages [at] naturaldocs [dot] org.
@@ -1,63 +0,0 @@
1
- Format: 1.51
2
-
3
-
4
- # You can add a title and sub-title to your menu like this:
5
- # Title: [project name]
6
- # SubTitle: [subtitle]
7
-
8
- # You can add a footer to your documentation like this:
9
- # Footer: [text]
10
- # If you want to add a copyright notice, this would be the place to do it.
11
-
12
- # You can add a timestamp to your documentation like one of these:
13
- # Timestamp: Generated on month day, year
14
- # Timestamp: Updated mm/dd/yyyy
15
- # Timestamp: Last updated mon day
16
- #
17
- # m - One or two digit month. January is "1"
18
- # mm - Always two digit month. January is "01"
19
- # mon - Short month word. January is "Jan"
20
- # month - Long month word. January is "January"
21
- # d - One or two digit day. 1 is "1"
22
- # dd - Always two digit day. 1 is "01"
23
- # day - Day with letter extension. 1 is "1st"
24
- # yy - Two digit year. 2006 is "06"
25
- # yyyy - Four digit year. 2006 is "2006"
26
- # year - Four digit year. 2006 is "2006"
27
-
28
-
29
- # --------------------------------------------------------------------------
30
- #
31
- # Cut and paste the lines below to change the order in which your files
32
- # appear on the menu. Don't worry about adding or removing files, Natural
33
- # Docs will take care of that.
34
- #
35
- # You can further organize the menu by grouping the entries. Add a
36
- # "Group: [name] {" line to start a group, and add a "}" to end it.
37
- #
38
- # You can add text and web links to the menu by adding "Text: [text]" and
39
- # "Link: [name] ([URL])" lines, respectively.
40
- #
41
- # The formatting and comments are auto-generated, so don't worry about
42
- # neatness when editing the file. Natural Docs will clean it up the next
43
- # time it is run. When working with groups, just deal with the braces and
44
- # forget about the indentation and comments.
45
- #
46
- # --------------------------------------------------------------------------
47
-
48
-
49
- File: application.js (core/application.js)
50
- File: existence.js (core/existence.js)
51
- File: extend.js (core/extend.js)
52
- File: module.js (core/module.js)
53
- File: nin.js (core/nin.js)
54
-
55
- Group: Index {
56
-
57
- Index: Everything
58
- Class Index: Classes
59
- File Index: Files
60
- Function Index: Functions
61
- Variable Index: Variables
62
- } # Group: Index
63
-
@@ -1,81 +0,0 @@
1
- Format: 1.51
2
-
3
- # This is the Natural Docs topics file for this project. If you change anything
4
- # here, it will apply to THIS PROJECT ONLY. If you'd like to change something
5
- # for all your projects, edit the Topics.txt in Natural Docs' Config directory
6
- # instead.
7
-
8
-
9
- # If you'd like to prevent keywords from being recognized by Natural Docs, you
10
- # can do it like this:
11
- # Ignore Keywords: [keyword], [keyword], ...
12
- #
13
- # Or you can use the list syntax like how they are defined:
14
- # Ignore Keywords:
15
- # [keyword]
16
- # [keyword], [plural keyword]
17
- # ...
18
-
19
-
20
- #-------------------------------------------------------------------------------
21
- # SYNTAX:
22
- #
23
- # Topic Type: [name]
24
- # Alter Topic Type: [name]
25
- # Creates a new topic type or alters one from the main file. Each type gets
26
- # its own index and behavior settings. Its name can have letters, numbers,
27
- # spaces, and these charaters: - / . '
28
- #
29
- # Plural: [name]
30
- # Sets the plural name of the topic type, if different.
31
- #
32
- # Keywords:
33
- # [keyword]
34
- # [keyword], [plural keyword]
35
- # ...
36
- # Defines or adds to the list of keywords for the topic type. They may only
37
- # contain letters, numbers, and spaces and are not case sensitive. Plural
38
- # keywords are used for list topics. You can redefine keywords found in the
39
- # main topics file.
40
- #
41
- # Index: [yes|no]
42
- # Whether the topics get their own index. Defaults to yes. Everything is
43
- # included in the general index regardless of this setting.
44
- #
45
- # Scope: [normal|start|end|always global]
46
- # How the topics affects scope. Defaults to normal.
47
- # normal - Topics stay within the current scope.
48
- # start - Topics start a new scope for all the topics beneath it,
49
- # like class topics.
50
- # end - Topics reset the scope back to global for all the topics
51
- # beneath it.
52
- # always global - Topics are defined as global, but do not change the scope
53
- # for any other topics.
54
- #
55
- # Class Hierarchy: [yes|no]
56
- # Whether the topics are part of the class hierarchy. Defaults to no.
57
- #
58
- # Page Title If First: [yes|no]
59
- # Whether the topic's title becomes the page title if it's the first one in
60
- # a file. Defaults to no.
61
- #
62
- # Break Lists: [yes|no]
63
- # Whether list topics should be broken into individual topics in the output.
64
- # Defaults to no.
65
- #
66
- # Can Group With: [type], [type], ...
67
- # Defines a list of topic types that this one can possibly be grouped with.
68
- # Defaults to none.
69
- #-------------------------------------------------------------------------------
70
-
71
- # The following topics are defined in the main file, if you'd like to alter
72
- # their behavior or add keywords:
73
- #
74
- # Generic, Class, Interface, Section, File, Group, Function, Variable,
75
- # Property, Type, Constant, Enumeration, Event, Delegate, Macro,
76
- # Database, Database Table, Database View, Database Index, Database
77
- # Cursor, Database Trigger, Cookie, Build Target
78
-
79
- # If you add something that you think would be useful to other developers
80
- # and should be included in Natural Docs by default, please e-mail it to
81
- # topics [at] naturaldocs [dot] org.
@@ -1,44 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2
-
3
- <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>application.js</title><link rel="stylesheet" type="text/css" href="../../styles/main.css"><script language=JavaScript src="../../javascript/main.js"></script><script language=JavaScript src="../../javascript/prettify.js"></script><script language=JavaScript src="../../javascript/searchdata.js"></script></head><body class="ContentPage" onLoad="NDOnLoad();prettyPrint();"><script language=JavaScript><!--
4
- if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5
-
6
- <!-- Generated by Natural Docs, version 1.51 -->
7
- <!-- http://www.naturaldocs.org -->
8
-
9
- <!-- saved from url=(0026)http://www.naturaldocs.org -->
10
-
11
-
12
-
13
-
14
- <div id=Content><div class="CFile"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="application.js"></a>application.js</h1><div class=CBody><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#application.js" >application.js</a></td><td class=SDescription></td></tr><tr class="SClass"><td class=SEntry><a href="#NinjsApplication" >NinjsApplication</a></td><td class=SDescription>An NinjsApplication object serves as your application&rsquo;s namespace and includes a utility to add modules to the application object.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#NinjsApplication.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#NinjsApplication.add_module" >add_module</a></td><td class=SDescription>Adds a NinjsModule to the application.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
15
-
16
- <div class="CClass"><div class=CTopic><h2 class=CTitle><a name="NinjsApplication"></a>NinjsApplication</h2><div class=CBody><p>An NinjsApplication object serves as your application&rsquo;s namespace and includes a utility to add modules to the application object.</p><h4 class=CHeading>See Also</h4><p><a href="module-js.html#NinjsModule" class=LClass id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">NinjsModule</a></p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#NinjsApplication.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#NinjsApplication.add_module" >add_module</a></td><td class=SDescription>Adds a NinjsModule to the application.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
17
-
18
- <div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="NinjsApplication.Functions"></a>Functions</h3></div></div>
19
-
20
- <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="NinjsApplication.add_module"></a>add_module</h3><div class=CBody><p>Adds a NinjsModule to the application.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>name</td><td class=CDLDescription>the name of the module</td></tr></table><blockquote><pre>myapp.add_module('my_module');</pre></blockquote></div></div></div>
21
-
22
- </div><!--Content-->
23
-
24
-
25
- <div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
26
-
27
-
28
- <div id=Menu><div class=MEntry><div class=MFile id=MSelected>application.js</div></div><div class=MEntry><div class=MFile><a href="existence-js.html">existence.js</a></div></div><div class=MEntry><div class=MFile><a href="extend-js.html">extend.js</a></div></div><div class=MEntry><div class=MFile><a href="module-js.html">module.js</a></div></div><div class=MEntry><div class=MFile><a href="nin-js.html">nin.js</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Index</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MIndex><a href="../../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Files.html">Files</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Functions.html">Functions</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Variables.html">Variables</a></div></div></div></div></div><script type="text/javascript"><!--
29
- var searchPanel = new SearchPanel("searchPanel", "HTML", "../../search");
30
- --></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Files">Files</option><option value="Functions">Functions</option><option value="Variables">Variables</option></select></div></div><!--Menu-->
31
-
32
-
33
-
34
- <!--START_ND_TOOLTIPS-->
35
- <div class=CToolTip id="tt1"><div class=CClass>A NinjsModule is an object which encapsulates a certain behavior or functionality.</div></div><!--END_ND_TOOLTIPS-->
36
-
37
-
38
-
39
-
40
- <div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>
41
-
42
-
43
- <script language=JavaScript><!--
44
- if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>