ninjs 0.12.2 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/bin/ninjs +10 -5
- data/lib/ninjs.rb +1 -1
- data/lib/ninjs/command.rb +24 -27
- data/lib/ninjs/generator.rb +37 -0
- data/lib/ninjs/project.rb +3 -2
- data/ninjs.gemspec +4 -1
- data/repository/ninjs/core/application.js +2 -1
- data/repository/ninjs/core/extend.js +0 -2
- data/repository/ninjs/docs/Data/ConfigFileInfo.nd +0 -0
- data/repository/ninjs/docs/Data/FileInfo.nd +7 -7
- data/repository/ninjs/docs/Data/ImageReferenceTable.nd +0 -0
- data/repository/ninjs/docs/Data/IndexInfo.nd +0 -0
- data/repository/ninjs/docs/Data/SymbolTable.nd +0 -0
- data/repository/ninjs/docs/files/core/existence-js.html +6 -6
- data/repository/ninjs/docs/files/core/extend-js.html +11 -2
- data/repository/ninjs/docs/index/Functions.html +6 -2
- data/repository/ninjs/docs/index/General.html +6 -2
- data/repository/ninjs/docs/javascript/searchdata.js +1 -1
- data/repository/ninjs/docs/search/FunctionsU.html +20 -0
- data/repository/ninjs/docs/search/GeneralU.html +20 -0
- metadata +6 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.12.
|
1
|
+
0.12.3
|
data/bin/ninjs
CHANGED
@@ -52,10 +52,15 @@ class NinjsConsole < Rubikon::Application::Base
|
|
52
52
|
option :e
|
53
53
|
option :m
|
54
54
|
command :generate, :object, :obj_name do
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
55
|
+
with = {
|
56
|
+
:model => m.given?,
|
57
|
+
:elements => e.given?
|
58
|
+
}
|
59
|
+
|
60
|
+
Ninjs::Command.generate(object, obj_name, with)
|
61
|
+
end
|
62
|
+
|
63
|
+
command :upgrade do
|
64
|
+
Ninjs::Command.upgrade
|
60
65
|
end
|
61
66
|
end
|
data/lib/ninjs.rb
CHANGED
@@ -5,6 +5,6 @@ module Ninjs
|
|
5
5
|
ROOT_DIR = Dir.getwd
|
6
6
|
end
|
7
7
|
|
8
|
-
%w(dependencies configuration helpers manifest project command
|
8
|
+
%w(dependencies configuration helpers manifest project notification generator command).each do |lib|
|
9
9
|
require "#{Ninjs::LIB_DIR}/ninjs/#{lib}"
|
10
10
|
end
|
data/lib/ninjs/command.rb
CHANGED
@@ -83,36 +83,33 @@ Example:
|
|
83
83
|
DOC
|
84
84
|
end
|
85
85
|
|
86
|
-
def generate(object, name,
|
86
|
+
def generate(object, name, with)
|
87
87
|
begin
|
88
|
-
|
89
|
-
raise "ninjs.conf was not located in #{
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
file << project.config.name + "." + name + ".elements(function({\n\n}));"
|
103
|
-
Ninjs::Notification.added "created #{name.downcase}.elements.js"
|
104
|
-
end unless File.exists? "#{project_path}elements/#{name.downcase}.elements.js"
|
105
|
-
elsif object === 'model'
|
106
|
-
File.open "#{project_path}models/#{name.downcase}.model.js", "w" do |file|
|
107
|
-
file << project.config.name + "." + name + ".set_data({});"
|
108
|
-
Ninjs::Notification.added "created #{name.downcase}.model.js"
|
109
|
-
end unless File.exists? "#{project_path}models/#{name.downcase}.model.js"
|
110
|
-
end
|
111
|
-
rescue
|
112
|
-
# TODO rescue this
|
88
|
+
conf_path = "#{Dir.getwd}/ninjs.conf"
|
89
|
+
raise "ninjs.conf was not located in #{conf_path}" unless File.exists? "#{conf_path}"
|
90
|
+
generator = Ninjs::Generator.new(Ninjs::Project.new, name)
|
91
|
+
|
92
|
+
case object
|
93
|
+
when 'module'
|
94
|
+
generator.generate_module_file(with)
|
95
|
+
generator.generate_elements_file if with[:elements]
|
96
|
+
generator.generate_model_file if with[:model]
|
97
|
+
when 'elements'
|
98
|
+
generator.generate_elements_file
|
99
|
+
when 'model'
|
100
|
+
generator.generate_model_file
|
101
|
+
end #case
|
113
102
|
end
|
114
103
|
end
|
115
104
|
|
116
|
-
|
105
|
+
def upgrade
|
106
|
+
project_path = Dir.getwd << '/'
|
107
|
+
raise "ninjs.conf was not located in #{project_path}" unless File.exists? "#{project_path}ninjs.conf"
|
108
|
+
project = Ninjs::Project.new
|
109
|
+
|
110
|
+
project.create_ninjs_lib_file
|
111
|
+
end
|
112
|
+
|
113
|
+
module_function :create, :watch, :compile, :help, :import, :generate, :upgrade
|
117
114
|
end
|
118
115
|
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module Ninjs
|
2
|
+
class Generator
|
3
|
+
|
4
|
+
def initialize(project, name)
|
5
|
+
@project = project
|
6
|
+
@name = name
|
7
|
+
end
|
8
|
+
|
9
|
+
def generate_module_file(with = { :elements => false, :model => false })
|
10
|
+
File.open "#{@project.project_path}modules/#{@name.downcase}.module.js", "w" do |file|
|
11
|
+
file << "(function(){\n"
|
12
|
+
file << "\tvar self = " + @project.config.name + ".add_module('" + @name + "');\n\n"
|
13
|
+
file << "\t" + '//= require "../elements/' + @name.downcase + '.elements.js"' + "\n\n" if with[:elements]
|
14
|
+
file << "\t" + '//= require "../models/' + @name.downcase + '.model.js"' + "\n\n" if with[:model]
|
15
|
+
file << "\t#{@project.config.name}." + @name + ".actions = function() {\n\n\t}\n\n"
|
16
|
+
file << "\t#{@project.config.name}." + @name + ".run();\n"
|
17
|
+
file << "})();"
|
18
|
+
Ninjs::Notification.added "created #{@name.downcase}.module.js"
|
19
|
+
end unless File.exists? "#{@project.project_path}modules/#{@name.downcase}.module.js"
|
20
|
+
end
|
21
|
+
|
22
|
+
def generate_elements_file()
|
23
|
+
File.open("#{@project.project_path}elements/#{@name.downcase}" + ".elements.js", "w") do |file|
|
24
|
+
file << @project.config.name + "." + @name + ".elements(function({\n\n}));"
|
25
|
+
Ninjs::Notification.added "created #{@name.downcase}.elements.js"
|
26
|
+
end unless File.exists? "#{@project.project_path}elements/#{@name.downcase}.elements.js"
|
27
|
+
end
|
28
|
+
|
29
|
+
def generate_model_file()
|
30
|
+
File.open "#{@project.project_path}models/#{@name.downcase}.model.js", "w" do |file|
|
31
|
+
file << @project.config.name + "." + @name + ".set_data({\n\t\n});"
|
32
|
+
Ninjs::Notification.added "created #{@name.downcase}.model.js"
|
33
|
+
end unless File.exists? "#{@project.project_path}models/#{@name.downcase}.model.js"
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
37
|
+
end
|
data/lib/ninjs/project.rb
CHANGED
@@ -40,6 +40,7 @@ module Ninjs
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def create_ninjs_lib_file
|
43
|
+
operation = File.exists?("#{@project_path}lib/nin.js") ? 'updated' : 'created'
|
43
44
|
ninjs_lib_secretary = Sprockets::Secretary.new(
|
44
45
|
:root => "#{Ninjs::BASE_DIR}",
|
45
46
|
:load_path => ["repository"],
|
@@ -48,7 +49,7 @@ module Ninjs
|
|
48
49
|
|
49
50
|
ninjs_lib_secretary.concatenation.save_to "#{@project_path}lib/nin.js"
|
50
51
|
|
51
|
-
Ninjs::Notification.added "lib/nin.js
|
52
|
+
Ninjs::Notification.added "lib/nin.js #{operation}"
|
52
53
|
end
|
53
54
|
|
54
55
|
def create_utility_lib_file
|
@@ -163,7 +164,7 @@ module Ninjs
|
|
163
164
|
end
|
164
165
|
end
|
165
166
|
|
166
|
-
def write_core(file)
|
167
|
+
def write_core(file)
|
167
168
|
file << "/*---------- Ninjs core ../lib/nin.js ----------*/\n"
|
168
169
|
file << "//= require \"../lib/nin.js\"\n\n"
|
169
170
|
file << "\nvar #{@config.name} = new NinjsApplication('#{@config.base_url}', '#{@config.test_path}');\n\n"
|
data/ninjs.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ninjs}
|
8
|
-
s.version = "0.12.
|
8
|
+
s.version = "0.12.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Dayton Nolan"]
|
@@ -32,6 +32,7 @@ Gem::Specification.new do |s|
|
|
32
32
|
"lib/ninjs/command.rb",
|
33
33
|
"lib/ninjs/configuration.rb",
|
34
34
|
"lib/ninjs/dependencies.rb",
|
35
|
+
"lib/ninjs/generator.rb",
|
35
36
|
"lib/ninjs/helpers.rb",
|
36
37
|
"lib/ninjs/manifest.rb",
|
37
38
|
"lib/ninjs/notification.rb",
|
@@ -165,6 +166,7 @@ Gem::Specification.new do |s|
|
|
165
166
|
"repository/ninjs/docs/search/FunctionsR.html",
|
166
167
|
"repository/ninjs/docs/search/FunctionsS.html",
|
167
168
|
"repository/ninjs/docs/search/FunctionsSymbols.html",
|
169
|
+
"repository/ninjs/docs/search/FunctionsU.html",
|
168
170
|
"repository/ninjs/docs/search/GeneralA.html",
|
169
171
|
"repository/ninjs/docs/search/GeneralC.html",
|
170
172
|
"repository/ninjs/docs/search/GeneralD.html",
|
@@ -177,6 +179,7 @@ Gem::Specification.new do |s|
|
|
177
179
|
"repository/ninjs/docs/search/GeneralS.html",
|
178
180
|
"repository/ninjs/docs/search/GeneralSymbols.html",
|
179
181
|
"repository/ninjs/docs/search/GeneralT.html",
|
182
|
+
"repository/ninjs/docs/search/GeneralU.html",
|
180
183
|
"repository/ninjs/docs/search/GeneralV.html",
|
181
184
|
"repository/ninjs/docs/search/NoResults.html",
|
182
185
|
"repository/ninjs/docs/search/VariablesD.html",
|
@@ -7,6 +7,7 @@
|
|
7
7
|
See Also:
|
8
8
|
<NinjsModule>
|
9
9
|
*/
|
10
|
+
|
10
11
|
var NinjsApplication = function(base_url, tests_path) {
|
11
12
|
if (is_undefined(window.app)) {
|
12
13
|
window.app = this;
|
@@ -20,7 +21,7 @@ var NinjsApplication = function(base_url, tests_path) {
|
|
20
21
|
this.site_url = function(path) {
|
21
22
|
var path = path || '';
|
22
23
|
return base_url + path;
|
23
|
-
}
|
24
|
+
};
|
24
25
|
}
|
25
26
|
};
|
26
27
|
|
Binary file
|
@@ -1,16 +1,16 @@
|
|
1
1
|
1.51
|
2
2
|
JavaScript
|
3
|
-
/Volumes/Storage/Development/ninjs/repository/ninjs/tests/ninjs.utilities.test.js
|
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
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
|
5
|
+
/Volumes/Storage/Development/ninjs/repository/ninjs/core/nin.js 1302363353 1 nin.js
|
6
6
|
/Volumes/Storage/Development/ninjs/repository/ninjs/utilities/number.js 1295331490 0 /Volumes/Storage/Development/ninjs/repository/ninjs/utilities/number.js
|
7
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
|
9
|
-
/Volumes/Storage/Development/ninjs/repository/ninjs/core/application.js
|
10
|
-
/Volumes/Storage/Development/ninjs/repository/ninjs/core/module.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
11
|
/Volumes/Storage/Development/ninjs/repository/ninjs/utilities/cookie.js 1295499140 0 /Volumes/Storage/Development/ninjs/repository/ninjs/utilities/cookie.js
|
12
12
|
/Volumes/Storage/Development/ninjs/repository/ninjs/tests/qunit/qunit.js 1294856988 0 /Volumes/Storage/Development/ninjs/repository/ninjs/tests/qunit/qunit.js
|
13
13
|
/Volumes/Storage/Development/ninjs/repository/ninjs/utilities/array.js 1295331421 0 /Volumes/Storage/Development/ninjs/repository/ninjs/utilities/array.js
|
14
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
|
16
|
-
/Volumes/Storage/Development/ninjs/repository/ninjs/core/extend.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
|
Binary file
|
Binary file
|
Binary file
|
@@ -11,17 +11,17 @@ if (browserType) {document.write("<div class=" + browserType + ">");if (browserV
|
|
11
11
|
|
12
12
|
|
13
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
|
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
15
|
|
16
16
|
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Functions"></a>Functions</h3></div></div>
|
17
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.</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>
|
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. 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
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.</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>
|
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. 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
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>
|
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. (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. String, Number, Array (note: without quotes): is_typeof(String, ‘hello’): // 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
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
|
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. (JavaScript: The Good Parts, Douglas Crockford, O’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
25
|
|
26
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. 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
27
|
|
@@ -48,7 +48,7 @@ var searchPanel = new SearchPanel("searchPanel", "HTML", "../../search");
|
|
48
48
|
|
49
49
|
|
50
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
|
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
52
|
|
53
53
|
|
54
54
|
|
@@ -11,7 +11,7 @@ if (browserType) {document.write("<div class=" + browserType + ">");if (browserV
|
|
11
11
|
|
12
12
|
|
13
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></table></div></div><!--END_ND_SUMMARY--></div></div></div>
|
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
15
|
|
16
16
|
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Functions"></a>Functions</h3></div></div>
|
17
17
|
|
@@ -21,6 +21,15 @@ if (browserType) {document.write("<div class=" + browserType + ">");if (browserV
|
|
21
21
|
|
22
22
|
"hello".custom_method();</pre></blockquote></div></div></div>
|
23
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
|
+
|
24
33
|
</div><!--Content-->
|
25
34
|
|
26
35
|
|
@@ -34,7 +43,7 @@ var searchPanel = new SearchPanel("searchPanel", "HTML", "../../search");
|
|
34
43
|
|
35
44
|
|
36
45
|
<!--START_ND_TOOLTIPS-->
|
37
|
-
<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><!--END_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-->
|
38
47
|
|
39
48
|
|
40
49
|
|
@@ -11,7 +11,7 @@ if (browserType) {document.write("<div class=" + browserType + ">");if (browserV
|
|
11
11
|
|
12
12
|
|
13
13
|
|
14
|
-
<div id=Index><div class=IPageTitle>Function Index</div><div class=INavigationBar><a href="#Symbols">$#!</a> · 0-9 · <a href="#A">A</a> · B · <a href="#C">C</a> · D · <a href="#E">E</a> · F · G · H · <a href="#I">I</a> · J · K · L · <a href="#M">M</a> · N · O · P · Q · <a href="#R">R</a> · <a href="#S">S</a> · T · U · V · W · X · Y · Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="Symbols"></a>$#!</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule._run_tests" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')" class=ISymbol>_run_tests</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="A"></a>A</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.actions" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')" class=ISymbol>actions</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/application-js.html#NinjsApplication.add_module" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')" class=ISymbol>add_module</a>, <span class=IParent>NinjsApplication</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.add_test" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')" class=ISymbol>add_test</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="C"></a>C</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.call_on_ready" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')" class=ISymbol>call_on_ready</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="E"></a>E</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.elements" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')" class=ISymbol>elements</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.execute" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')" class=ISymbol>execute</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="I"></a>I</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_array" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')" class=ISymbol>is_array</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_bool" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')" class=ISymbol>is_bool</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_date" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')" class=ISymbol>is_date</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_defined" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')" class=ISymbol>is_defined</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_number" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')" class=ISymbol>is_number</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_numeric" id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')" class=ISymbol>is_numeric</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_regex" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')" class=ISymbol>is_regex</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_string" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')" class=ISymbol>is_string</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_typeof" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')" class=ISymbol>is_typeof</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_undefined" id=link17 onMouseOver="ShowTip(event, 'tt17', 'link17')" onMouseOut="HideTip('tt17')" class=ISymbol>is_undefined</a></td></tr><tr><td class=IHeading><a name="M"></a>M</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/extend-js.html#method" id=link18 onMouseOver="ShowTip(event, 'tt18', 'link18')" onMouseOut="HideTip('tt18')" class=ISymbol>method</a></td></tr><tr><td class=IHeading><a name="R"></a>R</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.run" id=link19 onMouseOver="ShowTip(event, 'tt19', 'link19')" onMouseOut="HideTip('tt19')" class=ISymbol>run</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="S"></a>S</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.set_data" id=link20 onMouseOver="ShowTip(event, 'tt20', 'link20')" onMouseOut="HideTip('tt20')" class=ISymbol>set_data</a>, <span class=IParent>NinjsModule</span></td></tr></table>
|
14
|
+
<div id=Index><div class=IPageTitle>Function Index</div><div class=INavigationBar><a href="#Symbols">$#!</a> · 0-9 · <a href="#A">A</a> · B · <a href="#C">C</a> · D · <a href="#E">E</a> · F · G · H · <a href="#I">I</a> · J · K · L · <a href="#M">M</a> · N · O · P · Q · <a href="#R">R</a> · <a href="#S">S</a> · T · <a href="#U">U</a> · V · W · X · Y · Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="Symbols"></a>$#!</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule._run_tests" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')" class=ISymbol>_run_tests</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="A"></a>A</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.actions" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')" class=ISymbol>actions</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/application-js.html#NinjsApplication.add_module" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')" class=ISymbol>add_module</a>, <span class=IParent>NinjsApplication</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.add_test" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')" class=ISymbol>add_test</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="C"></a>C</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.call_on_ready" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')" class=ISymbol>call_on_ready</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="E"></a>E</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.elements" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')" class=ISymbol>elements</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.execute" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')" class=ISymbol>execute</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="I"></a>I</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_array" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')" class=ISymbol>is_array</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_bool" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')" class=ISymbol>is_bool</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_date" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')" class=ISymbol>is_date</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_defined" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')" class=ISymbol>is_defined</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_number" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')" class=ISymbol>is_number</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_numeric" id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')" class=ISymbol>is_numeric</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_regex" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')" class=ISymbol>is_regex</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_string" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')" class=ISymbol>is_string</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_typeof" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')" class=ISymbol>is_typeof</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_undefined" id=link17 onMouseOver="ShowTip(event, 'tt17', 'link17')" onMouseOut="HideTip('tt17')" class=ISymbol>is_undefined</a></td></tr><tr><td class=IHeading><a name="M"></a>M</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/extend-js.html#method" id=link18 onMouseOver="ShowTip(event, 'tt18', 'link18')" onMouseOut="HideTip('tt18')" class=ISymbol>method</a></td></tr><tr><td class=IHeading><a name="R"></a>R</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.run" id=link19 onMouseOver="ShowTip(event, 'tt19', 'link19')" onMouseOut="HideTip('tt19')" class=ISymbol>run</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="S"></a>S</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.set_data" id=link20 onMouseOver="ShowTip(event, 'tt20', 'link20')" onMouseOut="HideTip('tt20')" class=ISymbol>set_data</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="U"></a>U</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/extend-js.html#unless" id=link21 onMouseOver="ShowTip(event, 'tt21', 'link21')" onMouseOut="HideTip('tt21')" class=ISymbol>unless</a></td></tr></table>
|
15
15
|
<!--START_ND_TOOLTIPS-->
|
16
16
|
<div class=CToolTip id="tt1"><div class=CFunction>Runs the test files in the test array. </div></div><!--END_ND_TOOLTIPS-->
|
17
17
|
|
@@ -29,7 +29,7 @@ if (browserType) {document.write("<div class=" + browserType + ">");if (browserV
|
|
29
29
|
|
30
30
|
|
31
31
|
<!--START_ND_TOOLTIPS-->
|
32
|
-
<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_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="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_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="tt11"><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
|
32
|
+
<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_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="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_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="tt11"><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="tt12"><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="tt13"><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="tt14"><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><div class=CToolTip id="tt15"><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="tt16"><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="tt17"><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><!--END_ND_TOOLTIPS-->
|
33
33
|
|
34
34
|
|
35
35
|
<!--START_ND_TOOLTIPS-->
|
@@ -43,6 +43,10 @@ if (browserType) {document.write("<div class=" + browserType + ">");if (browserV
|
|
43
43
|
<!--START_ND_TOOLTIPS-->
|
44
44
|
<div class=CToolTip id="tt20"><div class=CFunction>Adds properties to the module’s data object.</div></div><!--END_ND_TOOLTIPS-->
|
45
45
|
|
46
|
+
|
47
|
+
<!--START_ND_TOOLTIPS-->
|
48
|
+
<div class=CToolTip id="tt21"><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-->
|
49
|
+
|
46
50
|
</div><!--Index-->
|
47
51
|
|
48
52
|
|
@@ -11,7 +11,7 @@ if (browserType) {document.write("<div class=" + browserType + ">");if (browserV
|
|
11
11
|
|
12
12
|
|
13
13
|
|
14
|
-
<div id=Index><div class=IPageTitle>Index</div><div class=INavigationBar><a href="#Symbols">$#!</a> · 0-9 · <a href="#A">A</a> · B · <a href="#C">C</a> · <a href="#D">D</a> · <a href="#E">E</a> · <a href="#F">F</a> · G · H · <a href="#I">I</a> · J · K · L · <a href="#M">M</a> · <a href="#N">N</a> · O · P · Q · <a href="#R">R</a> · <a href="#S">S</a> · <a href="#T">T</a> · U · <a href="#V">V</a> · W · X · Y · Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="Symbols"></a>$#!</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule._run_tests" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')" class=ISymbol>_run_tests</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="A"></a>A</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.actions" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')" class=ISymbol>actions</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/application-js.html#NinjsApplication.add_module" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')" class=ISymbol>add_module</a>, <span class=IParent>NinjsApplication</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.add_test" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')" class=ISymbol>add_test</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/application-js.html#application.js" class=ISymbol>application.js</a></td></tr><tr><td class=IHeading><a name="C"></a>C</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.call_on_ready" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')" class=ISymbol>call_on_ready</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="D"></a>D</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.data" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')" class=ISymbol>data</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="E"></a>E</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.elements" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')" class=ISymbol>elements</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.execute" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')" class=ISymbol>execute</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#existence.js" class=ISymbol>existence.js</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/extend-js.html#extend.js" class=ISymbol>extend.js</a></td></tr><tr><td class=IHeading><a name="F"></a>F</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><span class=ISymbol>Functions</span><div class=ISubIndex><span class=IParent>Global</span><div class=ISubIndex><a href="../files/core/existence-js.html#Functions" class=IFile>core/<wbr>existence.js</a><a href="../files/core/extend-js.html#Functions" class=IFile>core/<wbr>extend.js</a></div><a href="../files/core/application-js.html#NinjsApplication.Functions" class=IParent>NinjsApplication</a><a href="../files/core/module-js.html#NinjsModule.Functions" class=IParent>NinjsModule</a></div></td></tr><tr><td class=IHeading><a name="I"></a>I</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_array" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')" class=ISymbol>is_array</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_bool" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')" class=ISymbol>is_bool</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_date" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')" class=ISymbol>is_date</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_defined" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')" class=ISymbol>is_defined</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_number" id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')" class=ISymbol>is_number</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_numeric" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')" class=ISymbol>is_numeric</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_regex" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')" class=ISymbol>is_regex</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_string" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')" class=ISymbol>is_string</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_typeof" id=link17 onMouseOver="ShowTip(event, 'tt17', 'link17')" onMouseOut="HideTip('tt17')" class=ISymbol>is_typeof</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_undefined" id=link18 onMouseOver="ShowTip(event, 'tt18', 'link18')" onMouseOut="HideTip('tt18')" class=ISymbol>is_undefined</a></td></tr><tr><td class=IHeading><a name="M"></a>M</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/extend-js.html#method" id=link19 onMouseOver="ShowTip(event, 'tt19', 'link19')" onMouseOut="HideTip('tt19')" class=ISymbol>method</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#module.js" class=ISymbol>module.js</a></td></tr><tr><td class=IHeading><a name="N"></a>N</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.name" id=link20 onMouseOver="ShowTip(event, 'tt20', 'link20')" onMouseOut="HideTip('tt20')" class=ISymbol>name</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/nin-js.html#nin.js" class=ISymbol>nin.js</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/application-js.html#NinjsApplication" id=link21 onMouseOver="ShowTip(event, 'tt21', 'link21')" onMouseOut="HideTip('tt21')" class=ISymbol>NinjsApplication</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule" id=link22 onMouseOver="ShowTip(event, 'tt22', 'link22')" onMouseOut="HideTip('tt22')" class=ISymbol>NinjsModule</a></td></tr><tr><td class=IHeading><a name="R"></a>R</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.run" id=link23 onMouseOver="ShowTip(event, 'tt23', 'link23')" onMouseOut="HideTip('tt23')" class=ISymbol>run</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.run_tests(beta)" id=link24 onMouseOver="ShowTip(event, 'tt24', 'link24')" onMouseOut="HideTip('tt24')" class=ISymbol>run_tests(beta)</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="S"></a>S</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.set_data" id=link25 onMouseOver="ShowTip(event, 'tt25', 'link25')" onMouseOut="HideTip('tt25')" class=ISymbol>set_data</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="T"></a>T</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.tests(beta)" id=link26 onMouseOver="ShowTip(event, 'tt26', 'link26')" onMouseOut="HideTip('tt26')" class=ISymbol>tests(beta)</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="V"></a>V</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.Variables" class=ISymbol>Variables</a>, <span class=IParent>NinjsModule</span></td></tr></table>
|
14
|
+
<div id=Index><div class=IPageTitle>Index</div><div class=INavigationBar><a href="#Symbols">$#!</a> · 0-9 · <a href="#A">A</a> · B · <a href="#C">C</a> · <a href="#D">D</a> · <a href="#E">E</a> · <a href="#F">F</a> · G · H · <a href="#I">I</a> · J · K · L · <a href="#M">M</a> · <a href="#N">N</a> · O · P · Q · <a href="#R">R</a> · <a href="#S">S</a> · <a href="#T">T</a> · <a href="#U">U</a> · <a href="#V">V</a> · W · X · Y · Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="Symbols"></a>$#!</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule._run_tests" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')" class=ISymbol>_run_tests</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="A"></a>A</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.actions" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')" class=ISymbol>actions</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/application-js.html#NinjsApplication.add_module" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')" class=ISymbol>add_module</a>, <span class=IParent>NinjsApplication</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.add_test" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')" class=ISymbol>add_test</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/application-js.html#application.js" class=ISymbol>application.js</a></td></tr><tr><td class=IHeading><a name="C"></a>C</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.call_on_ready" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')" class=ISymbol>call_on_ready</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="D"></a>D</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.data" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')" class=ISymbol>data</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="E"></a>E</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.elements" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')" class=ISymbol>elements</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.execute" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')" class=ISymbol>execute</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#existence.js" class=ISymbol>existence.js</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/extend-js.html#extend.js" class=ISymbol>extend.js</a></td></tr><tr><td class=IHeading><a name="F"></a>F</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><span class=ISymbol>Functions</span><div class=ISubIndex><span class=IParent>Global</span><div class=ISubIndex><a href="../files/core/existence-js.html#Functions" class=IFile>core/<wbr>existence.js</a><a href="../files/core/extend-js.html#Functions" class=IFile>core/<wbr>extend.js</a></div><a href="../files/core/application-js.html#NinjsApplication.Functions" class=IParent>NinjsApplication</a><a href="../files/core/module-js.html#NinjsModule.Functions" class=IParent>NinjsModule</a></div></td></tr><tr><td class=IHeading><a name="I"></a>I</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_array" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')" class=ISymbol>is_array</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_bool" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')" class=ISymbol>is_bool</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_date" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')" class=ISymbol>is_date</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_defined" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')" class=ISymbol>is_defined</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_number" id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')" class=ISymbol>is_number</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_numeric" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')" class=ISymbol>is_numeric</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_regex" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')" class=ISymbol>is_regex</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_string" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')" class=ISymbol>is_string</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_typeof" id=link17 onMouseOver="ShowTip(event, 'tt17', 'link17')" onMouseOut="HideTip('tt17')" class=ISymbol>is_typeof</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_undefined" id=link18 onMouseOver="ShowTip(event, 'tt18', 'link18')" onMouseOut="HideTip('tt18')" class=ISymbol>is_undefined</a></td></tr><tr><td class=IHeading><a name="M"></a>M</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/extend-js.html#method" id=link19 onMouseOver="ShowTip(event, 'tt19', 'link19')" onMouseOut="HideTip('tt19')" class=ISymbol>method</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#module.js" class=ISymbol>module.js</a></td></tr><tr><td class=IHeading><a name="N"></a>N</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.name" id=link20 onMouseOver="ShowTip(event, 'tt20', 'link20')" onMouseOut="HideTip('tt20')" class=ISymbol>name</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/nin-js.html#nin.js" class=ISymbol>nin.js</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/application-js.html#NinjsApplication" id=link21 onMouseOver="ShowTip(event, 'tt21', 'link21')" onMouseOut="HideTip('tt21')" class=ISymbol>NinjsApplication</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule" id=link22 onMouseOver="ShowTip(event, 'tt22', 'link22')" onMouseOut="HideTip('tt22')" class=ISymbol>NinjsModule</a></td></tr><tr><td class=IHeading><a name="R"></a>R</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.run" id=link23 onMouseOver="ShowTip(event, 'tt23', 'link23')" onMouseOut="HideTip('tt23')" class=ISymbol>run</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.run_tests(beta)" id=link24 onMouseOver="ShowTip(event, 'tt24', 'link24')" onMouseOut="HideTip('tt24')" class=ISymbol>run_tests(beta)</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="S"></a>S</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.set_data" id=link25 onMouseOver="ShowTip(event, 'tt25', 'link25')" onMouseOut="HideTip('tt25')" class=ISymbol>set_data</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="T"></a>T</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.tests(beta)" id=link26 onMouseOver="ShowTip(event, 'tt26', 'link26')" onMouseOut="HideTip('tt26')" class=ISymbol>tests(beta)</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="U"></a>U</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/extend-js.html#unless" id=link27 onMouseOver="ShowTip(event, 'tt27', 'link27')" onMouseOut="HideTip('tt27')" class=ISymbol>unless</a></td></tr><tr><td class=IHeading><a name="V"></a>V</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.Variables" class=ISymbol>Variables</a>, <span class=IParent>NinjsModule</span></td></tr></table>
|
15
15
|
<!--START_ND_TOOLTIPS-->
|
16
16
|
<div class=CToolTip id="tt1"><div class=CFunction>Runs the test files in the test array. </div></div><!--END_ND_TOOLTIPS-->
|
17
17
|
|
@@ -37,7 +37,7 @@ if (browserType) {document.write("<div class=" + browserType + ">");if (browserV
|
|
37
37
|
|
38
38
|
|
39
39
|
<!--START_ND_TOOLTIPS-->
|
40
|
-
<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_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="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_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="tt11"><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="tt12"><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
|
40
|
+
<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_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="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_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="tt11"><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="tt12"><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="tt13"><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="tt14"><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="tt15"><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><div class=CToolTip id="tt16"><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="tt17"><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="tt18"><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><!--END_ND_TOOLTIPS-->
|
41
41
|
|
42
42
|
|
43
43
|
<!--START_ND_TOOLTIPS-->
|
@@ -60,6 +60,10 @@ if (browserType) {document.write("<div class=" + browserType + ">");if (browserV
|
|
60
60
|
<div class=CToolTip id="tt26"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">this.tests</td></tr></table></blockquote>Array of test files to run</div></div><!--END_ND_TOOLTIPS-->
|
61
61
|
|
62
62
|
|
63
|
+
<!--START_ND_TOOLTIPS-->
|
64
|
+
<div class=CToolTip id="tt27"><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-->
|
65
|
+
|
66
|
+
|
63
67
|
<!--START_ND_TOOLTIPS-->
|
64
68
|
<!--END_ND_TOOLTIPS-->
|
65
69
|
|
@@ -0,0 +1,20 @@
|
|
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"><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><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=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_unless><div class=IEntry><a href="../files/core/extend-js.html#unless" target=_parent class=ISymbol>unless</a></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
|
15
|
+
document.getElementById("Loading").style.display="none";
|
16
|
+
document.getElementById("NoMatches").style.display="none";
|
17
|
+
var searchResults = new SearchResults("searchResults", "HTML");
|
18
|
+
searchResults.Search();
|
19
|
+
--></script></div><script language=JavaScript><!--
|
20
|
+
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
|
@@ -0,0 +1,20 @@
|
|
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"><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><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=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_unless><div class=IEntry><a href="../files/core/extend-js.html#unless" target=_parent class=ISymbol>unless</a></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
|
15
|
+
document.getElementById("Loading").style.display="none";
|
16
|
+
document.getElementById("NoMatches").style.display="none";
|
17
|
+
var searchResults = new SearchResults("searchResults", "HTML");
|
18
|
+
searchResults.Search();
|
19
|
+
--></script></div><script language=JavaScript><!--
|
20
|
+
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 12
|
8
|
-
-
|
9
|
-
version: 0.12.
|
8
|
+
- 3
|
9
|
+
version: 0.12.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Dayton Nolan
|
@@ -239,6 +239,7 @@ files:
|
|
239
239
|
- lib/ninjs/command.rb
|
240
240
|
- lib/ninjs/configuration.rb
|
241
241
|
- lib/ninjs/dependencies.rb
|
242
|
+
- lib/ninjs/generator.rb
|
242
243
|
- lib/ninjs/helpers.rb
|
243
244
|
- lib/ninjs/manifest.rb
|
244
245
|
- lib/ninjs/notification.rb
|
@@ -372,6 +373,7 @@ files:
|
|
372
373
|
- repository/ninjs/docs/search/FunctionsR.html
|
373
374
|
- repository/ninjs/docs/search/FunctionsS.html
|
374
375
|
- repository/ninjs/docs/search/FunctionsSymbols.html
|
376
|
+
- repository/ninjs/docs/search/FunctionsU.html
|
375
377
|
- repository/ninjs/docs/search/GeneralA.html
|
376
378
|
- repository/ninjs/docs/search/GeneralC.html
|
377
379
|
- repository/ninjs/docs/search/GeneralD.html
|
@@ -384,6 +386,7 @@ files:
|
|
384
386
|
- repository/ninjs/docs/search/GeneralS.html
|
385
387
|
- repository/ninjs/docs/search/GeneralSymbols.html
|
386
388
|
- repository/ninjs/docs/search/GeneralT.html
|
389
|
+
- repository/ninjs/docs/search/GeneralU.html
|
387
390
|
- repository/ninjs/docs/search/GeneralV.html
|
388
391
|
- repository/ninjs/docs/search/NoResults.html
|
389
392
|
- repository/ninjs/docs/search/VariablesD.html
|
@@ -526,7 +529,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
526
529
|
requirements:
|
527
530
|
- - ">="
|
528
531
|
- !ruby/object:Gem::Version
|
529
|
-
hash:
|
532
|
+
hash: 3604755208910180537
|
530
533
|
segments:
|
531
534
|
- 0
|
532
535
|
version: "0"
|