javascriptmvc 3.0.0.pre15
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +21 -0
- data/README.markdown +15 -0
- data/Rakefile +17 -0
- data/VERSION +1 -0
- data/bin/jmvc-build +4 -0
- data/bin/jmvc-gen +4 -0
- data/bin/jmvc-get +4 -0
- data/bin/jmvc-init +4 -0
- data/bin/jmvc-update +4 -0
- data/lib/javascriptmvc.rb +97 -0
- data/lib/javascriptmvc/documentjs/README +0 -0
- data/lib/javascriptmvc/documentjs/add.js +76 -0
- data/lib/javascriptmvc/documentjs/application.js +285 -0
- data/lib/javascriptmvc/documentjs/attribute.js +61 -0
- data/lib/javascriptmvc/documentjs/baseclass.js +537 -0
- data/lib/javascriptmvc/documentjs/class.js +141 -0
- data/lib/javascriptmvc/documentjs/constructor.js +145 -0
- data/lib/javascriptmvc/documentjs/directives.js +394 -0
- data/lib/javascriptmvc/documentjs/distance.js +49 -0
- data/lib/javascriptmvc/documentjs/document +21 -0
- data/lib/javascriptmvc/documentjs/documentjs.js +76 -0
- data/lib/javascriptmvc/documentjs/file.js +55 -0
- data/lib/javascriptmvc/documentjs/function.js +112 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/close.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/download.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/fav-off.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/fav-on.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/favicon.ico +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/logo.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/pre.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-icons_222222_256x240.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-icons_2e83ff_256x240.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-icons_454545_256x240.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-icons_888888_256x240.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/video.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/production.js +552 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/style.css +354 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/summary.ejs +134 -0
- data/lib/javascriptmvc/documentjs/json.js +172 -0
- data/lib/javascriptmvc/documentjs/page.js +107 -0
- data/lib/javascriptmvc/documentjs/pair.js +302 -0
- data/lib/javascriptmvc/documentjs/prototype.js +13 -0
- data/lib/javascriptmvc/documentjs/scripts/build.js +6 -0
- data/lib/javascriptmvc/documentjs/static.js +25 -0
- data/lib/javascriptmvc/documentjs/test/docs/Something.json +1 -0
- data/lib/javascriptmvc/documentjs/test/docs/searchData.json +1 -0
- data/lib/javascriptmvc/documentjs/test/something.js +8 -0
- data/lib/javascriptmvc/documentjs/test/test.html +6 -0
- data/lib/javascriptmvc/documentjs/test_doc.html +1 -0
- data/lib/javascriptmvc/documentjs/update +5 -0
- data/lib/javascriptmvc/funcunit/README +17 -0
- data/lib/javascriptmvc/funcunit/autosuggest/auto_suggest.js +495 -0
- data/lib/javascriptmvc/funcunit/autosuggest/autosuggest.css +24 -0
- data/lib/javascriptmvc/funcunit/autosuggest/autosuggest.html +26 -0
- data/lib/javascriptmvc/funcunit/autosuggest/autosuggest.js +17 -0
- data/lib/javascriptmvc/funcunit/autosuggest/autosuggest_test.js +14 -0
- data/lib/javascriptmvc/funcunit/autosuggest/funcunit.html +15 -0
- data/lib/javascriptmvc/funcunit/build.js +54 -0
- data/lib/javascriptmvc/funcunit/drivers/selenium.js +129 -0
- data/lib/javascriptmvc/funcunit/drivers/standard.js +169 -0
- data/lib/javascriptmvc/funcunit/envjs +13 -0
- data/lib/javascriptmvc/funcunit/envjs.bat +28 -0
- data/lib/javascriptmvc/funcunit/funcunit.html +20 -0
- data/lib/javascriptmvc/funcunit/funcunit.js +1509 -0
- data/lib/javascriptmvc/funcunit/java/selenium-java-client-driver.jar +0 -0
- data/lib/javascriptmvc/funcunit/java/selenium-server.jar +0 -0
- data/lib/javascriptmvc/funcunit/qunit.html +22 -0
- data/lib/javascriptmvc/funcunit/qunit/qunit.css +119 -0
- data/lib/javascriptmvc/funcunit/qunit/qunit.js +1124 -0
- data/lib/javascriptmvc/funcunit/qunit/rhino/rhino.js +24 -0
- data/lib/javascriptmvc/funcunit/qunit/test/qunit.html +18 -0
- data/lib/javascriptmvc/funcunit/qunit/test/test.js +7 -0
- data/lib/javascriptmvc/funcunit/resources/funcunit.js +31 -0
- data/lib/javascriptmvc/funcunit/resources/jquery.js +6378 -0
- data/lib/javascriptmvc/funcunit/resources/json.js +201 -0
- data/lib/javascriptmvc/funcunit/resources/selenium_start.js +43 -0
- data/lib/javascriptmvc/funcunit/scripts/run.js +36 -0
- data/lib/javascriptmvc/funcunit/scripts/test.js +55 -0
- data/lib/javascriptmvc/funcunit/settings.js +10 -0
- data/lib/javascriptmvc/funcunit/synthetic/browsers.js +151 -0
- data/lib/javascriptmvc/funcunit/synthetic/demo.html +150 -0
- data/lib/javascriptmvc/funcunit/synthetic/demo/record.js +254 -0
- data/lib/javascriptmvc/funcunit/synthetic/drag/drag.html +41 -0
- data/lib/javascriptmvc/funcunit/synthetic/drag/drag.js +268 -0
- data/lib/javascriptmvc/funcunit/synthetic/drag/qunit.html +20 -0
- data/lib/javascriptmvc/funcunit/synthetic/drag/test/qunit/drag_test.js +195 -0
- data/lib/javascriptmvc/funcunit/synthetic/drag/test/qunit/qunit.js +7 -0
- data/lib/javascriptmvc/funcunit/synthetic/key.js +832 -0
- data/lib/javascriptmvc/funcunit/synthetic/mouse.js +291 -0
- data/lib/javascriptmvc/funcunit/synthetic/qunit.html +22 -0
- data/lib/javascriptmvc/funcunit/synthetic/recorder.html +303 -0
- data/lib/javascriptmvc/funcunit/synthetic/synthetic.html +85 -0
- data/lib/javascriptmvc/funcunit/synthetic/synthetic.js +796 -0
- data/lib/javascriptmvc/funcunit/synthetic/test/qunit/key_test.js +391 -0
- data/lib/javascriptmvc/funcunit/synthetic/test/qunit/mouse_test.js +233 -0
- data/lib/javascriptmvc/funcunit/synthetic/test/qunit/qunit.js +6 -0
- data/lib/javascriptmvc/funcunit/synthetic/test/qunit/synthetic_test.js +91 -0
- data/lib/javascriptmvc/funcunit/synthetic/test/submit.html +29 -0
- data/lib/javascriptmvc/funcunit/synthetic/test/submitted.html +3 -0
- data/lib/javascriptmvc/funcunit/template.html +18 -0
- data/lib/javascriptmvc/funcunit/test/drag.html +63 -0
- data/lib/javascriptmvc/funcunit/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/funcunit/test/funcunit/funcunit_test.js +87 -0
- data/lib/javascriptmvc/funcunit/test/funcunit/open_test.js +28 -0
- data/lib/javascriptmvc/funcunit/test/funcunit/protodrag_test.js +13 -0
- data/lib/javascriptmvc/funcunit/test/funcunit/syn_test.js +41 -0
- data/lib/javascriptmvc/funcunit/test/jquery.event.drag.js +801 -0
- data/lib/javascriptmvc/funcunit/test/jquery.event.drop.js +439 -0
- data/lib/javascriptmvc/funcunit/test/jquery.js +6360 -0
- data/lib/javascriptmvc/funcunit/test/myapp.html +103 -0
- data/lib/javascriptmvc/funcunit/test/myotherapp.html +15 -0
- data/lib/javascriptmvc/funcunit/test/protodrag/dragdrop.js +974 -0
- data/lib/javascriptmvc/funcunit/test/protodrag/effects.js +1123 -0
- data/lib/javascriptmvc/funcunit/test/protodrag/funcunit_test.js +20 -0
- data/lib/javascriptmvc/funcunit/test/protodrag/myapp.html +63 -0
- data/lib/javascriptmvc/funcunit/test/protodrag/prototype.js +4874 -0
- data/lib/javascriptmvc/funcunit/test/protodrag/scriptaculous.js +68 -0
- data/lib/javascriptmvc/funcunit/update +5 -0
- data/lib/javascriptmvc/jquery/README +24 -0
- data/lib/javascriptmvc/jquery/build.js +73 -0
- data/lib/javascriptmvc/jquery/class/class.html +109 -0
- data/lib/javascriptmvc/jquery/class/class.js +627 -0
- data/lib/javascriptmvc/jquery/class/qunit.html +15 -0
- data/lib/javascriptmvc/jquery/class/test/qunit/class_test.js +146 -0
- data/lib/javascriptmvc/jquery/class/test/qunit/qunit.js +5 -0
- data/lib/javascriptmvc/jquery/class/test/qunit/test.html +20 -0
- data/lib/javascriptmvc/jquery/controller/controller.html +89 -0
- data/lib/javascriptmvc/jquery/controller/controller.js +735 -0
- data/lib/javascriptmvc/jquery/controller/history/history.html +44 -0
- data/lib/javascriptmvc/jquery/controller/history/history.js +177 -0
- data/lib/javascriptmvc/jquery/controller/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/scripts/compress.js +6 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/scripts/docs.js +6 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/subscribe.html +56 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/subscribe.js +27 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/funcunit/subscribe_test.js +11 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/qunit/subscribe_test.js +4 -0
- data/lib/javascriptmvc/jquery/controller/test/qunit/controller_test.js +170 -0
- data/lib/javascriptmvc/jquery/controller/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/controller/view/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/controller/view/test/qunit/controller_view_test.js +15 -0
- data/lib/javascriptmvc/jquery/controller/view/test/qunit/qunit.js +6 -0
- data/lib/javascriptmvc/jquery/controller/view/test/qunit/views/init.micro +1 -0
- data/lib/javascriptmvc/jquery/controller/view/view.js +102 -0
- data/lib/javascriptmvc/jquery/dom/closest/closest.html +23 -0
- data/lib/javascriptmvc/jquery/dom/closest/closest.js +47 -0
- data/lib/javascriptmvc/jquery/dom/closest/funcunit.html +20 -0
- data/lib/javascriptmvc/jquery/dom/closest/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/dom/closest/scripts/compress.js +3 -0
- data/lib/javascriptmvc/jquery/dom/closest/scripts/doc.js +4 -0
- data/lib/javascriptmvc/jquery/dom/closest/scripts/test.js +55 -0
- data/lib/javascriptmvc/jquery/dom/closest/settings.js +40 -0
- data/lib/javascriptmvc/jquery/dom/closest/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/dom/closest/test/funcunit/tests/basic.js +11 -0
- data/lib/javascriptmvc/jquery/dom/closest/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/dom/closest/test/qunit/tests/basic.js +4 -0
- data/lib/javascriptmvc/jquery/dom/compare/compare.html +88 -0
- data/lib/javascriptmvc/jquery/dom/compare/compare.js +67 -0
- data/lib/javascriptmvc/jquery/dom/compare/qunit.html +20 -0
- data/lib/javascriptmvc/jquery/dom/compare/test/qunit/compare_test.js +19 -0
- data/lib/javascriptmvc/jquery/dom/compare/test/qunit/qunit.js +5 -0
- data/lib/javascriptmvc/jquery/dom/cookie/cookie.html +25 -0
- data/lib/javascriptmvc/jquery/dom/cookie/cookie.js +119 -0
- data/lib/javascriptmvc/jquery/dom/cookie/scripts/compress.js +6 -0
- data/lib/javascriptmvc/jquery/dom/cookie/scripts/doc.js +6 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/funcunit/cookie_test.js +11 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/funcunit/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/qunit/cookie_test.js +4 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/cur_styles.html +71 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/cur_styles.js +120 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/test/qunit/curStyles.micro +3 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/test/qunit/cur_styles_test.js +22 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/test/qunit/outer.micro +0 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/curstyles.html +22 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/dimensions.html +132 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/dimensions.js +140 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/test/qunit/curStyles.micro +3 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/test/qunit/dimensions_test.js +8 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/test/qunit/outer.micro +0 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/dom/dom.js +7 -0
- data/lib/javascriptmvc/jquery/dom/fixture/fixture.html +143 -0
- data/lib/javascriptmvc/jquery/dom/fixture/fixture.js +521 -0
- data/lib/javascriptmvc/jquery/dom/fixture/fixtures/messages.html +31 -0
- data/lib/javascriptmvc/jquery/dom/fixture/fixtures/test.json +3 -0
- data/lib/javascriptmvc/jquery/dom/fixture/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/dom/fixture/test/qunit/fixture_test.js +50 -0
- data/lib/javascriptmvc/jquery/dom/fixture/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/dom/form_params/form_params.html +57 -0
- data/lib/javascriptmvc/jquery/dom/form_params/form_params.js +106 -0
- data/lib/javascriptmvc/jquery/dom/form_params/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/dom/form_params/test/qunit/basics.micro +27 -0
- data/lib/javascriptmvc/jquery/dom/form_params/test/qunit/checkbox.micro +20 -0
- data/lib/javascriptmvc/jquery/dom/form_params/test/qunit/form_params_test.js +43 -0
- data/lib/javascriptmvc/jquery/dom/form_params/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/dom/form_params/test/qunit/truthy.micro +8 -0
- data/lib/javascriptmvc/jquery/dom/within/within.js +67 -0
- data/lib/javascriptmvc/jquery/error/background.png +0 -0
- data/lib/javascriptmvc/jquery/error/error.html +31 -0
- data/lib/javascriptmvc/jquery/error/error.js +227 -0
- data/lib/javascriptmvc/jquery/error/setup.js +4 -0
- data/lib/javascriptmvc/jquery/error/test/test.html +23 -0
- data/lib/javascriptmvc/jquery/error/test/test.js +4 -0
- data/lib/javascriptmvc/jquery/event/default/compress.js +7 -0
- data/lib/javascriptmvc/jquery/event/default/default.html +85 -0
- data/lib/javascriptmvc/jquery/event/default/default.js +193 -0
- data/lib/javascriptmvc/jquery/event/default/defaultjquery.html +117 -0
- data/lib/javascriptmvc/jquery/event/default/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/event/default/test/qunit/default_test.js +104 -0
- data/lib/javascriptmvc/jquery/event/default/test/qunit/html.micro +8 -0
- data/lib/javascriptmvc/jquery/event/default/test/qunit/qunit.js +6 -0
- data/lib/javascriptmvc/jquery/event/default/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/event/destroyed/destroyed.html +24 -0
- data/lib/javascriptmvc/jquery/event/destroyed/destroyed.js +40 -0
- data/lib/javascriptmvc/jquery/event/destroyed/destroyed_menu.html +96 -0
- data/lib/javascriptmvc/jquery/event/destroyed/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/event/destroyed/test/qunit/destroyed_test.js +12 -0
- data/lib/javascriptmvc/jquery/event/destroyed/test/qunit/qunit.js +6 -0
- data/lib/javascriptmvc/jquery/event/drag/drag.html +105 -0
- data/lib/javascriptmvc/jquery/event/drag/drag.js +466 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/limit.html +74 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/limit.js +56 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/scripts/compress.js +6 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/scripts/doc.js +6 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/funcunit/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/funcunit/limit_test.js +11 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/qunit/limit_test.js +4 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/event/drag/qunit.html +16 -0
- data/lib/javascriptmvc/jquery/event/drag/scroll/scroll.js +120 -0
- data/lib/javascriptmvc/jquery/event/drag/test/qunit/drag_test.js +130 -0
- data/lib/javascriptmvc/jquery/event/drag/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/event/drop/drop.html +74 -0
- data/lib/javascriptmvc/jquery/event/drop/drop.js +301 -0
- data/lib/javascriptmvc/jquery/event/event.js +6 -0
- data/lib/javascriptmvc/jquery/event/hashchange/hashchange.js +245 -0
- data/lib/javascriptmvc/jquery/event/hover/compress.js +7 -0
- data/lib/javascriptmvc/jquery/event/hover/hover.html +56 -0
- data/lib/javascriptmvc/jquery/event/hover/hover.js +219 -0
- data/lib/javascriptmvc/jquery/event/hover/qunit.html +16 -0
- data/lib/javascriptmvc/jquery/event/hover/test/qunit/hover_test.js +55 -0
- data/lib/javascriptmvc/jquery/event/hover/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/event/livehack/compress.js +7 -0
- data/lib/javascriptmvc/jquery/event/livehack/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/event/livehack/livehack.html +25 -0
- data/lib/javascriptmvc/jquery/event/livehack/livehack.js +167 -0
- data/lib/javascriptmvc/jquery/event/offline/funcunit.html +20 -0
- data/lib/javascriptmvc/jquery/event/offline/offline.html +26 -0
- data/lib/javascriptmvc/jquery/event/offline/offline.js +36 -0
- data/lib/javascriptmvc/jquery/event/offline/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/event/offline/scripts/compress.js +3 -0
- data/lib/javascriptmvc/jquery/event/offline/scripts/doc.js +4 -0
- data/lib/javascriptmvc/jquery/event/offline/settings.js +41 -0
- data/lib/javascriptmvc/jquery/event/offline/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/event/offline/test/funcunit/tests/basic.js +11 -0
- data/lib/javascriptmvc/jquery/event/offline/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/event/offline/test/qunit/tests/basic.js +4 -0
- data/lib/javascriptmvc/jquery/event/resize/funcunit.html +20 -0
- data/lib/javascriptmvc/jquery/event/resize/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/event/resize/resize.html +23 -0
- data/lib/javascriptmvc/jquery/event/resize/resize.js +50 -0
- data/lib/javascriptmvc/jquery/event/resize/scripts/compress.js +3 -0
- data/lib/javascriptmvc/jquery/event/resize/scripts/doc.js +4 -0
- data/lib/javascriptmvc/jquery/event/resize/scripts/test.js +55 -0
- data/lib/javascriptmvc/jquery/event/resize/settings.js +40 -0
- data/lib/javascriptmvc/jquery/event/resize/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/event/resize/test/funcunit/tests/basic.js +11 -0
- data/lib/javascriptmvc/jquery/event/resize/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/event/resize/test/qunit/tests/basic.js +4 -0
- data/lib/javascriptmvc/jquery/event/select/scripts/compress.js +6 -0
- data/lib/javascriptmvc/jquery/event/select/scripts/doc.js +6 -0
- data/lib/javascriptmvc/jquery/event/select/select.html +63 -0
- data/lib/javascriptmvc/jquery/event/select/select.js +65 -0
- data/lib/javascriptmvc/jquery/event/select/test/funcunit/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/event/select/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/event/select/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/event/select/test/funcunit/select_test.js +11 -0
- data/lib/javascriptmvc/jquery/event/select/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/event/select/test/qunit/qunit.js +5 -0
- data/lib/javascriptmvc/jquery/event/select/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/event/select/test/qunit/select_test.js +4 -0
- data/lib/javascriptmvc/jquery/generate/app +23 -0
- data/lib/javascriptmvc/jquery/generate/controller +21 -0
- data/lib/javascriptmvc/jquery/generate/model +26 -0
- data/lib/javascriptmvc/jquery/generate/page +20 -0
- data/lib/javascriptmvc/jquery/generate/plugin +20 -0
- data/lib/javascriptmvc/jquery/generate/scaffold +23 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/(application_name).css.ejs +4 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/(application_name).html.ejs +23 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/(application_name).js.ejs +21 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/controllers/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/docs/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/fixtures/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/funcunit.html.ejs +15 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/models/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/qunit.html.ejs +20 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/resources/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/scripts/build.js.ejs +6 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/scripts/clean.js.ejs +6 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/scripts/docs.js.ejs +4 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/test/funcunit/(application_name)_test.js.ejs +9 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/test/funcunit/funcunit.js.ejs +3 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/test/qunit/(application_name)_test.js.ejs +5 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/test/qunit/qunit.js.ejs +3 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/views/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/controller/controllers/(underscore)_controller.js.ejs +12 -0
- data/lib/javascriptmvc/jquery/generate/templates/model/fixtures.link +1 -0
- data/lib/javascriptmvc/jquery/generate/templates/model/models.link +1 -0
- data/lib/javascriptmvc/jquery/generate/templates/model/test/qunit.link +1 -0
- data/lib/javascriptmvc/jquery/generate/templates/page.ejs +23 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/(application_name).html.ejs +23 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/(application_name).js.ejs +3 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/fixtures/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/funcunit.html.ejs +15 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/qunit.html.ejs +20 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/resources/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/scripts.link +1 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/test.link +1 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/views/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/controllers/(underscore)_controller.js.ejs +96 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/fixtures/(plural).json.get.ejs +3 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/models/(underscore).js.ejs +83 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/test/funcunit/(underscore)_controller_test.js.ejs +63 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/test/qunit/(underscore)_test.js.ejs +45 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/views/(underscore)/edit.ejs.ejs +10 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/views/(underscore)/init.ejs.ejs +26 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/views/(underscore)/list.ejs.ejs +5 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/views/(underscore)/show.ejs.ejs +10 -0
- data/lib/javascriptmvc/jquery/jquery.js +6360 -0
- data/lib/javascriptmvc/jquery/lang/json/json.html +25 -0
- data/lib/javascriptmvc/jquery/lang/json/json.js +201 -0
- data/lib/javascriptmvc/jquery/lang/json/scripts/compress.js +6 -0
- data/lib/javascriptmvc/jquery/lang/json/scripts/doc.js +6 -0
- data/lib/javascriptmvc/jquery/lang/json/test/funcunit/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/lang/json/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/lang/json/test/funcunit/json_test.js +11 -0
- data/lib/javascriptmvc/jquery/lang/json/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/lang/json/test/qunit/json_test.js +4 -0
- data/lib/javascriptmvc/jquery/lang/json/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/lang/json/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/lang/json/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/lang/lang.html +27 -0
- data/lib/javascriptmvc/jquery/lang/lang.js +104 -0
- data/lib/javascriptmvc/jquery/lang/openajax/openajax.js +202 -0
- data/lib/javascriptmvc/jquery/lang/rsplit/rsplit.js +31 -0
- data/lib/javascriptmvc/jquery/lang/vector/vector.js +167 -0
- data/lib/javascriptmvc/jquery/model/associations/associations.html +25 -0
- data/lib/javascriptmvc/jquery/model/associations/associations.js +46 -0
- data/lib/javascriptmvc/jquery/model/associations/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/model/associations/test/qunit/associations_test.js +51 -0
- data/lib/javascriptmvc/jquery/model/associations/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/model/associations/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/model/backup/backup.js +82 -0
- data/lib/javascriptmvc/jquery/model/json_rest/json_rest.js +91 -0
- data/lib/javascriptmvc/jquery/model/list/list.js +148 -0
- data/lib/javascriptmvc/jquery/model/list/qunit.html +16 -0
- data/lib/javascriptmvc/jquery/model/list/test/qunit/list_test.js +58 -0
- data/lib/javascriptmvc/jquery/model/list/test/qunit/qunit.js +6 -0
- data/lib/javascriptmvc/jquery/model/list/test/qunit/run.js +0 -0
- data/lib/javascriptmvc/jquery/model/model.js +537 -0
- data/lib/javascriptmvc/jquery/model/qunit.html +17 -0
- data/lib/javascriptmvc/jquery/model/store/store.js +66 -0
- data/lib/javascriptmvc/jquery/model/test/qunit/model_test.js +71 -0
- data/lib/javascriptmvc/jquery/model/test/qunit/qunit.js +5 -0
- data/lib/javascriptmvc/jquery/qunit.html +15 -0
- data/lib/javascriptmvc/jquery/test/funcunit/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/test/funcunit/jquerytest_test.js +11 -0
- data/lib/javascriptmvc/jquery/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/test/qunit/qunit.js +22 -0
- data/lib/javascriptmvc/jquery/update +5 -0
- data/lib/javascriptmvc/jquery/view/compress.js +7 -0
- data/lib/javascriptmvc/jquery/view/ejs/ejs.html +25 -0
- data/lib/javascriptmvc/jquery/view/ejs/ejs.js +489 -0
- data/lib/javascriptmvc/jquery/view/ejs/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/funcunit/ejs_test.js +11 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/qunit/ejs_test.js +4 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/view/fulljslint.js +3774 -0
- data/lib/javascriptmvc/jquery/view/helpers/helpers.js +338 -0
- data/lib/javascriptmvc/jquery/view/jaml/compress.js +7 -0
- data/lib/javascriptmvc/jquery/view/jaml/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/view/jaml/jaml.html +25 -0
- data/lib/javascriptmvc/jquery/view/jaml/jaml.js +73 -0
- data/lib/javascriptmvc/jquery/view/jaml/node.js +149 -0
- data/lib/javascriptmvc/jquery/view/jaml/template.js +131 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/funcunit/jaml_test.js +11 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/qunit/jaml_test.js +4 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/view/micro/compress.js +7 -0
- data/lib/javascriptmvc/jquery/view/micro/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/view/micro/micro.html +25 -0
- data/lib/javascriptmvc/jquery/view/micro/micro.js +57 -0
- data/lib/javascriptmvc/jquery/view/micro/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/view/micro/test/funcunit/micro_test.js +11 -0
- data/lib/javascriptmvc/jquery/view/micro/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/view/micro/test/qunit/micro_test.js +4 -0
- data/lib/javascriptmvc/jquery/view/micro/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/view/micro/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/view/micro/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/view/qunit.html +16 -0
- data/lib/javascriptmvc/jquery/view/test/compression/compression.html +12 -0
- data/lib/javascriptmvc/jquery/view/test/compression/compression.js +11 -0
- data/lib/javascriptmvc/jquery/view/test/compression/run.js +36 -0
- data/lib/javascriptmvc/jquery/view/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/view/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/view/test/funcunit/view_test.js +11 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/nested_plugin.ejs +1 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/plugin.ejs +1 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/template.ejs +1 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/template.jaml +3 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/template.micro +1 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/template.tmpl +1 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/view_test.js +24 -0
- data/lib/javascriptmvc/jquery/view/tmpl/tmpl.js +150 -0
- data/lib/javascriptmvc/jquery/view/view.html +65 -0
- data/lib/javascriptmvc/jquery/view/view.js +296 -0
- data/lib/javascriptmvc/js +56 -0
- data/lib/javascriptmvc/js.bat +57 -0
- data/lib/javascriptmvc/steal/README +26 -0
- data/lib/javascriptmvc/steal/build/apps/apps.js +208 -0
- data/lib/javascriptmvc/steal/build/apps/test.js +4 -0
- data/lib/javascriptmvc/steal/build/build.js +281 -0
- data/lib/javascriptmvc/steal/build/pluginify.js +73 -0
- data/lib/javascriptmvc/steal/build/scripts/compiler.jar +0 -0
- data/lib/javascriptmvc/steal/build/scripts/scripts.js +155 -0
- data/lib/javascriptmvc/steal/build/styles/cssmin.js +17 -0
- data/lib/javascriptmvc/steal/build/styles/styles.js +84 -0
- data/lib/javascriptmvc/steal/build/test/basicpage.html +6 -0
- data/lib/javascriptmvc/steal/build/test/basicproduction.js +1 -0
- data/lib/javascriptmvc/steal/build/test/basicsource.js +6 -0
- data/lib/javascriptmvc/steal/build/test/css/css/css1.css +1 -0
- data/lib/javascriptmvc/steal/build/test/css/css/justin.png +0 -0
- data/lib/javascriptmvc/steal/build/test/css/css2.css +5 -0
- data/lib/javascriptmvc/steal/build/test/css/page.html +9 -0
- data/lib/javascriptmvc/steal/build/test/css/production.css +1 -0
- data/lib/javascriptmvc/steal/build/test/css/test.js +7 -0
- data/lib/javascriptmvc/steal/build/test/css/upload.PNG +0 -0
- data/lib/javascriptmvc/steal/build/test/foreign.html +6 -0
- data/lib/javascriptmvc/steal/build/test/foreign.js +2 -0
- data/lib/javascriptmvc/steal/build/test/removecode.js +11 -0
- data/lib/javascriptmvc/steal/build/test/run.js +57 -0
- data/lib/javascriptmvc/steal/build/test/stealpage.html +10 -0
- data/lib/javascriptmvc/steal/build/test/stealprodpage.html +10 -0
- data/lib/javascriptmvc/steal/build/test/test.js +3 -0
- data/lib/javascriptmvc/steal/buildjs +21 -0
- data/lib/javascriptmvc/steal/clean/beautify.js +1108 -0
- data/lib/javascriptmvc/steal/clean/clean.js +179 -0
- data/lib/javascriptmvc/steal/clean/jslint.js +5662 -0
- data/lib/javascriptmvc/steal/clean/test.js +7 -0
- data/lib/javascriptmvc/steal/cleanjs +5 -0
- data/lib/javascriptmvc/steal/coffee/coffee-script.js +9 -0
- data/lib/javascriptmvc/steal/coffee/coffee.js +56 -0
- data/lib/javascriptmvc/steal/dev/dev.js +83 -0
- data/lib/javascriptmvc/steal/end.js +1 -0
- data/lib/javascriptmvc/steal/generate/app +23 -0
- data/lib/javascriptmvc/steal/generate/ejs.js +470 -0
- data/lib/javascriptmvc/steal/generate/generate.js +211 -0
- data/lib/javascriptmvc/steal/generate/inflector.js +117 -0
- data/lib/javascriptmvc/steal/generate/system.js +33 -0
- data/lib/javascriptmvc/steal/generate/templates/app/(application_name).css.ejs +10 -0
- data/lib/javascriptmvc/steal/generate/templates/app/(application_name).html.ejs +18 -0
- data/lib/javascriptmvc/steal/generate/templates/app/(application_name).js.ejs +10 -0
- data/lib/javascriptmvc/steal/generate/templates/app/docs/.ignore +0 -0
- data/lib/javascriptmvc/steal/generate/templates/app/resources/.ignore +0 -0
- data/lib/javascriptmvc/steal/generate/templates/app/resources/example.coffee.ejs +5 -0
- data/lib/javascriptmvc/steal/generate/templates/app/resources/example.js.ejs +13 -0
- data/lib/javascriptmvc/steal/generate/templates/app/resources/example.less.ejs +9 -0
- data/lib/javascriptmvc/steal/generate/templates/app/scripts/build.js.ejs +6 -0
- data/lib/javascriptmvc/steal/generate/templates/app/scripts/clean.js.ejs +6 -0
- data/lib/javascriptmvc/steal/generate/templates/app/test/.ignore +0 -0
- data/lib/javascriptmvc/steal/generate/templates/page.ejs +23 -0
- data/lib/javascriptmvc/steal/generate/test/test.js +92 -0
- data/lib/javascriptmvc/steal/get/get.js +163 -0
- data/lib/javascriptmvc/steal/get/gets.json +10 -0
- data/lib/javascriptmvc/steal/get/getter.js +115 -0
- data/lib/javascriptmvc/steal/get/github.js +134 -0
- data/lib/javascriptmvc/steal/get/json.js +172 -0
- data/lib/javascriptmvc/steal/getjs +5 -0
- data/lib/javascriptmvc/steal/js +56 -0
- data/lib/javascriptmvc/steal/js.bat +57 -0
- data/lib/javascriptmvc/steal/less/less.js +117 -0
- data/lib/javascriptmvc/steal/less/less_engine.js +2529 -0
- data/lib/javascriptmvc/steal/rhino/blank.html +6 -0
- data/lib/javascriptmvc/steal/rhino/build.js +31 -0
- data/lib/javascriptmvc/steal/rhino/docs.js +68 -0
- data/lib/javascriptmvc/steal/rhino/empty.html +12 -0
- data/lib/javascriptmvc/steal/rhino/env.js +11537 -0
- data/lib/javascriptmvc/steal/rhino/file.js +299 -0
- data/lib/javascriptmvc/steal/rhino/js.jar +0 -0
- data/lib/javascriptmvc/steal/rhino/loader.js +8 -0
- data/lib/javascriptmvc/steal/rhino/prompt.js +49 -0
- data/lib/javascriptmvc/steal/rhino/steal.js +122 -0
- data/lib/javascriptmvc/steal/rhino/test.js +16 -0
- data/lib/javascriptmvc/steal/steal.js +1317 -0
- data/lib/javascriptmvc/steal/steal.production.js +23 -0
- data/lib/javascriptmvc/steal/test/absoluteurl.html +7 -0
- data/lib/javascriptmvc/steal/test/absoluteurl/absoluteurl.js +1 -0
- data/lib/javascriptmvc/steal/test/absoluteurl/alert.js +1 -0
- data/lib/javascriptmvc/steal/test/another/two.js +2 -0
- data/lib/javascriptmvc/steal/test/one/four.js +1 -0
- data/lib/javascriptmvc/steal/test/one/one.js +6 -0
- data/lib/javascriptmvc/steal/test/qunit/qunit.html +22 -0
- data/lib/javascriptmvc/steal/test/qunit/qunit.js +3 -0
- data/lib/javascriptmvc/steal/test/qunit/steal_test.js +197 -0
- data/lib/javascriptmvc/steal/test/run.js +12 -0
- data/lib/javascriptmvc/steal/test/steal.html +37 -0
- data/lib/javascriptmvc/steal/test/test.js +82 -0
- data/lib/javascriptmvc/steal/test/three.js +3 -0
- data/lib/javascriptmvc/steal/testing/test.html +20 -0
- data/lib/javascriptmvc/steal/testing/testing.js +48 -0
- data/lib/javascriptmvc/steal/update +5 -0
- metadata +622 -0
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* @hide
|
3
|
+
* Sets the following functions and attributes to be added
|
4
|
+
* to Class or Constructor prototype (instance) functions.
|
5
|
+
* <h3>Example</h3>
|
6
|
+
* @codestart
|
7
|
+
* /* @prototype *|
|
8
|
+
* @codeend
|
9
|
+
*/
|
10
|
+
DocumentJS.Static.extend('DocumentJS.Prototype',
|
11
|
+
{
|
12
|
+
name: 'prototype'
|
13
|
+
});
|
@@ -0,0 +1,6 @@
|
|
1
|
+
load('jmvcdoc/scripts/build.js');
|
2
|
+
new steal.File("jmvcdoc/production.js").copyTo("documentjs/jmvcdoc/production.js");
|
3
|
+
new steal.File("jmvcdoc/style.css").copyTo("documentjs/jmvcdoc/style.css");
|
4
|
+
new steal.File("jmvcdoc/summary.ejs").copyTo("documentjs/jmvcdoc/summary.ejs");
|
5
|
+
|
6
|
+
new steal.File("jmvcdoc/images").copyTo("documentjs/jmvcdoc/images");
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @hide
|
3
|
+
* Sets the following functions and attributes to be added
|
4
|
+
* to Class or Constructor static (class) functions.
|
5
|
+
* <h3>Example</h3>
|
6
|
+
* @codestart
|
7
|
+
* /* @static *|
|
8
|
+
* @codeend
|
9
|
+
*/
|
10
|
+
DocumentJS.Pair.extend('DocumentJS.Static',
|
11
|
+
{starts_scope: true,
|
12
|
+
},
|
13
|
+
{
|
14
|
+
|
15
|
+
add_parent : function(scope){
|
16
|
+
|
17
|
+
var scope_class= scope.Class.shortName.toLowerCase();
|
18
|
+
this.parent = scope_class == 'class' || scope_class == 'constructor' ? scope : scope.parent;
|
19
|
+
if(scope_class != "file" && this.parent){
|
20
|
+
this.parent.add(this);
|
21
|
+
}
|
22
|
+
|
23
|
+
},
|
24
|
+
name: 'static'
|
25
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
C({"name": "Something", "children": [], "comment": " blah\n", "shortName": "Constructor", "ret": {"type": "undefined", "description": ""}, "params": {}})
|
@@ -0,0 +1 @@
|
|
1
|
+
C({"list": {"Something": {"name": "Something", "shortName": "constructor", "title": undefined, "tags": undefined}}, "s": {"list": ["Something"], "o": {"list": ["Something"]}}})
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
Relevant links:
|
2
|
+
1. http://jupiterit.com/#news/funcunit-fun-web-application-testing
|
3
|
+
2. http://groups.google.com/group/funcunit
|
4
|
+
3. http://twitter.com/funcunit
|
5
|
+
4. http://funcunit.com/
|
6
|
+
|
7
|
+
|
8
|
+
Building a new FuncUnit
|
9
|
+
1. Clone the repository at http://github.com/jupiterjs/framework
|
10
|
+
2. Use git submodule init and git submodule update to get the submodules. The only ones we'll need are steal and funcunit
|
11
|
+
3. Unzip funcunit/java/selenium-server.jar into a folder at funcunit/java/selenium-server/
|
12
|
+
4. Make whatever changes you want to syn, funcunit, drivers, or selenium.
|
13
|
+
5. From the framework directory, on the command line run js funcunit/build.js. This will build the JS scripts and copy the relevant files.
|
14
|
+
6. Using a tool like 7-zip (for windows), zip up the java/selenium-server folder. Copy the selenium-server.jar into the funcunit/java folder.
|
15
|
+
7. Run js funcunit/build.js again (to copy the jars).
|
16
|
+
|
17
|
+
That's it, funcunit/dist contains the same standalone funcunit placed into the standalone download.
|
@@ -0,0 +1,495 @@
|
|
1
|
+
/**
|
2
|
+
* o------------------------------------------------------------------------------o
|
3
|
+
* | This package is licensed under the Phpguru license. A quick summary is |
|
4
|
+
* | that for commercial use, there is a small one-time licensing fee to pay. For |
|
5
|
+
* | registered charities and educational institutes there is a reduced license |
|
6
|
+
* | fee available. You can read more at: |
|
7
|
+
* | |
|
8
|
+
* | http://www.phpguru.org/static/license.html |
|
9
|
+
* o------------------------------------------------------------------------------o
|
10
|
+
*/
|
11
|
+
|
12
|
+
/**
|
13
|
+
* Global vars
|
14
|
+
*/
|
15
|
+
__AutoComplete = new Array();
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Basic UA detection
|
19
|
+
*/
|
20
|
+
if (navigator.userAgent.match(/Opera/)) {
|
21
|
+
isIE = false;
|
22
|
+
isOpera = true;
|
23
|
+
opera_version = Number(navigator.userAgent.match(/Version\/([0-9.]+)/)[1]);
|
24
|
+
|
25
|
+
} else {
|
26
|
+
|
27
|
+
isIE = document.all ? true : false;
|
28
|
+
isOpera = false;
|
29
|
+
opera_version = 0;
|
30
|
+
}
|
31
|
+
|
32
|
+
|
33
|
+
/**
|
34
|
+
* Attachs the autocomplete object to a form element. Sets
|
35
|
+
* onkeypress event on the form element.
|
36
|
+
*
|
37
|
+
* @param string formElement Name of form element to attach to
|
38
|
+
* @param array data Array of strings of which to use as the autocomplete data
|
39
|
+
*/
|
40
|
+
function AutoComplete_Create (id, data)
|
41
|
+
{
|
42
|
+
__AutoComplete[id] = {'data':data,
|
43
|
+
'isVisible':false,
|
44
|
+
'element':document.getElementById(id),
|
45
|
+
'dropdown':null,
|
46
|
+
'highlighted':null};
|
47
|
+
|
48
|
+
__AutoComplete[id]['element'].setAttribute('autocomplete', 'off');
|
49
|
+
__AutoComplete[id]['element'].onkeydown = function(e) {return AutoComplete_KeyDown(this.getAttribute('id'), e);}
|
50
|
+
__AutoComplete[id]['element'].onkeyup = function(e) {return AutoComplete_KeyUp(this.getAttribute('id'), e);}
|
51
|
+
__AutoComplete[id]['element'].onkeypress = function(e) {if (!e) e = window.event;if (e.keyCode == 13) return false;}
|
52
|
+
__AutoComplete[id]['element'].ondblclick = function(e) {AutoComplete_ShowDropdown(this.getAttribute('id'));}
|
53
|
+
__AutoComplete[id]['element'].onclick = function(e) {if (!e) e = window.event; e.cancelBubble = true; e.returnValue = false;}
|
54
|
+
|
55
|
+
// Hides the dropdowns when document clicked
|
56
|
+
var docClick = function()
|
57
|
+
{
|
58
|
+
for (id in __AutoComplete) {
|
59
|
+
AutoComplete_HideDropdown(id);
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
if (document.addEventListener) {
|
64
|
+
document.addEventListener('click', docClick, false);
|
65
|
+
} else if (document.attachEvent) {
|
66
|
+
document.attachEvent('onclick', docClick, false);
|
67
|
+
}
|
68
|
+
|
69
|
+
|
70
|
+
// Max number of items shown at once
|
71
|
+
if (arguments[2] != null) {
|
72
|
+
__AutoComplete[id]['maxitems'] = arguments[2];
|
73
|
+
__AutoComplete[id]['firstItemShowing'] = 0;
|
74
|
+
__AutoComplete[id]['lastItemShowing'] = arguments[2] - 1;
|
75
|
+
}
|
76
|
+
|
77
|
+
AutoComplete_CreateDropdown(id);
|
78
|
+
|
79
|
+
// Prevent select dropdowns showing thru
|
80
|
+
if (isIE) {
|
81
|
+
__AutoComplete[id]['iframe'] = document.createElement('iframe');
|
82
|
+
__AutoComplete[id]['iframe'].id = id +'_iframe';
|
83
|
+
__AutoComplete[id]['iframe'].style.position = 'absolute';
|
84
|
+
__AutoComplete[id]['iframe'].style.top = '0';
|
85
|
+
__AutoComplete[id]['iframe'].style.left = '0';
|
86
|
+
__AutoComplete[id]['iframe'].style.width = '0px';
|
87
|
+
__AutoComplete[id]['iframe'].style.height = '0px';
|
88
|
+
__AutoComplete[id]['iframe'].style.zIndex = '98';
|
89
|
+
__AutoComplete[id]['iframe'].style.visibility = 'hidden';
|
90
|
+
|
91
|
+
__AutoComplete[id]['element'].parentNode.insertBefore(__AutoComplete[id]['iframe'], __AutoComplete[id]['element']);
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
|
96
|
+
/**
|
97
|
+
* Creates the dropdown layer
|
98
|
+
*
|
99
|
+
* @param string id The form elements id. Used to identify the correct dropdown.
|
100
|
+
*/
|
101
|
+
function AutoComplete_CreateDropdown(id)
|
102
|
+
{
|
103
|
+
var left = AutoComplete_GetLeft(__AutoComplete[id]['element']);
|
104
|
+
var top = AutoComplete_GetTop(__AutoComplete[id]['element']) + __AutoComplete[id]['element'].offsetHeight;
|
105
|
+
var width = __AutoComplete[id]['element'].offsetWidth;
|
106
|
+
|
107
|
+
__AutoComplete[id]['dropdown'] = document.createElement('div');
|
108
|
+
__AutoComplete[id]['dropdown'].className = 'autocomplete'; // Don't use setAttribute()
|
109
|
+
|
110
|
+
__AutoComplete[id]['element'].parentNode.insertBefore(__AutoComplete[id]['dropdown'], __AutoComplete[id]['element']);
|
111
|
+
|
112
|
+
// Position it
|
113
|
+
__AutoComplete[id]['dropdown'].style.left = left + 'px';
|
114
|
+
__AutoComplete[id]['dropdown'].style.top = top + 'px';
|
115
|
+
__AutoComplete[id]['dropdown'].style.width = width + 'px';
|
116
|
+
__AutoComplete[id]['dropdown'].style.zIndex = '99';
|
117
|
+
__AutoComplete[id]['dropdown'].style.visibility = 'hidden';
|
118
|
+
}
|
119
|
+
|
120
|
+
|
121
|
+
/**
|
122
|
+
* Gets left coord of given element
|
123
|
+
*
|
124
|
+
* @param object element The element to get the left coord for
|
125
|
+
*/
|
126
|
+
function AutoComplete_GetLeft(element)
|
127
|
+
{
|
128
|
+
var curNode = element;
|
129
|
+
var left = 0;
|
130
|
+
|
131
|
+
do {
|
132
|
+
left += curNode.offsetLeft;
|
133
|
+
|
134
|
+
curNode = curNode.offsetParent;
|
135
|
+
|
136
|
+
} while(curNode.tagName.toLowerCase() != 'body' && curNode.style.position != 'fixed');
|
137
|
+
|
138
|
+
return left;
|
139
|
+
}
|
140
|
+
|
141
|
+
/**
|
142
|
+
* Gets top coord of given element
|
143
|
+
*
|
144
|
+
* @param object element The element to get the top coord for
|
145
|
+
*/
|
146
|
+
function AutoComplete_GetTop(element)
|
147
|
+
{
|
148
|
+
var curNode = element;
|
149
|
+
var top = 0;
|
150
|
+
|
151
|
+
|
152
|
+
do {
|
153
|
+
top += curNode.offsetTop;
|
154
|
+
curNode = curNode.offsetParent;
|
155
|
+
|
156
|
+
} while(curNode.tagName.toLowerCase() != 'body' && curNode.style.position != 'fixed');
|
157
|
+
|
158
|
+
return top;
|
159
|
+
}
|
160
|
+
|
161
|
+
|
162
|
+
/**
|
163
|
+
* Shows the dropdown layer
|
164
|
+
*
|
165
|
+
* @param string id The form elements id. Used to identify the correct dropdown.
|
166
|
+
*/
|
167
|
+
function AutoComplete_ShowDropdown(id)
|
168
|
+
{
|
169
|
+
AutoComplete_HideAll();
|
170
|
+
|
171
|
+
var value = __AutoComplete[id]['element'].value;
|
172
|
+
var toDisplay = new Array();
|
173
|
+
var newDiv = null;
|
174
|
+
var text = null;
|
175
|
+
var numItems = __AutoComplete[id]['dropdown'].childNodes.length;
|
176
|
+
|
177
|
+
// Remove all child nodes from dropdown
|
178
|
+
while (__AutoComplete[id]['dropdown'].childNodes.length > 0) {
|
179
|
+
__AutoComplete[id]['dropdown'].removeChild(__AutoComplete[id]['dropdown'].childNodes[0]);
|
180
|
+
}
|
181
|
+
|
182
|
+
// Go thru data searching for matches
|
183
|
+
for (i=0; i<__AutoComplete[id]['data'].length; ++i) {
|
184
|
+
if (__AutoComplete[id]['data'][i].indexOf(value) != -1) {
|
185
|
+
toDisplay[toDisplay.length] = __AutoComplete[id]['data'][i];
|
186
|
+
}
|
187
|
+
}
|
188
|
+
|
189
|
+
// No matches?
|
190
|
+
if (toDisplay.length == 0) {
|
191
|
+
AutoComplete_HideDropdown(id);
|
192
|
+
return;
|
193
|
+
}
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
// Add data to the dropdown layer
|
198
|
+
for (i=0; i<toDisplay.length; ++i) {
|
199
|
+
newDiv = document.createElement('div');
|
200
|
+
newDiv.className = 'autocomplete_item'; // Don't use setAttribute()
|
201
|
+
newDiv.setAttribute('id', 'autocomplete_item_' + i);
|
202
|
+
newDiv.setAttribute('index', i);
|
203
|
+
newDiv.style.zIndex = '99';
|
204
|
+
|
205
|
+
// Scrollbars are on display ?
|
206
|
+
if (toDisplay.length > __AutoComplete[id]['maxitems'] && navigator.userAgent.indexOf('MSIE') == -1) {
|
207
|
+
newDiv.style.width = __AutoComplete[id]['element'].offsetWidth - 22 + 'px';
|
208
|
+
}
|
209
|
+
|
210
|
+
newDiv.onmouseover = function() {AutoComplete_HighlightItem(__AutoComplete[id]['element'].getAttribute('id'), this.getAttribute('index'));};
|
211
|
+
newDiv.onclick = function() {AutoComplete_SetValue(__AutoComplete[id]['element'].getAttribute('id')); AutoComplete_HideDropdown(__AutoComplete[id]['element'].getAttribute('id'));}
|
212
|
+
|
213
|
+
text = document.createTextNode(toDisplay[i]);
|
214
|
+
newDiv.appendChild(text);
|
215
|
+
|
216
|
+
__AutoComplete[id]['dropdown'].appendChild(newDiv);
|
217
|
+
}
|
218
|
+
|
219
|
+
|
220
|
+
// Too many items?
|
221
|
+
if (toDisplay.length > __AutoComplete[id]['maxitems']) {
|
222
|
+
__AutoComplete[id]['dropdown'].style.height = (__AutoComplete[id]['maxitems'] * 15) + 2 + 'px';
|
223
|
+
|
224
|
+
} else {
|
225
|
+
__AutoComplete[id]['dropdown'].style.height = '';
|
226
|
+
}
|
227
|
+
|
228
|
+
|
229
|
+
/**
|
230
|
+
* Set left/top in case of document movement/scroll/window resize etc
|
231
|
+
*/
|
232
|
+
__AutoComplete[id]['dropdown'].style.left = AutoComplete_GetLeft(__AutoComplete[id]['element']);
|
233
|
+
__AutoComplete[id]['dropdown'].style.top = AutoComplete_GetTop(__AutoComplete[id]['element']) + __AutoComplete[id]['element'].offsetHeight;
|
234
|
+
|
235
|
+
|
236
|
+
// Show the iframe for IE
|
237
|
+
if (isIE) {
|
238
|
+
__AutoComplete[id]['iframe'].style.top = __AutoComplete[id]['dropdown'].style.top;
|
239
|
+
__AutoComplete[id]['iframe'].style.left = __AutoComplete[id]['dropdown'].style.left;
|
240
|
+
__AutoComplete[id]['iframe'].style.width = __AutoComplete[id]['dropdown'].offsetWidth;
|
241
|
+
__AutoComplete[id]['iframe'].style.height = __AutoComplete[id]['dropdown'].offsetHeight;
|
242
|
+
|
243
|
+
__AutoComplete[id]['iframe'].style.visibility = 'visible';
|
244
|
+
}
|
245
|
+
|
246
|
+
|
247
|
+
// Show dropdown
|
248
|
+
if (!__AutoComplete[id]['isVisible']) {
|
249
|
+
__AutoComplete[id]['dropdown'].style.visibility = 'visible';
|
250
|
+
__AutoComplete[id]['isVisible'] = true;
|
251
|
+
}
|
252
|
+
|
253
|
+
|
254
|
+
// If now showing less items than before, reset the highlighted value
|
255
|
+
if (__AutoComplete[id]['dropdown'].childNodes.length != numItems) {
|
256
|
+
__AutoComplete[id]['highlighted'] = null;
|
257
|
+
}
|
258
|
+
}
|
259
|
+
|
260
|
+
|
261
|
+
/**
|
262
|
+
* Hides the dropdown layer
|
263
|
+
*
|
264
|
+
* @param string id The form elements id. Used to identify the correct dropdown.
|
265
|
+
*/
|
266
|
+
function AutoComplete_HideDropdown(id)
|
267
|
+
{
|
268
|
+
if (__AutoComplete[id]['iframe']) {
|
269
|
+
__AutoComplete[id]['iframe'].style.visibility = 'hidden';
|
270
|
+
}
|
271
|
+
|
272
|
+
|
273
|
+
__AutoComplete[id]['dropdown'].style.visibility = 'hidden';
|
274
|
+
__AutoComplete[id]['highlighted'] = null;
|
275
|
+
__AutoComplete[id]['isVisible'] = false;
|
276
|
+
}
|
277
|
+
|
278
|
+
|
279
|
+
/**
|
280
|
+
* Hides all dropdowns
|
281
|
+
*/
|
282
|
+
function AutoComplete_HideAll()
|
283
|
+
{
|
284
|
+
for (id in __AutoComplete) {
|
285
|
+
AutoComplete_HideDropdown(id);
|
286
|
+
}
|
287
|
+
}
|
288
|
+
|
289
|
+
|
290
|
+
/**
|
291
|
+
* Highlights a specific item
|
292
|
+
*
|
293
|
+
* @param string id The form elements id. Used to identify the correct dropdown.
|
294
|
+
* @param int index The index of the element in the dropdown to highlight
|
295
|
+
*/
|
296
|
+
function AutoComplete_HighlightItem(id, index)
|
297
|
+
{
|
298
|
+
if (__AutoComplete[id]['dropdown'].childNodes[index]) {
|
299
|
+
for (var i=0; i<__AutoComplete[id]['dropdown'].childNodes.length; ++i) {
|
300
|
+
if (__AutoComplete[id]['dropdown'].childNodes[i].className == 'autocomplete_item_highlighted') {
|
301
|
+
__AutoComplete[id]['dropdown'].childNodes[i].className = 'autocomplete_item';
|
302
|
+
}
|
303
|
+
}
|
304
|
+
|
305
|
+
__AutoComplete[id]['dropdown'].childNodes[index].className = 'autocomplete_item_highlighted';
|
306
|
+
__AutoComplete[id]['highlighted'] = index;
|
307
|
+
}
|
308
|
+
}
|
309
|
+
|
310
|
+
|
311
|
+
/**
|
312
|
+
* Highlights the menu item with the given index
|
313
|
+
*
|
314
|
+
* @param string id The form elements id. Used to identify the correct dropdown.
|
315
|
+
* @param int index The index of the element in the dropdown to highlight
|
316
|
+
*/
|
317
|
+
function AutoComplete_Highlight(id, index)
|
318
|
+
{
|
319
|
+
// Out of bounds checking
|
320
|
+
if (index == 1 && __AutoComplete[id]['highlighted'] == __AutoComplete[id]['dropdown'].childNodes.length - 1) {
|
321
|
+
__AutoComplete[id]['dropdown'].childNodes[__AutoComplete[id]['highlighted']].className = 'autocomplete_item';
|
322
|
+
__AutoComplete[id]['highlighted'] = null;
|
323
|
+
|
324
|
+
} else if (index == -1 && __AutoComplete[id]['highlighted'] == 0) {
|
325
|
+
__AutoComplete[id]['dropdown'].childNodes[0].className = 'autocomplete_item';
|
326
|
+
__AutoComplete[id]['highlighted'] = __AutoComplete[id]['dropdown'].childNodes.length;
|
327
|
+
}
|
328
|
+
|
329
|
+
// Nothing highlighted at the moment
|
330
|
+
if (__AutoComplete[id]['highlighted'] == null) {
|
331
|
+
__AutoComplete[id]['dropdown'].childNodes[0].className = 'autocomplete_item_highlighted';
|
332
|
+
__AutoComplete[id]['highlighted'] = 0;
|
333
|
+
|
334
|
+
} else {
|
335
|
+
if (__AutoComplete[id]['dropdown'].childNodes[__AutoComplete[id]['highlighted']]) {
|
336
|
+
__AutoComplete[id]['dropdown'].childNodes[__AutoComplete[id]['highlighted']].className = 'autocomplete_item';
|
337
|
+
}
|
338
|
+
|
339
|
+
var newIndex = __AutoComplete[id]['highlighted'] + index;
|
340
|
+
|
341
|
+
if (__AutoComplete[id]['dropdown'].childNodes[newIndex]) {
|
342
|
+
__AutoComplete[id]['dropdown'].childNodes[newIndex].className = 'autocomplete_item_highlighted';
|
343
|
+
|
344
|
+
__AutoComplete[id]['highlighted'] = newIndex;
|
345
|
+
}
|
346
|
+
}
|
347
|
+
}
|
348
|
+
|
349
|
+
|
350
|
+
/**
|
351
|
+
* Sets the input to a given value
|
352
|
+
*
|
353
|
+
* @param string id The form elements id. Used to identify the correct dropdown.
|
354
|
+
*/
|
355
|
+
function AutoComplete_SetValue(id)
|
356
|
+
{
|
357
|
+
__AutoComplete[id]['element'].value = __AutoComplete[id]['dropdown'].childNodes[__AutoComplete[id]['highlighted']].innerHTML;
|
358
|
+
}
|
359
|
+
|
360
|
+
|
361
|
+
/**
|
362
|
+
* Checks if the dropdown needs scrolling
|
363
|
+
*
|
364
|
+
* @param string id The form elements id. Used to identify the correct dropdown.
|
365
|
+
*/
|
366
|
+
function AutoComplete_ScrollCheck(id)
|
367
|
+
{
|
368
|
+
// Scroll down, or wrapping around from scroll up
|
369
|
+
if (__AutoComplete[id]['highlighted'] > __AutoComplete[id]['lastItemShowing']) {
|
370
|
+
__AutoComplete[id]['firstItemShowing'] = __AutoComplete[id]['highlighted'] - (__AutoComplete[id]['maxitems'] - 1);
|
371
|
+
__AutoComplete[id]['lastItemShowing'] = __AutoComplete[id]['highlighted'];
|
372
|
+
}
|
373
|
+
|
374
|
+
// Scroll up, or wrapping around from scroll down
|
375
|
+
if (__AutoComplete[id]['highlighted'] < __AutoComplete[id]['firstItemShowing']) {
|
376
|
+
__AutoComplete[id]['firstItemShowing'] = __AutoComplete[id]['highlighted'];
|
377
|
+
__AutoComplete[id]['lastItemShowing'] = __AutoComplete[id]['highlighted'] + (__AutoComplete[id]['maxitems'] - 1);
|
378
|
+
}
|
379
|
+
|
380
|
+
__AutoComplete[id]['dropdown'].scrollTop = __AutoComplete[id]['firstItemShowing'] * 15;
|
381
|
+
}
|
382
|
+
|
383
|
+
|
384
|
+
/**
|
385
|
+
* Function which handles the keypress event
|
386
|
+
*
|
387
|
+
* @param string id The form elements id. Used to identify the correct dropdown.
|
388
|
+
*/
|
389
|
+
function AutoComplete_KeyDown(id)
|
390
|
+
{
|
391
|
+
// Mozilla
|
392
|
+
if (arguments[1] != null) {
|
393
|
+
event = arguments[1];
|
394
|
+
}
|
395
|
+
|
396
|
+
var keyCode = event.keyCode;
|
397
|
+
|
398
|
+
switch (keyCode) {
|
399
|
+
|
400
|
+
// Return/Enter
|
401
|
+
case 13:
|
402
|
+
if (__AutoComplete[id]['highlighted'] != null) {
|
403
|
+
AutoComplete_SetValue(id);
|
404
|
+
AutoComplete_HideDropdown(id);
|
405
|
+
}
|
406
|
+
|
407
|
+
event.returnValue = false;
|
408
|
+
event.cancelBubble = true;
|
409
|
+
break;
|
410
|
+
|
411
|
+
// Escape
|
412
|
+
case 27:
|
413
|
+
AutoComplete_HideDropdown(id);
|
414
|
+
event.returnValue = false;
|
415
|
+
event.cancelBubble = true;
|
416
|
+
break;
|
417
|
+
|
418
|
+
// Up arrow
|
419
|
+
case 38:
|
420
|
+
if (!__AutoComplete[id]['isVisible']) {
|
421
|
+
AutoComplete_ShowDropdown(id);
|
422
|
+
}
|
423
|
+
|
424
|
+
AutoComplete_Highlight(id, -1);
|
425
|
+
AutoComplete_ScrollCheck(id, -1);
|
426
|
+
return false;
|
427
|
+
break;
|
428
|
+
|
429
|
+
// Tab
|
430
|
+
case 9:
|
431
|
+
if (__AutoComplete[id]['isVisible']) {
|
432
|
+
AutoComplete_HideDropdown(id);
|
433
|
+
}
|
434
|
+
return;
|
435
|
+
|
436
|
+
// Down arrow
|
437
|
+
case 40:
|
438
|
+
if (!__AutoComplete[id]['isVisible']) {
|
439
|
+
AutoComplete_ShowDropdown(id);
|
440
|
+
}
|
441
|
+
|
442
|
+
AutoComplete_Highlight(id, 1);
|
443
|
+
AutoComplete_ScrollCheck(id, 1);
|
444
|
+
return false;
|
445
|
+
break;
|
446
|
+
}
|
447
|
+
}
|
448
|
+
|
449
|
+
|
450
|
+
/**
|
451
|
+
* Function which handles the keyup event
|
452
|
+
*
|
453
|
+
* @param string id The form elements id. Used to identify the correct dropdown.
|
454
|
+
*/
|
455
|
+
function AutoComplete_KeyUp(id)
|
456
|
+
{
|
457
|
+
// Mozilla
|
458
|
+
if (arguments[1] != null) {
|
459
|
+
event = arguments[1];
|
460
|
+
}
|
461
|
+
|
462
|
+
var keyCode = event.keyCode;
|
463
|
+
|
464
|
+
switch (keyCode) {
|
465
|
+
case 13:
|
466
|
+
event.returnValue = false;
|
467
|
+
event.cancelBubble = true;
|
468
|
+
break;
|
469
|
+
|
470
|
+
case 27:
|
471
|
+
AutoComplete_HideDropdown(id);
|
472
|
+
event.returnValue = false;
|
473
|
+
event.cancelBubble = true;
|
474
|
+
break;
|
475
|
+
|
476
|
+
case 38:
|
477
|
+
case 40:
|
478
|
+
return false;
|
479
|
+
break;
|
480
|
+
|
481
|
+
default:
|
482
|
+
AutoComplete_ShowDropdown(id);
|
483
|
+
break;
|
484
|
+
}
|
485
|
+
}
|
486
|
+
|
487
|
+
/**
|
488
|
+
* Returns whether the dropdown is visible
|
489
|
+
*
|
490
|
+
* @param string id The form elements id. Used to identify the correct dropdown.
|
491
|
+
*/
|
492
|
+
function AutoComplete_isVisible(id)
|
493
|
+
{
|
494
|
+
return __AutoComplete[id]['dropdown'].style.visibility == 'visible';
|
495
|
+
}
|