ninjs 0.14.1 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (191) hide show
  1. data/.bundle/config +2 -2
  2. data/.travis.yml +1 -0
  3. data/Gemfile +1 -0
  4. data/Gemfile.lock +13 -11
  5. data/README.md +108 -93
  6. data/Rakefile +17 -7
  7. data/VERSION +1 -1
  8. data/bin/ninjs +24 -22
  9. data/lib/ninjs/command.rb +32 -21
  10. data/lib/ninjs/configuration.rb +35 -53
  11. data/lib/ninjs/generator.rb +6 -6
  12. data/lib/ninjs/notification.rb +5 -5
  13. data/lib/ninjs/project.rb +31 -25
  14. data/ninjs.gemspec +18 -142
  15. data/repository/ninjs/core/application.js +13 -24
  16. data/repository/ninjs/core/dom.js +87 -68
  17. data/repository/ninjs/core/existence.js +44 -105
  18. data/repository/ninjs/core/extend.js +11 -32
  19. data/repository/ninjs/core/module.js +53 -107
  20. data/repository/ninjs/core/nin.js +5 -7
  21. data/repository/ninjs/tests/extension.test.js +0 -10
  22. data/repository/ninjs/tests/index.html +19 -20
  23. data/repository/ninjs/tests/module.test.js +52 -56
  24. data/repository/ninjs/utilities/array.js +8 -8
  25. data/repository/ninjs/utilities/cookie.js +59 -0
  26. data/repository/ninjs/utilities/css.js +7 -7
  27. data/repository/ninjs/utilities/number.js +2 -2
  28. data/repository/ninjs/utilities/string.js +26 -26
  29. data/spec/cli_spec.rb +90 -88
  30. data/spec/command_spec.rb +104 -137
  31. data/spec/configuration_spec.rb +23 -37
  32. data/spec/fixtures/_global.module.js +9 -0
  33. data/spec/fixtures/compressed.myapp.js +23 -44
  34. data/spec/fixtures/foo.elements.js +1 -1
  35. data/spec/fixtures/foo.js +5 -5
  36. data/spec/fixtures/foo.model.js +1 -1
  37. data/spec/fixtures/foo.module.js +3 -3
  38. data/spec/fixtures/hello.elements.js +1 -1
  39. data/spec/fixtures/hello.js +5 -5
  40. data/spec/fixtures/hello.model.js +1 -1
  41. data/spec/fixtures/hello.module.js +3 -3
  42. data/spec/fixtures/myapp.initial.js +198 -329
  43. data/spec/fixtures/myapp.js +285 -357
  44. data/spec/fixtures/mymodule.alias.module.js +2 -2
  45. data/spec/fixtures/mymodule.dependencies.module.js +2 -2
  46. data/spec/fixtures/mymodule.elements.js +1 -1
  47. data/spec/fixtures/mymodule.model.js +1 -1
  48. data/spec/fixtures/mymodule.module.js +2 -2
  49. data/spec/fixtures/mymodule.module_alias.module.js +10 -0
  50. data/spec/fixtures/new.ninjs.conf +2 -0
  51. data/spec/fixtures/nin.js +198 -329
  52. data/spec/fixtures/ninjs.conf +2 -0
  53. data/spec/fixtures/updated.ninjs.conf +8 -0
  54. data/spec/generator_spec.rb +37 -26
  55. data/spec/ninjs_spec.rb +6 -6
  56. data/spec/project_spec.rb +229 -221
  57. data/spec/spec_helper.rb +3 -1
  58. data/spec/testspec_spec.rb +7 -0
  59. metadata +28 -145
  60. data/repository/json2.js +0 -482
  61. data/repository/modernizr/1.5.js +0 -28
  62. data/repository/modernizr/latest.js +0 -1
  63. data/repository/ninjs/docs/Data/ClassHierarchy.nd +0 -0
  64. data/repository/ninjs/docs/Data/ConfigFileInfo.nd +0 -0
  65. data/repository/ninjs/docs/Data/FileInfo.nd +0 -16
  66. data/repository/ninjs/docs/Data/ImageFileInfo.nd +0 -0
  67. data/repository/ninjs/docs/Data/ImageReferenceTable.nd +0 -0
  68. data/repository/ninjs/docs/Data/IndexInfo.nd +0 -0
  69. data/repository/ninjs/docs/Data/PreviousMenuState.nd +0 -0
  70. data/repository/ninjs/docs/Data/PreviousSettings.nd +0 -0
  71. data/repository/ninjs/docs/Data/SymbolTable.nd +0 -0
  72. data/repository/ninjs/docs/Languages.txt +0 -113
  73. data/repository/ninjs/docs/Menu.txt +0 -63
  74. data/repository/ninjs/docs/Topics.txt +0 -81
  75. data/repository/ninjs/docs/files/core/application-js.html +0 -44
  76. data/repository/ninjs/docs/files/core/existence-js.html +0 -60
  77. data/repository/ninjs/docs/files/core/extend-js.html +0 -55
  78. data/repository/ninjs/docs/files/core/module-js.html +0 -80
  79. data/repository/ninjs/docs/files/core/nin-js.html +0 -38
  80. data/repository/ninjs/docs/index.html +0 -1
  81. data/repository/ninjs/docs/index/Classes.html +0 -33
  82. data/repository/ninjs/docs/index/Files.html +0 -45
  83. data/repository/ninjs/docs/index/Functions.html +0 -65
  84. data/repository/ninjs/docs/index/General.html +0 -85
  85. data/repository/ninjs/docs/index/Variables.html +0 -45
  86. data/repository/ninjs/docs/javascript/main.js +0 -841
  87. data/repository/ninjs/docs/javascript/prettify.js +0 -1526
  88. data/repository/ninjs/docs/javascript/searchdata.js +0 -152
  89. data/repository/ninjs/docs/search/ClassesN.html +0 -20
  90. data/repository/ninjs/docs/search/FilesA.html +0 -20
  91. data/repository/ninjs/docs/search/FilesE.html +0 -20
  92. data/repository/ninjs/docs/search/FilesM.html +0 -20
  93. data/repository/ninjs/docs/search/FilesN.html +0 -20
  94. data/repository/ninjs/docs/search/FunctionsA.html +0 -20
  95. data/repository/ninjs/docs/search/FunctionsC.html +0 -20
  96. data/repository/ninjs/docs/search/FunctionsE.html +0 -20
  97. data/repository/ninjs/docs/search/FunctionsI.html +0 -20
  98. data/repository/ninjs/docs/search/FunctionsM.html +0 -20
  99. data/repository/ninjs/docs/search/FunctionsR.html +0 -20
  100. data/repository/ninjs/docs/search/FunctionsS.html +0 -20
  101. data/repository/ninjs/docs/search/FunctionsSymbols.html +0 -20
  102. data/repository/ninjs/docs/search/FunctionsU.html +0 -20
  103. data/repository/ninjs/docs/search/GeneralA.html +0 -20
  104. data/repository/ninjs/docs/search/GeneralC.html +0 -20
  105. data/repository/ninjs/docs/search/GeneralD.html +0 -20
  106. data/repository/ninjs/docs/search/GeneralE.html +0 -20
  107. data/repository/ninjs/docs/search/GeneralF.html +0 -20
  108. data/repository/ninjs/docs/search/GeneralI.html +0 -20
  109. data/repository/ninjs/docs/search/GeneralM.html +0 -20
  110. data/repository/ninjs/docs/search/GeneralN.html +0 -20
  111. data/repository/ninjs/docs/search/GeneralR.html +0 -20
  112. data/repository/ninjs/docs/search/GeneralS.html +0 -20
  113. data/repository/ninjs/docs/search/GeneralSymbols.html +0 -20
  114. data/repository/ninjs/docs/search/GeneralT.html +0 -20
  115. data/repository/ninjs/docs/search/GeneralU.html +0 -20
  116. data/repository/ninjs/docs/search/GeneralV.html +0 -20
  117. data/repository/ninjs/docs/search/NoResults.html +0 -15
  118. data/repository/ninjs/docs/search/VariablesD.html +0 -20
  119. data/repository/ninjs/docs/search/VariablesN.html +0 -20
  120. data/repository/ninjs/docs/search/VariablesR.html +0 -20
  121. data/repository/ninjs/docs/search/VariablesT.html +0 -20
  122. data/repository/ninjs/docs/styles/main.css +0 -828
  123. data/repository/nullconsole.js +0 -7
  124. data/repository/qunit/assets/css/qunit.css +0 -196
  125. data/repository/qunit/qunit.js +0 -1374
  126. data/repository/selectivizr/1.0.js +0 -5
  127. data/repository/selectivizr/latest.js +0 -1
  128. data/repository/syntaxhighlighter/all.js +0 -11
  129. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCore.css +0 -226
  130. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreDefault.css +0 -328
  131. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreDjango.css +0 -331
  132. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreEclipse.css +0 -339
  133. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreEmacs.css +0 -324
  134. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreFadeToGrey.css +0 -328
  135. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreMDUltra.css +0 -324
  136. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreMidnight.css +0 -324
  137. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreRDark.css +0 -324
  138. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeDefault.css +0 -117
  139. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeDjango.css +0 -120
  140. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeEclipse.css +0 -128
  141. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeEmacs.css +0 -113
  142. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeFadeToGrey.css +0 -117
  143. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeMDUltra.css +0 -113
  144. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeMidnight.css +0 -113
  145. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeRDark.css +0 -113
  146. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCore.scss +0 -216
  147. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreDefault.scss +0 -2
  148. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreDjango.scss +0 -2
  149. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreEclipse.scss +0 -2
  150. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreEmacs.scss +0 -2
  151. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreFadeToGrey.scss +0 -2
  152. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreMDUltra.scss +0 -2
  153. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreMidnight.scss +0 -2
  154. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreRDark.scss +0 -2
  155. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeDefault.scss +0 -7
  156. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeDjango.scss +0 -36
  157. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeEclipse.scss +0 -48
  158. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeEmacs.scss +0 -32
  159. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeFadeToGrey.scss +0 -36
  160. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeMDUltra.scss +0 -32
  161. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeMidnight.scss +0 -32
  162. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeRDark.scss +0 -32
  163. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_theme_template.scss +0 -120
  164. data/repository/syntaxhighlighter/shAutoloader.js +0 -17
  165. data/repository/syntaxhighlighter/shBrushAS3.js +0 -59
  166. data/repository/syntaxhighlighter/shBrushAppleScript.js +0 -75
  167. data/repository/syntaxhighlighter/shBrushBash.js +0 -59
  168. data/repository/syntaxhighlighter/shBrushCSharp.js +0 -65
  169. data/repository/syntaxhighlighter/shBrushColdFusion.js +0 -100
  170. data/repository/syntaxhighlighter/shBrushCpp.js +0 -97
  171. data/repository/syntaxhighlighter/shBrushCss.js +0 -91
  172. data/repository/syntaxhighlighter/shBrushDelphi.js +0 -55
  173. data/repository/syntaxhighlighter/shBrushDiff.js +0 -41
  174. data/repository/syntaxhighlighter/shBrushErlang.js +0 -52
  175. data/repository/syntaxhighlighter/shBrushGroovy.js +0 -67
  176. data/repository/syntaxhighlighter/shBrushJScript.js +0 -52
  177. data/repository/syntaxhighlighter/shBrushJava.js +0 -57
  178. data/repository/syntaxhighlighter/shBrushJavaFX.js +0 -58
  179. data/repository/syntaxhighlighter/shBrushPerl.js +0 -72
  180. data/repository/syntaxhighlighter/shBrushPhp.js +0 -88
  181. data/repository/syntaxhighlighter/shBrushPlain.js +0 -33
  182. data/repository/syntaxhighlighter/shBrushPowerShell.js +0 -74
  183. data/repository/syntaxhighlighter/shBrushPython.js +0 -64
  184. data/repository/syntaxhighlighter/shBrushRuby.js +0 -55
  185. data/repository/syntaxhighlighter/shBrushSass.js +0 -94
  186. data/repository/syntaxhighlighter/shBrushScala.js +0 -51
  187. data/repository/syntaxhighlighter/shBrushSql.js +0 -66
  188. data/repository/syntaxhighlighter/shBrushVb.js +0 -56
  189. data/repository/syntaxhighlighter/shBrushXml.js +0 -69
  190. data/repository/syntaxhighlighter/shCore.js +0 -17
  191. data/repository/syntaxhighlighter/shLegacy.js +0 -17
