sproutcore 0.9.13 → 0.9.14
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +19 -0
- data/Manifest.txt +103 -26
- data/app_generators/sproutcore/templates/README +1 -1
- data/bin/sc-build +1 -1
- data/bin/sc-gen +0 -0
- data/bin/sc-ide +278 -0
- data/bin/sc-init +38 -0
- data/bin/sc-install +96 -0
- data/bin/sc-remove +94 -0
- data/bin/sc-server +4 -0
- data/bin/sc-update +94 -0
- data/bin/sproutcore +3 -14
- data/clients/sc_docs/controllers/docs.js +1 -1
- data/clients/sc_docs/models/doc.js +6 -0
- data/clients/sc_docs/views/doc_frame.js +1 -1
- data/clients/sc_test_runner/english.lproj/icons/small/next.png +0 -0
- data/clients/sc_test_runner/english.lproj/icons/small/reset.png +0 -0
- data/frameworks/sproutcore/HISTORY +34 -2
- data/frameworks/sproutcore/controllers/array.js +1 -1
- data/frameworks/sproutcore/controllers/controller.js +1 -1
- data/frameworks/sproutcore/controllers/object.js +9 -6
- data/frameworks/sproutcore/core.js +19 -4
- data/frameworks/sproutcore/english.lproj/blank.gif +0 -0
- data/frameworks/sproutcore/english.lproj/core.css +1 -0
- data/frameworks/sproutcore/english.lproj/menu.css +1 -0
- data/frameworks/sproutcore/foundation/application.js +3 -3
- data/frameworks/sproutcore/foundation/benchmark.js +1 -1
- data/frameworks/sproutcore/foundation/node_descriptor.js +13 -1
- data/frameworks/sproutcore/foundation/page.js +3 -2
- data/frameworks/sproutcore/foundation/path_module.js +33 -16
- data/frameworks/sproutcore/foundation/run_loop.js +1 -1
- data/frameworks/sproutcore/foundation/server.js +68 -18
- data/frameworks/sproutcore/foundation/string.js +1 -1
- data/frameworks/sproutcore/globals/window.js +62 -15
- data/frameworks/sproutcore/lib/core_views.rb +1 -0
- data/frameworks/sproutcore/lib/index.rhtml +4 -3
- data/frameworks/sproutcore/lib/menu_views.rb +2 -2
- data/frameworks/sproutcore/models/collection.js +122 -107
- data/frameworks/sproutcore/models/record.js +2 -2
- data/frameworks/sproutcore/panes/manager.js +1 -1
- data/frameworks/sproutcore/panes/overlay.js +3 -3
- data/frameworks/sproutcore/tests/controllers/object.rhtml +26 -0
- data/frameworks/sproutcore/tests/views/collection/incremental_rendering.rhtml +2 -2
- data/frameworks/sproutcore/views/button/disclosure.js +1 -1
- data/frameworks/sproutcore/views/collection/collection.js +19 -15
- data/frameworks/sproutcore/views/collection/source_list.js +1 -1
- data/frameworks/sproutcore/views/collection/table.js +2 -2
- data/frameworks/sproutcore/views/error_explanation.js +1 -1
- data/frameworks/sproutcore/views/field/checkbox_field.js +1 -1
- data/frameworks/sproutcore/views/field/field.js +1 -1
- data/frameworks/sproutcore/views/field/radio_field.js +1 -1
- data/frameworks/sproutcore/views/field/select_field.js +1 -1
- data/frameworks/sproutcore/views/form.js +1 -1
- data/frameworks/sproutcore/views/image.js +1 -1
- data/frameworks/sproutcore/views/menu_item.js +1 -1
- data/frameworks/sproutcore/views/popup_button.js +1 -1
- data/frameworks/sproutcore/views/popup_menu.js +1 -1
- data/frameworks/sproutcore/views/progress.js +4 -2
- data/frameworks/sproutcore/views/radio_group.js +1 -1
- data/frameworks/sproutcore/views/scroll.js +1 -1
- data/frameworks/sproutcore/views/source_list_group.js +1 -1
- data/frameworks/sproutcore/views/split.js +1 -1
- data/frameworks/sproutcore/views/tab.js +3 -1
- data/frameworks/sproutcore/views/view.js +19 -3
- data/jsdoc/README.txt +89 -57
- data/jsdoc/app/frame/Chain.js +102 -0
- data/jsdoc/app/frame/Dumper.js +144 -0
- data/jsdoc/app/frame/Hash.js +47 -0
- data/jsdoc/app/frame/Link.js +142 -0
- data/jsdoc/app/frame/Namespace.js +10 -0
- data/jsdoc/app/frame/Opt.js +134 -0
- data/jsdoc/app/frame/Reflection.js +26 -0
- data/jsdoc/app/frame/String.js +93 -0
- data/jsdoc/app/frame/Testrun.js +129 -0
- data/jsdoc/app/frame.js +33 -0
- data/jsdoc/app/handlers/FOODOC.js +26 -0
- data/jsdoc/app/handlers/XMLDOC/DomReader.js +159 -0
- data/jsdoc/app/handlers/XMLDOC/XMLDoc.js +16 -0
- data/jsdoc/app/handlers/XMLDOC/XMLParse.js +292 -0
- data/jsdoc/app/handlers/XMLDOC.js +26 -0
- data/jsdoc/app/lib/JSDOC/DocComment.js +200 -0
- data/jsdoc/app/lib/JSDOC/DocTag.js +294 -0
- data/jsdoc/app/lib/JSDOC/JsDoc.js +180 -0
- data/jsdoc/app/lib/JSDOC/JsPlate.js +100 -0
- data/jsdoc/app/lib/JSDOC/Lang.js +144 -0
- data/jsdoc/app/lib/JSDOC/Parser.js +109 -0
- data/jsdoc/app/lib/JSDOC/PluginManager.js +33 -0
- data/jsdoc/app/lib/JSDOC/Symbol.js +600 -0
- data/jsdoc/app/lib/JSDOC/SymbolSet.js +220 -0
- data/jsdoc/app/lib/JSDOC/TextStream.js +41 -0
- data/jsdoc/app/lib/JSDOC/Token.js +18 -0
- data/jsdoc/app/lib/JSDOC/TokenReader.js +323 -0
- data/jsdoc/app/lib/JSDOC/TokenStream.js +133 -0
- data/jsdoc/app/lib/JSDOC/Util.js +32 -0
- data/jsdoc/app/lib/JSDOC/Walker.js +416 -0
- data/jsdoc/app/lib/JSDOC.js +97 -0
- data/jsdoc/app/main.js +74 -0
- data/jsdoc/app/plugins/commentSrcJson.js +19 -0
- data/jsdoc/app/plugins/frameworkPrototype.js +16 -0
- data/jsdoc/app/plugins/functionCall.js +10 -0
- data/jsdoc/app/plugins/publishSrcHilite.js +62 -0
- data/jsdoc/app/plugins/sproutcoreTags.js +26 -0
- data/jsdoc/app/plugins/symbolLink.js +9 -0
- data/jsdoc/app/plugins/tagParamConfig.js +31 -0
- data/jsdoc/app/plugins/tagSynonyms.js +43 -0
- data/jsdoc/app/run.js +339 -137
- data/jsdoc/changes.txt +47 -0
- data/jsdoc/conf/sample.conf +31 -0
- data/jsdoc/java/build.xml +36 -0
- data/jsdoc/java/build_1.4.xml +36 -0
- data/jsdoc/java/classes/js.jar +0 -0
- data/jsdoc/java/src/JsDebugRun.java +21 -0
- data/jsdoc/java/src/JsRun.java +21 -0
- data/jsdoc/jsdebug.jar +0 -0
- data/jsdoc/jsrun.jar +0 -0
- data/jsdoc/t/TestDoc.js +144 -0
- data/jsdoc/t/runner.js +13 -0
- data/jsdoc/templates/sproutcore/allclasses.tmpl +17 -0
- data/jsdoc/templates/sproutcore/allfiles.tmpl +56 -0
- data/jsdoc/templates/sproutcore/class.tmpl +408 -326
- data/jsdoc/templates/sproutcore/index.tmpl +30 -31
- data/jsdoc/templates/sproutcore/publish.js +173 -81
- data/jsdoc/templates/sproutcore/static/default.css +191 -0
- data/jsdoc/templates/sproutcore/static/header.html +2 -0
- data/jsdoc/templates/sproutcore/static/index.html +19 -0
- data/jsdoc/templates/sproutcore/symbol.tmpl +35 -0
- data/jsdoc/test/addon.js +24 -0
- data/jsdoc/test/anon_inner.js +14 -0
- data/jsdoc/test/augments.js +31 -0
- data/jsdoc/test/augments2.js +26 -0
- data/jsdoc/test/borrows.js +41 -0
- data/jsdoc/test/borrows2.js +23 -0
- data/jsdoc/test/config.js +22 -0
- data/jsdoc/test/constructs.js +18 -0
- data/jsdoc/test/encoding.js +10 -0
- data/jsdoc/test/encoding_other.js +12 -0
- data/jsdoc/test/functions_anon.js +39 -0
- data/jsdoc/test/functions_nested.js +33 -0
- data/jsdoc/test/global.js +13 -0
- data/jsdoc/test/globals.js +25 -0
- data/jsdoc/test/ignore.js +10 -0
- data/jsdoc/test/inner.js +16 -0
- data/jsdoc/test/jsdoc_test.js +477 -0
- data/jsdoc/test/lend.js +33 -0
- data/jsdoc/test/memberof.js +20 -0
- data/jsdoc/test/memberof_constructor.js +15 -0
- data/jsdoc/test/name.js +19 -0
- data/jsdoc/test/namespace_nested.js +23 -0
- data/jsdoc/test/nocode.js +13 -0
- data/jsdoc/test/oblit_anon.js +20 -0
- data/jsdoc/test/overview.js +20 -0
- data/jsdoc/test/param_inline.js +37 -0
- data/jsdoc/test/params_optional.js +8 -0
- data/jsdoc/test/prototype.js +17 -0
- data/jsdoc/test/prototype_nested.js +9 -0
- data/jsdoc/test/prototype_oblit.js +13 -0
- data/jsdoc/test/prototype_oblit_constructor.js +24 -0
- data/jsdoc/test/public.js +10 -0
- data/jsdoc/test/shared.js +42 -0
- data/jsdoc/test/shared2.js +2 -0
- data/jsdoc/test/shortcuts.js +22 -0
- data/jsdoc/test/static_this.js +13 -0
- data/jsdoc/test/synonyms.js +23 -0
- data/jsdoc/test/tosource.js +23 -0
- data/jsdoc/test/variable_redefine.js +14 -0
- data/jsdoc/test.js +304 -0
- data/lib/sproutcore/build_tools/resource_builder.rb +6 -1
- data/lib/sproutcore/bundle_installer.rb +268 -0
- data/lib/sproutcore/jsdoc.rb +7 -6
- data/lib/sproutcore/library.rb +38 -0
- data/lib/sproutcore/merb/bundle_controller.rb +8 -4
- data/lib/sproutcore/version.rb +1 -1
- data/lib/sproutcore.rb +1 -1
- data/script/destroy +0 -0
- data/script/generate +0 -0
- data/script/txt2html +0 -0
- metadata +117 -29
- data/clients/view_builder/core.js +0 -19
- data/clients/view_builder/english.lproj/body.css +0 -149
- data/clients/view_builder/english.lproj/body.rhtml +0 -18
- data/clients/view_builder/english.lproj/strings.js +0 -14
- data/clients/view_builder/main.js +0 -37
- data/jsdoc/app/DocFile.js +0 -137
- data/jsdoc/app/DocTag.js +0 -110
- data/jsdoc/app/Doclet.js +0 -63
- data/jsdoc/app/Dumper.js +0 -143
- data/jsdoc/app/JsDoc.js +0 -103
- data/jsdoc/app/JsHilite.js +0 -45
- data/jsdoc/app/JsIO.js +0 -163
- data/jsdoc/app/JsParse.js +0 -385
- data/jsdoc/app/JsPlate.js +0 -130
- data/jsdoc/app/JsTestrun.js +0 -129
- data/jsdoc/app/JsToke.js +0 -564
- data/jsdoc/app/Symbol.js +0 -298
- data/jsdoc/app/Transformer.js +0 -14
- data/jsdoc/app/Util.js +0 -97
- data/jsdoc/app/js.jar +0 -0
- data/jsdoc/plugins/min.js +0 -316
- data/jsdoc/plugins/strip.js +0 -20
- data/jsdoc/templates/sproutcore/default.css +0 -191
- data/jsdoc/templates/sproutcore/index.html +0 -13
- data/jsdoc/templates/sproutcore/prototype.js +0 -4186
- data/jsdoc/templates/sproutcore/splash.html +0 -7
@@ -0,0 +1,31 @@
|
|
1
|
+
/**
|
2
|
+
@constructor
|
3
|
+
*/
|
4
|
+
function Layout(p) {
|
5
|
+
this.init = function(p) {
|
6
|
+
}
|
7
|
+
|
8
|
+
this.getId = function() {
|
9
|
+
}
|
10
|
+
|
11
|
+
/** @type Page */
|
12
|
+
this.orientation = "landscape";
|
13
|
+
}
|
14
|
+
|
15
|
+
/**
|
16
|
+
@constructor
|
17
|
+
@augments Layout
|
18
|
+
*/
|
19
|
+
function Page() {
|
20
|
+
this.reset = function(b) {
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
/**
|
25
|
+
@extends Page
|
26
|
+
@constructor
|
27
|
+
*/
|
28
|
+
function ThreeColumnPage() {
|
29
|
+
this.init = function(resetCode) {
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
/**
|
2
|
+
@constructor
|
3
|
+
*/
|
4
|
+
function LibraryItem() {
|
5
|
+
this.reserve = function() {
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
/**
|
10
|
+
@constructor
|
11
|
+
*/
|
12
|
+
function Junkmail() {
|
13
|
+
this.annoy = function() {
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
/**
|
18
|
+
@inherits Junkmail.prototype.annoy as pester
|
19
|
+
@augments ThreeColumnPage
|
20
|
+
@augments LibraryItem
|
21
|
+
@constructor
|
22
|
+
*/
|
23
|
+
function NewsletterPage() {
|
24
|
+
this.getHeadline = function() {
|
25
|
+
}
|
26
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
/**
|
2
|
+
@constructor
|
3
|
+
*/
|
4
|
+
function Layout(p) {
|
5
|
+
/** initilize 1 */
|
6
|
+
this.init = function(p) {
|
7
|
+
}
|
8
|
+
|
9
|
+
/** get the id */
|
10
|
+
this.getId = function() {
|
11
|
+
}
|
12
|
+
|
13
|
+
/** @type string */
|
14
|
+
this.orientation = "landscape";
|
15
|
+
|
16
|
+
function getInnerElements(elementSecretId){
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
/**
|
21
|
+
@constructor
|
22
|
+
@borrows Layout#orientation as #orientation
|
23
|
+
@borrows Layout-getInnerElements as myGetInnerElements
|
24
|
+
*/
|
25
|
+
function Page() {
|
26
|
+
/** reset the page */
|
27
|
+
this.reset = function(b) {
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
/**
|
32
|
+
@constructor
|
33
|
+
@borrows Layout.prototype.orientation as this.orientation
|
34
|
+
@borrows Layout.prototype.init as #init
|
35
|
+
@inherits Page.prototype.reset as #reset
|
36
|
+
*/
|
37
|
+
function ThreeColumnPage() {
|
38
|
+
/** initilize 2 */
|
39
|
+
this.init = function(p) {
|
40
|
+
}
|
41
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
// testing circular borrows
|
2
|
+
|
3
|
+
/**
|
4
|
+
@class
|
5
|
+
@borrows Bar#zop as this.my_zop
|
6
|
+
*/
|
7
|
+
function Foo() {
|
8
|
+
/** this is a zip. */
|
9
|
+
this.zip = function() {}
|
10
|
+
|
11
|
+
this.my_zop = new Bar().zop;
|
12
|
+
}
|
13
|
+
|
14
|
+
/**
|
15
|
+
@class
|
16
|
+
@borrows Foo#zip as this.my_zip
|
17
|
+
*/
|
18
|
+
function Bar() {
|
19
|
+
/** this is a zop. */
|
20
|
+
this.zop = function() {}
|
21
|
+
|
22
|
+
this.my_zip = new Foo().zip;
|
23
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/**
|
2
|
+
* @constructor
|
3
|
+
* @param person The person.
|
4
|
+
* @param {string} person.name The person's name.
|
5
|
+
* @config {integer} age The person's age.
|
6
|
+
* @config [id=1] Optional id number to use.
|
7
|
+
* @param connection
|
8
|
+
*/
|
9
|
+
function Contact(person, connection) {
|
10
|
+
|
11
|
+
}
|
12
|
+
|
13
|
+
/**
|
14
|
+
* @constructor
|
15
|
+
* @param persons
|
16
|
+
* @config {string} Father The paternal person.
|
17
|
+
* @config {string} Mother The maternal person.
|
18
|
+
* @config {string[]} Children And the rest.
|
19
|
+
*/
|
20
|
+
function Family(/**Object*/persons) {
|
21
|
+
|
22
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
var Person = makeClass(
|
2
|
+
/**
|
3
|
+
@scope Person
|
4
|
+
*/
|
5
|
+
{
|
6
|
+
/**
|
7
|
+
This is just another way to define a constructor.
|
8
|
+
@constructs
|
9
|
+
@param {string} name The name of the person.
|
10
|
+
*/
|
11
|
+
initialize: function(name) {
|
12
|
+
this.name = name;
|
13
|
+
},
|
14
|
+
say: function(message) {
|
15
|
+
return this.name + " says: " + message;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
);
|
@@ -0,0 +1,39 @@
|
|
1
|
+
/** an anonymous constructor executed inline */
|
2
|
+
a = new function() {
|
3
|
+
/** a.b*/
|
4
|
+
this.b = 1;
|
5
|
+
/** a.f */
|
6
|
+
this.f = function() {
|
7
|
+
/** a.c */
|
8
|
+
this.c = 2;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
|
12
|
+
|
13
|
+
/**
|
14
|
+
named function executed inline
|
15
|
+
*/
|
16
|
+
bar1 = function Zoola1() {
|
17
|
+
/** property of global */
|
18
|
+
this.g = 1;
|
19
|
+
}();
|
20
|
+
|
21
|
+
/**
|
22
|
+
named constructor executed inline
|
23
|
+
*/
|
24
|
+
bar2 = new function Zoola2() {
|
25
|
+
/** property of bar */
|
26
|
+
this.p = 1;
|
27
|
+
};
|
28
|
+
|
29
|
+
/** module pattern */
|
30
|
+
module = (function () {
|
31
|
+
/** won't appear in documentation */
|
32
|
+
var priv = 1;
|
33
|
+
|
34
|
+
/** @scope module */
|
35
|
+
return {
|
36
|
+
/** will appear as a property of module */
|
37
|
+
pub: 1
|
38
|
+
}
|
39
|
+
})();
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/** @constructor */
|
2
|
+
function Zop() {
|
3
|
+
}
|
4
|
+
|
5
|
+
/**
|
6
|
+
@class
|
7
|
+
*/
|
8
|
+
Foo = function(id) {
|
9
|
+
// this is a bit twisted, but if you call Foo() you will then
|
10
|
+
// modify Foo(). This is kinda, sorta non-insane, because you
|
11
|
+
// would have to call Foo() 100% of the time to use Foo's methods
|
12
|
+
Foo.prototype.methodOne = function(bar) {
|
13
|
+
alert(bar);
|
14
|
+
};
|
15
|
+
|
16
|
+
// same again
|
17
|
+
Foo.prototype.methodTwo = function(bar2) {
|
18
|
+
alert(bar2);
|
19
|
+
};
|
20
|
+
|
21
|
+
// and these are only executed if the enclosing function is actually called
|
22
|
+
// and who knows if that will ever happen?
|
23
|
+
Bar = function(pez) {
|
24
|
+
alert(pez);
|
25
|
+
};
|
26
|
+
Zop.prototype.zap = function(p){
|
27
|
+
alert(p);
|
28
|
+
};
|
29
|
+
|
30
|
+
// but this is only visible inside Foo
|
31
|
+
function inner() {
|
32
|
+
}
|
33
|
+
};
|
@@ -0,0 +1,25 @@
|
|
1
|
+
function example(/**Circle*/a, b) {
|
2
|
+
/** a global defined in function */
|
3
|
+
var number = a;
|
4
|
+
|
5
|
+
var hideNumber = function(){
|
6
|
+
}
|
7
|
+
|
8
|
+
setNumber = function(){
|
9
|
+
}
|
10
|
+
alert('You have chosen: ' + b);
|
11
|
+
}
|
12
|
+
|
13
|
+
function initPage() {
|
14
|
+
var supported = document.createElement && document.getElementsByTagName;
|
15
|
+
if (!supported) return;
|
16
|
+
// start of DOM script
|
17
|
+
var x = document.getElementById('writeroot');
|
18
|
+
// etc.
|
19
|
+
}
|
20
|
+
|
21
|
+
/** an example var */
|
22
|
+
var document = new Document(x, y);
|
23
|
+
|
24
|
+
var getNumber = function(){
|
25
|
+
}
|
data/jsdoc/test/inner.js
ADDED