@@ -1,28 +0,0 @@
1
- /*!
2
- * Modernizr JavaScript library 1.5
3
- * http://www.modernizr.com/
4
- *
5
- * Copyright (c) 2009-2010 Faruk Ates - http://farukat.es/
6
- * Dual-licensed under the BSD and MIT licenses.
7
- * http://www.modernizr.com/license/
8
- *
9
- * Featuring major contributions by
10
- * Paul Irish - http://paulirish.com
11
- */
12
- window.Modernizr=function(i,e,I){function C(a,b){for(var c in a)if(m[a[c]]!==I&&(!b||b(a[c],D)))return true}function r(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1);return!!C([a,"Webkit"+c,"Moz"+c,"O"+c,"ms"+c,"Khtml"+c],b)}function P(){j[E]=function(a){for(var b=0,c=a.length;b<c;b++)J[a[b]]=!!(a[b]in n);return J}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));j[Q]=function(a){for(var b=0,c,h=a.length;b<h;b++){n.setAttribute("type",a[b]);if(c=n.type!==
13
- "text"){n.value=K;/tel|search/.test(n.type)||(c=/url|email/.test(n.type)?n.checkValidity&&n.checkValidity()===false:n.value!=K)}L[a[b]]=!!c}return L}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var j={},s=e.documentElement,D=e.createElement("modernizr"),m=D.style,n=e.createElement("input"),E="input",Q=E+"types",K=":)",M=Object.prototype.toString,y=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),d={},L={},J={},N=[],u=function(){var a={select:"input",
14
- change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},b={};return function(c,h){var t=arguments.length==1;if(t&&b[c])return b[c];h=h||document.createElement(a[c]||"div");c="on"+c;var g=c in h;if(!g&&h.setAttribute){h.setAttribute(c,"return;");g=typeof h[c]=="function"}h=null;return t?(b[c]=g):g}}(),F={}.hasOwnProperty,O;O=typeof F!=="undefined"&&typeof F.call!=="undefined"?function(a,b){return F.call(a,b)}:function(a,b){return b in a&&typeof a.constructor.prototype[b]==="undefined"};
15
- d.canvas=function(){return!!e.createElement("canvas").getContext};d.canvastext=function(){return!!(d.canvas()&&typeof e.createElement("canvas").getContext("2d").fillText=="function")};d.geolocation=function(){return!!navigator.geolocation};d.crosswindowmessaging=function(){return!!i.postMessage};d.websqldatabase=function(){var a=!!i.openDatabase;if(a)try{a=!!openDatabase("testdb","1.0","html5 test db",2E5)}catch(b){a=false}return a};d.indexedDB=function(){return!!i.indexedDB};d.hashchange=function(){return u("hashchange",
16
- i)&&(document.documentMode===I||document.documentMode>7)};d.historymanagement=function(){return!!(i.history&&history.pushState)};d.draganddrop=function(){return u("drag")&&u("dragstart")&&u("dragenter")&&u("dragover")&&u("dragleave")&&u("dragend")&&u("drop")};d.websockets=function(){return"WebSocket"in i};d.rgba=function(){m.cssText="background-color:rgba(150,255,150,.5)";return(""+m.backgroundColor).indexOf("rgba")!==-1};d.hsla=function(){m.cssText="background-color:hsla(120,40%,100%,.5)";return(""+
17
- m.backgroundColor).indexOf("rgba")!==-1};d.multiplebgs=function(){m.cssText="background:url(//:),url(//:),red url(//:)";return/(url\s*\(.*?){3}/.test(m.background)};d.backgroundsize=function(){return r("backgroundSize")};d.borderimage=function(){return r("borderImage")};d.borderradius=function(){return r("borderRadius","",function(a){return(""+a).indexOf("orderRadius")!==-1})};d.boxshadow=function(){return r("boxShadow")};d.opacity=function(){var a=y.join("opacity:.5;")+"";m.cssText=a;return(""+m.opacity).indexOf("0.5")!==
18
- -1};d.cssanimations=function(){return r("animationName")};d.csscolumns=function(){return r("columnCount")};d.cssgradients=function(){var a=("background-image:"+y.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+y.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);m.cssText=a;return(""+m.backgroundImage).indexOf("gradient")!==-1};d.cssreflections=function(){return r("boxReflect")};d.csstransforms=function(){return!!C(["transformProperty",
19
- "WebkitTransform","MozTransform","OTransform","msTransform"])};d.csstransforms3d=function(){var a=!!C(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);if(a){var b=document.createElement("style"),c=e.createElement("div");b.textContent="@media ("+y.join("transform-3d),(")+"modernizr){#modernizr{height:3px}}";e.getElementsByTagName("head")[0].appendChild(b);c.id="modernizr";s.appendChild(c);a=c.offsetHeight===3;b.parentNode.removeChild(b);c.parentNode.removeChild(c)}return a};
20
- d.csstransitions=function(){return r("transitionProperty")};d.fontface=function(){var a;if(/*@cc_on@if(@_jscript_version>=5)!@end@*/0)a=true;else{var b=e.createElement("style"),c=e.createElement("span"),h,t=false,g=e.body,o,w;b.textContent="@font-face{font-family:testfont;src:url('data:font/ttf;base64,AAEAAAAMAIAAAwBAT1MvMliohmwAAADMAAAAVmNtYXCp5qrBAAABJAAAANhjdnQgACICiAAAAfwAAAAEZ2FzcP//AAMAAAIAAAAACGdseWYv5OZoAAACCAAAANxoZWFk69bnvwAAAuQAAAA2aGhlYQUJAt8AAAMcAAAAJGhtdHgGDgC4AAADQAAAABRsb2NhAIQAwgAAA1QAAAAMbWF4cABVANgAAANgAAAAIG5hbWUgXduAAAADgAAABPVwb3N03NkzmgAACHgAAAA4AAECBAEsAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAACAAMDAAAAAAAAgAACbwAAAAoAAAAAAAAAAFBmRWQAAAAgqS8DM/8zAFwDMwDNAAAABQAAAAAAAAAAAAMAAAADAAAAHAABAAAAAABGAAMAAQAAAK4ABAAqAAAABgAEAAEAAgAuqQD//wAAAC6pAP///9ZXAwAAAAAAAAACAAAABgBoAAAAAAAvAAEAAAAAAAAAAAAAAAAAAAABAAIAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEACoAAAAGAAQAAQACAC6pAP//AAAALqkA////1lcDAAAAAAAAAAIAAAAiAogAAAAB//8AAgACACIAAAEyAqoAAwAHAC6xAQAvPLIHBADtMrEGBdw8sgMCAO0yALEDAC88sgUEAO0ysgcGAfw8sgECAO0yMxEhESczESMiARDuzMwCqv1WIgJmAAACAFUAAAIRAc0ADwAfAAATFRQWOwEyNj0BNCYrASIGARQGKwEiJj0BNDY7ATIWFX8aIvAiGhoi8CIaAZIoN/43KCg3/jcoAWD0JB4eJPQkHh7++EY2NkbVRjY2RgAAAAABAEH/+QCdAEEACQAANjQ2MzIWFAYjIkEeEA8fHw8QDxwWFhwWAAAAAQAAAAIAAIuYbWpfDzz1AAsEAAAAAADFn9IuAAAAAMWf0i797/8zA4gDMwAAAAgAAgAAAAAAAAABAAADM/8zAFwDx/3v/98DiAABAAAAAAAAAAAAAAAAAAAABQF2ACIAAAAAAVUAAAJmAFUA3QBBAAAAKgAqACoAWgBuAAEAAAAFAFAABwBUAAQAAgAAAAEAAQAAAEAALgADAAMAAAAQAMYAAQAAAAAAAACLAAAAAQAAAAAAAQAhAIsAAQAAAAAAAgAFAKwAAQAAAAAAAwBDALEAAQAAAAAABAAnAPQAAQAAAAAABQAKARsAAQAAAAAABgAmASUAAQAAAAAADgAaAUsAAwABBAkAAAEWAWUAAwABBAkAAQBCAnsAAwABBAkAAgAKAr0AAwABBAkAAwCGAscAAwABBAkABABOA00AAwABBAkABQAUA5sAAwABBAkABgBMA68AAwABBAkADgA0A/tDb3B5cmlnaHQgMjAwOSBieSBEYW5pZWwgSm9obnNvbi4gIFJlbGVhc2VkIHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgT3BlbiBGb250IExpY2Vuc2UuIEtheWFoIExpIGdseXBocyBhcmUgcmVsZWFzZWQgdW5kZXIgdGhlIEdQTCB2ZXJzaW9uIDMuYmFlYzJhOTJiZmZlNTAzMiAtIHN1YnNldCBvZiBKdXJhTGlnaHRiYWVjMmE5MmJmZmU1MDMyIC0gc3Vic2V0IG9mIEZvbnRGb3JnZSAyLjAgOiBKdXJhIExpZ2h0IDogMjMtMS0yMDA5YmFlYzJhOTJiZmZlNTAzMiAtIHN1YnNldCBvZiBKdXJhIExpZ2h0VmVyc2lvbiAyIGJhZWMyYTkyYmZmZTUwMzIgLSBzdWJzZXQgb2YgSnVyYUxpZ2h0aHR0cDovL3NjcmlwdHMuc2lsLm9yZy9PRkwAQwBvAHAAeQByAGkAZwBoAHQAIAAyADAAMAA5ACAAYgB5ACAARABhAG4AaQBlAGwAIABKAG8AaABuAHMAbwBuAC4AIAAgAFIAZQBsAGUAYQBzAGUAZAAgAHUAbgBkAGUAcgAgAHQAaABlACAAdABlAHIAbQBzACAAbwBmACAAdABoAGUAIABPAHAAZQBuACAARgBvAG4AdAAgAEwAaQBjAGUAbgBzAGUALgAgAEsAYQB5AGEAaAAgAEwAaQAgAGcAbAB5AHAAaABzACAAYQByAGUAIAByAGUAbABlAGEAcwBlAGQAIAB1AG4AZABlAHIAIAB0AGgAZQAgAEcAUABMACAAdgBlAHIAcwBpAG8AbgAgADMALgBiAGEAZQBjADIAYQA5ADIAYgBmAGYAZQA1ADAAMwAyACAALQAgAHMAdQBiAHMAZQB0ACAAbwBmACAASgB1AHIAYQBMAGkAZwBoAHQAYgBhAGUAYwAyAGEAOQAyAGIAZgBmAGUANQAwADMAMgAgAC0AIABzAHUAYgBzAGUAdAAgAG8AZgAgAEYAbwBuAHQARgBvAHIAZwBlACAAMgAuADAAIAA6ACAASgB1AHIAYQAgAEwAaQBnAGgAdAAgADoAIAAyADMALQAxAC0AMgAwADAAOQBiAGEAZQBjADIAYQA5ADIAYgBmAGYAZQA1ADAAMwAyACAALQAgAHMAdQBiAHMAZQB0ACAAbwBmACAASgB1AHIAYQAgAEwAaQBnAGgAdABWAGUAcgBzAGkAbwBuACAAMgAgAGIAYQBlAGMAMgBhADkAMgBiAGYAZgBlADUAMAAzADIAIAAtACAAcwB1AGIAcwBlAHQAIABvAGYAIABKAHUAcgBhAEwAaQBnAGgAdABoAHQAdABwADoALwAvAHMAYwByAGkAcAB0AHMALgBzAGkAbAAuAG8AcgBnAC8ATwBGAEwAAAAAAgAAAAAAAP+BADMAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAQACAQIAEQt6ZXJva2F5YWhsaQ==')}";
21
- e.getElementsByTagName("head")[0].appendChild(b);c.setAttribute("style","font:99px _,arial,helvetica;position:absolute;visibility:hidden");if(!g){g=s.appendChild(e.createElement("fontface"));t=true}c.innerHTML="........";c.id="fonttest";g.appendChild(c);h=c.offsetWidth*c.offsetHeight;c.style.font="99px testfont,_,arial,helvetica";a=h!==c.offsetWidth*c.offsetHeight;var v=function(){if(g.parentNode){a=j.fontface=h!==c.offsetWidth*c.offsetHeight;s.className=s.className.replace(/(no-)?fontface\b/,"")+
22
- (a?" ":" no-")+"fontface"}};setTimeout(v,75);setTimeout(v,150);addEventListener("load",function(){v();(w=true)&&o&&o(a);setTimeout(function(){t||(g=c);g.parentNode.removeChild(g);b.parentNode.removeChild(b)},50)},false)}j._fontfaceready=function(p){w||a?p(a):(o=p)};return a||h!==c.offsetWidth};d.video=function(){var a=e.createElement("video"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('video/ogg; codecs="theora"');b.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"');b.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"')}return b};
23
- d.audio=function(){var a=e.createElement("audio"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('audio/ogg; codecs="vorbis"');b.mp3=a.canPlayType("audio/mpeg;");b.wav=a.canPlayType('audio/wav; codecs="1"');b.m4a=a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")}return b};d.localStorage=function(){return"localStorage"in i&&i.localStorage!==null};d.sessionStorage=function(){try{return"sessionStorage"in i&&i.sessionStorage!==null}catch(a){return false}};d.webworkers=function(){return!!i.Worker};
24
- d.applicationCache=function(){var a=i.applicationCache;return!!(a&&typeof a.status!="undefined"&&typeof a.update=="function"&&typeof a.swapCache=="function")};d.svg=function(){return!!e.createElementNS&&!!e.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect};d.smil=function(){return!!e.createElementNS&&/SVG/.test(M.call(e.createElementNS("http://www.w3.org/2000/svg","animate")))};d.svgclippaths=function(){return!!e.createElementNS&&/SVG/.test(M.call(e.createElementNS("http://www.w3.org/2000/svg",
25
- "clipPath")))};for(var z in d)if(O(d,z))N.push(((j[z.toLowerCase()]=d[z]())?"":"no-")+z.toLowerCase());j[E]||P();j.addTest=function(a,b){a=a.toLowerCase();if(!j[a]){b=!!b();s.className+=" "+(b?"":"no-")+a;j[a]=b;return j}};m.cssText="";D=n=null;(function(){var a=e.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1})()&&function(a,b){function c(f,k){if(o[f])o[f].styleSheet.cssText+=k;else{var l=t[G],q=b[A]("style");q.media=f;l.insertBefore(q,l[G]);o[f]=q;c(f,k)}}function h(f,
26
- k){for(var l=new RegExp("\\b("+w+")\\b(?!.*[;}])","gi"),q=function(B){return".iepp_"+B},x=-1;++x<f.length;){k=f[x].media||k;h(f[x].imports,k);c(k,f[x].cssText.replace(l,q))}}for(var t=b.documentElement,g=b.createDocumentFragment(),o={},w="abbr|article|aside|audio|canvas|command|datalist|details|figure|figcaption|footer|header|hgroup|keygen|mark|meter|nav|output|progress|section|source|summary|time|video",v=w.split("|"),p=[],H=-1,G="firstChild",A="createElement";++H<v.length;){b[A](v[H]);g[A](v[H])}g=
27
- g.appendChild(b[A]("div"));a.attachEvent("onbeforeprint",function(){for(var f,k=b.getElementsByTagName("*"),l,q,x=new RegExp("^"+w+"$","i"),B=-1;++B<k.length;)if((f=k[B])&&(q=f.nodeName.match(x))){l=new RegExp("^\\s*<"+q+"(.*)\\/"+q+">\\s*$","i");g.innerHTML=f.outerHTML.replace(/\r|\n/g," ").replace(l,f.currentStyle.display=="block"?"<div$1/div>":"<span$1/span>");l=g.childNodes[0];l.className+=" iepp_"+q;l=p[p.length]=[f,l];f.parentNode.replaceChild(l[1],l[0])}h(b.styleSheets,"all")});a.attachEvent("onafterprint",
28
- function(){for(var f=-1,k;++f<p.length;)p[f][1].parentNode.replaceChild(p[f][0],p[f][1]);for(k in o)t[G].removeChild(o[k]);o={};p=[]})}(this,e);j._enableHTML5=true;j._version="1.5";s.className=s.className.replace(/\bno-js\b/,"")+" js";s.className+=" "+N.join(" ");return j}(this,this.document);
@@ -1 +0,0 @@
1
- //= require "1.5"
@@ -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>
@@ -1,60 +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>existence.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="existence.js"></a>existence.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="#existence.js" >existence.js</a></td><td class=SDescription></td></tr><tr class="SGroup"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#is_defined" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">is_defined</a></td><td class=SDescription>Checks if a variable is undefined. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#is_undefined" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">is_undefined</a></td><td class=SDescription>Checks if a variable is defined. </td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#is_typeof" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">is_typeof</a></td><td class=SDescription>Strict type checking by comparing constructors. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#is_numeric" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">is_numeric</a></td><td class=SDescription>Determine if the suspect string represents a numeric value. </td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#is_string" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">is_string</a></td><td class=SDescription>Determine the suspect is a String. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#is_array" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">is_array</a></td><td class=SDescription>Determine if the suspect is an Array. </td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#is_number" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">is_number</a></td><td class=SDescription>Determines if the suspect is a Number. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#is_date" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')">is_date</a></td><td class=SDescription>Determines if the suspect is a Date. </td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#is_bool" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')">is_bool</a></td><td class=SDescription>Determines if the suspect is a Boolean. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#is_regex" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')">is_regex</a></td><td class=SDescription>Determines if the suspect is a RegExp. </td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
15
-
16
- <div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Functions"></a>Functions</h3></div></div>
17
-
18
- <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="is_defined"></a>is_defined</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_defined = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Checks if a variable is undefined.&nbsp; This is a convenience method to enhance clarity in your conditions.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>suspect</td><td class=CDLDescription>suspect variable to test</td></tr></table><h4 class=CHeading>Returns</h4><p>bool</p><h4 class=CHeading>See Also</h4><p><a href="#is_undefined" class=LFunction id=link11 onMouseOver="ShowTip(event, 'tt2', 'link11')" onMouseOut="HideTip('tt2')">is_undefined</a></p></div></div></div>
19
-
20
- <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="is_undefined"></a>is_undefined</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_undefined = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Checks if a variable is defined.&nbsp; This is a convenience method to enhance clarity in your conditions.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>suspect</td><td class=CDLDescription>suspect variable to test</td></tr></table><h4 class=CHeading>Returns</h4><p>bool</p><h4 class=CHeading>See Also</h4><p><a href="#is_defined" class=LFunction id=link12 onMouseOver="ShowTip(event, 'tt1', 'link12')" onMouseOut="HideTip('tt1')">is_defined</a></p></div></div></div>
21
-
22
- <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="is_typeof"></a>is_typeof</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_typeof = function(</td><td class="PParameter prettyprint " nowrap>type,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Strict type checking by comparing constructors.&nbsp; (Pro Javascript Techniques, John Resig, Apress p.24 Listing 2-8: Example of using the constructor property to determine the type of an object <a href="http://amzn.to/fTsDRg" class=LURL target=_top>http://amzn.to/fTsDRg</a>) Parameters: type - The type you expect (ie.&nbsp; String, Number, Array (note: without quotes): is_typeof(String, &lsquo;hello&rsquo;): // true) suspect - The suspect variable to check against type</p><h4 class=CHeading>Returns</h4><p>bool</p><h4 class=CHeading>See Also</h4><p><a href="#is_numeric" class=LFunction id=link13 onMouseOver="ShowTip(event, 'tt4', 'link13')" onMouseOut="HideTip('tt4')">is_numeric</a>, <a href="#is_string" class=LFunction id=link14 onMouseOver="ShowTip(event, 'tt5', 'link14')" onMouseOut="HideTip('tt5')">is_string</a>, <a href="#is_array" class=LFunction id=link15 onMouseOver="ShowTip(event, 'tt6', 'link15')" onMouseOut="HideTip('tt6')">is_array</a>, <a href="#is_number" class=LFunction id=link16 onMouseOver="ShowTip(event, 'tt7', 'link16')" onMouseOut="HideTip('tt7')">is_number</a>, <a href="#is_date" class=LFunction id=link17 onMouseOver="ShowTip(event, 'tt8', 'link17')" onMouseOut="HideTip('tt8')">is_date</a>, <a href="#is_bool" class=LFunction id=link18 onMouseOver="ShowTip(event, 'tt9', 'link18')" onMouseOut="HideTip('tt9')">is_bool</a>, <a href="#is_regex" class=LFunction id=link19 onMouseOver="ShowTip(event, 'tt10', 'link19')" onMouseOut="HideTip('tt10')">is_regex</a></p></div></div></div>
23
-
24
- <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="is_numeric"></a>is_numeric</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_numeric = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Determine if the suspect string represents a numeric value.&nbsp; (JavaScript: The Good Parts, Douglas Crockford, O&rsquo;Reilly p.69 Chapter 7: Regular Expressions An Example) Parameters: suspect - variable to check for numeric value</p><h4 class=CHeading>Returns</h4><p>bool</p><h4 class=CHeading>See Also</h4><p><a href="#is_number" class=LFunction id=link20 onMouseOver="ShowTip(event, 'tt7', 'link20')" onMouseOut="HideTip('tt7')">is_number</a></p></div></div></div>
25
-
26
- <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="is_string"></a>is_string</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_string = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Determine the suspect is a String.&nbsp; This is a proxy method for is_typeof(String, suspect).</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>suspect</td><td class=CDLDescription>supect variable to test</td></tr></table><h4 class=CHeading>Returns</h4><p>bool</p><h4 class=CHeading>See Also</h4><p><a href="#is_typeof" class=LFunction id=link21 onMouseOver="ShowTip(event, 'tt3', 'link21')" onMouseOut="HideTip('tt3')">is_typeof</a>, <a href="#is_numeric" class=LFunction id=link22 onMouseOver="ShowTip(event, 'tt4', 'link22')" onMouseOut="HideTip('tt4')">is_numeric</a>, <a href="#is_array" class=LFunction id=link23 onMouseOver="ShowTip(event, 'tt6', 'link23')" onMouseOut="HideTip('tt6')">is_array</a>, <a href="#is_number" class=LFunction id=link24 onMouseOver="ShowTip(event, 'tt7', 'link24')" onMouseOut="HideTip('tt7')">is_number</a>, <a href="#is_date" class=LFunction id=link25 onMouseOver="ShowTip(event, 'tt8', 'link25')" onMouseOut="HideTip('tt8')">is_date</a>, <a href="#is_bool" class=LFunction id=link26 onMouseOver="ShowTip(event, 'tt9', 'link26')" onMouseOut="HideTip('tt9')">is_bool</a>, <a href="#is_regex" class=LFunction id=link27 onMouseOver="ShowTip(event, 'tt10', 'link27')" onMouseOut="HideTip('tt10')">is_regex</a></p></div></div></div>
27
-
28
- <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="is_array"></a>is_array</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_array = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Determine if the suspect is an Array.&nbsp; This is a proxy method for is_typeof(Array, suspect).</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>suspect</td><td class=CDLDescription>suspect variable to test</td></tr></table><h4 class=CHeading>Returns</h4><p>bool</p><h4 class=CHeading>See Also</h4><p><a href="#is_typeof" class=LFunction id=link28 onMouseOver="ShowTip(event, 'tt3', 'link28')" onMouseOut="HideTip('tt3')">is_typeof</a>, <a href="#is_numeric" class=LFunction id=link29 onMouseOver="ShowTip(event, 'tt4', 'link29')" onMouseOut="HideTip('tt4')">is_numeric</a>, <a href="#is_string" class=LFunction id=link30 onMouseOver="ShowTip(event, 'tt5', 'link30')" onMouseOut="HideTip('tt5')">is_string</a>, <a href="#is_number" class=LFunction id=link31 onMouseOver="ShowTip(event, 'tt7', 'link31')" onMouseOut="HideTip('tt7')">is_number</a>, <a href="#is_date" class=LFunction id=link32 onMouseOver="ShowTip(event, 'tt8', 'link32')" onMouseOut="HideTip('tt8')">is_date</a>, <a href="#is_bool" class=LFunction id=link33 onMouseOver="ShowTip(event, 'tt9', 'link33')" onMouseOut="HideTip('tt9')">is_bool</a>, <a href="#is_regex" class=LFunction id=link34 onMouseOver="ShowTip(event, 'tt10', 'link34')" onMouseOut="HideTip('tt10')">is_regex</a></p></div></div></div>
29
-
30
- <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="is_number"></a>is_number</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_number = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Determines if the suspect is a Number.&nbsp; This is a proxy method for is_typeof(Number, suspect).</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>suspect</td><td class=CDLDescription>suspect variable to test</td></tr></table><h4 class=CHeading>Returns</h4><p>bool</p><h4 class=CHeading>See Also</h4><p><a href="#is_typeof" class=LFunction id=link35 onMouseOver="ShowTip(event, 'tt3', 'link35')" onMouseOut="HideTip('tt3')">is_typeof</a>, <a href="#is_numeric" class=LFunction id=link36 onMouseOver="ShowTip(event, 'tt4', 'link36')" onMouseOut="HideTip('tt4')">is_numeric</a>, <a href="#is_string" class=LFunction id=link37 onMouseOver="ShowTip(event, 'tt5', 'link37')" onMouseOut="HideTip('tt5')">is_string</a>, <a href="#is_array" class=LFunction id=link38 onMouseOver="ShowTip(event, 'tt6', 'link38')" onMouseOut="HideTip('tt6')">is_array</a>, <a href="#is_date" class=LFunction id=link39 onMouseOver="ShowTip(event, 'tt8', 'link39')" onMouseOut="HideTip('tt8')">is_date</a>, <a href="#is_bool" class=LFunction id=link40 onMouseOver="ShowTip(event, 'tt9', 'link40')" onMouseOut="HideTip('tt9')">is_bool</a>, <a href="#is_regex" class=LFunction id=link41 onMouseOver="ShowTip(event, 'tt10', 'link41')" onMouseOut="HideTip('tt10')">is_regex</a></p></div></div></div>
31
-
32
- <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="is_date"></a>is_date</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_date = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Determines if the suspect is a Date.&nbsp; This is a proxy method for is_typeof(Date, suspect).</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>suspect</td><td class=CDLDescription>suspect variable to test</td></tr></table><h4 class=CHeading>Returns</h4><p>bool</p><h4 class=CHeading>See Also</h4><p><a href="#is_typeof" class=LFunction id=link42 onMouseOver="ShowTip(event, 'tt3', 'link42')" onMouseOut="HideTip('tt3')">is_typeof</a>, <a href="#is_numeric" class=LFunction id=link43 onMouseOver="ShowTip(event, 'tt4', 'link43')" onMouseOut="HideTip('tt4')">is_numeric</a>, <a href="#is_string" class=LFunction id=link44 onMouseOver="ShowTip(event, 'tt5', 'link44')" onMouseOut="HideTip('tt5')">is_string</a>, <a href="#is_array" class=LFunction id=link45 onMouseOver="ShowTip(event, 'tt6', 'link45')" onMouseOut="HideTip('tt6')">is_array</a>, <a href="#is_number" class=LFunction id=link46 onMouseOver="ShowTip(event, 'tt7', 'link46')" onMouseOut="HideTip('tt7')">is_number</a>, <a href="#is_bool" class=LFunction id=link47 onMouseOver="ShowTip(event, 'tt9', 'link47')" onMouseOut="HideTip('tt9')">is_bool</a>, <a href="#is_regex" class=LFunction id=link48 onMouseOver="ShowTip(event, 'tt10', 'link48')" onMouseOut="HideTip('tt10')">is_regex</a></p></div></div></div>
33
-
34
- <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="is_bool"></a>is_bool</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_bool = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Determines if the suspect is a Boolean.&nbsp; This is a proxy method for is_typeof(Boolean, suspect).</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>suspect</td><td class=CDLDescription>suspect variable to test</td></tr></table><h4 class=CHeading>Returns</h4><p>bool</p><h4 class=CHeading>See Also</h4><p><a href="#is_typeof" class=LFunction id=link49 onMouseOver="ShowTip(event, 'tt3', 'link49')" onMouseOut="HideTip('tt3')">is_typeof</a>, <a href="#is_numeric" class=LFunction id=link50 onMouseOver="ShowTip(event, 'tt4', 'link50')" onMouseOut="HideTip('tt4')">is_numeric</a>, <a href="#is_string" class=LFunction id=link51 onMouseOver="ShowTip(event, 'tt5', 'link51')" onMouseOut="HideTip('tt5')">is_string</a>, <a href="#is_array" class=LFunction id=link52 onMouseOver="ShowTip(event, 'tt6', 'link52')" onMouseOut="HideTip('tt6')">is_array</a>, <a href="#is_number" class=LFunction id=link53 onMouseOver="ShowTip(event, 'tt7', 'link53')" onMouseOut="HideTip('tt7')">is_number</a>, <a href="#is_regex" class=LFunction id=link54 onMouseOver="ShowTip(event, 'tt10', 'link54')" onMouseOut="HideTip('tt10')">is_regex</a></p></div></div></div>
35
-
36
- <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="is_regex"></a>is_regex</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_regex = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Determines if the suspect is a RegExp.&nbsp; This is a proxy method for is_typeof(RegExp, suspect).</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>suspect</td><td class=CDLDescription>suspect variable to test</td></tr></table><h4 class=CHeading>Returns</h4><p>bool</p><h4 class=CHeading>See Also</h4><p><a href="#is_typeof" class=LFunction id=link55 onMouseOver="ShowTip(event, 'tt3', 'link55')" onMouseOut="HideTip('tt3')">is_typeof</a>, <a href="#is_numeric" class=LFunction id=link56 onMouseOver="ShowTip(event, 'tt4', 'link56')" onMouseOut="HideTip('tt4')">is_numeric</a>, <a href="#is_string" class=LFunction id=link57 onMouseOver="ShowTip(event, 'tt5', 'link57')" onMouseOut="HideTip('tt5')">is_string</a>, <a href="#is_array" class=LFunction id=link58 onMouseOver="ShowTip(event, 'tt6', 'link58')" onMouseOut="HideTip('tt6')">is_array</a>, <a href="#is_number" class=LFunction id=link59 onMouseOver="ShowTip(event, 'tt7', 'link59')" onMouseOut="HideTip('tt7')">is_number</a>, <a href="#is_bool" class=LFunction id=link60 onMouseOver="ShowTip(event, 'tt9', 'link60')" onMouseOut="HideTip('tt9')">is_bool</a></p></div></div></div>
37
-
38
- </div><!--Content-->
39
-
40
-
41
- <div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
42
-
43
-
44
- <div id=Menu><div class=MEntry><div class=MFile><a href="application-js.html">application.js</a></div></div><div class=MEntry><div class=MFile id=MSelected>existence.js</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"><!--
45
- var searchPanel = new SearchPanel("searchPanel", "HTML", "../../search");
46
- --></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-->
47
-
48
-
49
-
50
- <!--START_ND_TOOLTIPS-->
51
- <div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_defined = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Checks if a variable is undefined. </div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_undefined = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Checks if a variable is defined. </div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_typeof = function(</td><td class="PParameter prettyprint " nowrap>type,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Strict type checking by comparing constructors. </div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_numeric = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Determine if the suspect string represents a numeric value. </div></div><div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_string = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Determine the suspect is a String. </div></div><div class=CToolTip id="tt6"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_array = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Determine if the suspect is an Array. </div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_number = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Determines if the suspect is a Number. </div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_date = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Determines if the suspect is a Date. </div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_bool = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Determines if the suspect is a Boolean. </div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_regex = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Determines if the suspect is a RegExp. </div></div><!--END_ND_TOOLTIPS-->
52
-
53
-
54
-
55
-
56
- <div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>
57
-
58
-
59
- <script language=JavaScript><!--
60
- if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
@@ -1,55 +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>extend.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="extend.js"></a>extend.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="#extend.js" >extend.js</a></td><td class=SDescription></td></tr><tr class="SGroup"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#method" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">method</a></td><td class=SDescription>Method to add a method to an object (ie. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#unless" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">unless</a></td><td class=SDescription>Function to better express negative conditions (ie. </td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
15
-
16
- <div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Functions"></a>Functions</h3></div></div>
17
-
18
- <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="method"></a>method</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>Function.prototype.method = function(</td><td class="PParameter prettyprint " nowrap>name,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>func</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Method to add a method to an object (ie.&nbsp; String.method(&lsquo;my_method&rsquo;, my_func); // &lsquo;hello&rsquo;.my_method())</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>name</td><td class=CDLDescription>name of the method</td></tr><tr><td class=CDLEntry>func</td><td class=CDLDescription>function definition</td></tr></table><h4 class=CHeading>Returns</h4><p>this (chainable)</p><blockquote><pre>String.method('custom_method', function() {
19
- // define custom_method
20
- });
21
-
22
- &quot;hello&quot;.custom_method();</pre></blockquote></div></div></div>
23
-
24
- <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="unless"></a>unless</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var unless = function(</td><td class="PParameter prettyprint " nowrap>expression,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>callback,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>fallback</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Function to better express negative conditions (ie. if (!something))</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>expression</td><td class=CDLDescription>expression to be tested</td></tr><tr><td class=CDLEntry>callback</td><td class=CDLDescription>function to be executed unless expression is true (see how that works)</td></tr><tr><td class=CDLEntry>fallback</td><td class=CDLDescription>function to be executed if the expression is false (optional)</td></tr></table><h4 class=CHeading>Returns</h4><p>undefined</p><blockquote><pre>unless(test_expression === 'some condition',
25
- function() {
26
- alert('we do something');
27
- },
28
- function() {
29
- alert('we can do something if it meets the condition too');
30
- }
31
- );</pre></blockquote></div></div></div>
32
-
33
- </div><!--Content-->
34
-
35
-
36
- <div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
37
-
38
-
39
- <div id=Menu><div class=MEntry><div class=MFile><a href="application-js.html">application.js</a></div></div><div class=MEntry><div class=MFile><a href="existence-js.html">existence.js</a></div></div><div class=MEntry><div class=MFile id=MSelected>extend.js</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"><!--
40
- var searchPanel = new SearchPanel("searchPanel", "HTML", "../../search");
41
- --></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-->
42
-
43
-
44
-
45
- <!--START_ND_TOOLTIPS-->
46
- <div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>Function.prototype.method = function(</td><td class="PParameter prettyprint " nowrap>name,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>func</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Method to add a method to an object (ie. </div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var unless = function(</td><td class="PParameter prettyprint " nowrap>expression,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>callback,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>fallback</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Function to better express negative conditions (ie. </div></div><!--END_ND_TOOLTIPS-->
47
-
48
-
49
-
50
-
51
- <div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>
52
-
53
-
54
- <script language=JavaScript><!--
55
- if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>