RubyApp 0.6.67 → 0.6.68

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.
Files changed (460) hide show
  1. data/lib/ruby_app/application.rb +1 -1
  2. data/lib/ruby_app/elements/mobile/document.js.haml +0 -1
  3. data/lib/ruby_app/elements/mobile/document.rb +2 -4
  4. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0 → jquery.mobile-1.3.0}/demos/css/themes/default/images/ajax-loader.gif +0 -0
  5. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/css/themes/default/images/icons-18-black.png +0 -0
  6. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/css/themes/default/images/icons-18-white.png +0 -0
  7. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/css/themes/default/images/icons-36-black.png +0 -0
  8. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/css/themes/default/images/icons-36-white.png +0 -0
  9. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/css/themes/default/jquery.mobile-1.3.0.css +3357 -0
  10. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/css/themes/default/jquery.mobile-1.3.0.min.css +2 -0
  11. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/css/themes/default/jquery.mobile.structure-1.3.0.css +2197 -0
  12. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/css/themes/default/jquery.mobile.structure-1.3.0.min.css +2 -0
  13. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/jquery.mobile.theme-1.1.0.css → jquery.mobile-1.3.0/demos/css/themes/default/jquery.mobile.theme-1.3.0.css} +367 -367
  14. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/css/themes/default/jquery.mobile.theme-1.3.0.min.css +2 -0
  15. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/css/jqm-demos.css +1032 -0
  16. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/css/jqm_demo-icons-hd.png +0 -0
  17. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/css/jqm_demo-icons-sd.png +0 -0
  18. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/lists/images → jquery.mobile-1.3.0/demos/docs/_assets/img}/album-af.jpg +0 -0
  19. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/lists/images → jquery.mobile-1.3.0/demos/docs/_assets/img}/album-ag.jpg +0 -0
  20. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/album-bb.jpg +0 -0
  21. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/lists/images → jquery.mobile-1.3.0/demos/docs/_assets/img}/album-bk.jpg +0 -0
  22. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/lists/images → jquery.mobile-1.3.0/demos/docs/_assets/img}/album-hc.jpg +0 -0
  23. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/lists/images → jquery.mobile-1.3.0/demos/docs/_assets/img}/album-k.jpg +0 -0
  24. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/lists/images → jquery.mobile-1.3.0/demos/docs/_assets/img}/album-mg.jpg +0 -0
  25. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/lists/images → jquery.mobile-1.3.0/demos/docs/_assets/img}/album-ok.jpg +0 -0
  26. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/lists/images → jquery.mobile-1.3.0/demos/docs/_assets/img}/album-p.jpg +0 -0
  27. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/lists/images → jquery.mobile-1.3.0/demos/docs/_assets/img}/album-rh.jpg +0 -0
  28. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/lists/images → jquery.mobile-1.3.0/demos/docs/_assets/img}/album-ws.jpg +0 -0
  29. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/lists/images → jquery.mobile-1.3.0/demos/docs/_assets/img}/album-xx.jpg +0 -0
  30. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/apple.png +0 -0
  31. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/bg-pattern.png +0 -0
  32. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/bike.jpg +0 -0
  33. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/blackberry_10.png +0 -0
  34. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/bmw-thumb.jpg +0 -0
  35. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/bmw.jpg +0 -0
  36. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/buenosaires.jpg +0 -0
  37. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/capetown.jpg +0 -0
  38. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/lists/images → jquery.mobile-1.3.0/demos/docs/_assets/img}/de.png +0 -0
  39. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/lists/images → jquery.mobile-1.3.0/demos/docs/_assets/img}/fi.png +0 -0
  40. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/firefox-logo.png +0 -0
  41. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/firefox_os.png +0 -0
  42. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/galaxy_express.png +0 -0
  43. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/lists/images → jquery.mobile-1.3.0/demos/docs/_assets/img}/gb.png +0 -0
  44. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/lists/images → jquery.mobile-1.3.0/demos/docs/_assets/img}/gf.png +0 -0
  45. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/toolbars → jquery.mobile-1.3.0/demos/docs/_assets/img}/glyphish-icons/09-chat2.png +0 -0
  46. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/toolbars → jquery.mobile-1.3.0/demos/docs/_assets/img}/glyphish-icons/100-coffee.png +0 -0
  47. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/toolbars → jquery.mobile-1.3.0/demos/docs/_assets/img}/glyphish-icons/18-envelope.png +0 -0
  48. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/toolbars → jquery.mobile-1.3.0/demos/docs/_assets/img}/glyphish-icons/19-gear.png +0 -0
  49. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/toolbars → jquery.mobile-1.3.0/demos/docs/_assets/img}/glyphish-icons/21-skull.png +0 -0
  50. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/toolbars → jquery.mobile-1.3.0/demos/docs/_assets/img}/glyphish-icons/30-key.png +0 -0
  51. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/toolbars → jquery.mobile-1.3.0/demos/docs/_assets/img}/glyphish-icons/34-coffee.png +0 -0
  52. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/toolbars → jquery.mobile-1.3.0/demos/docs/_assets/img}/glyphish-icons/88-beermug.png +0 -0
  53. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/glyphish-icons/Read me first - license.txt b/data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/glyphish-icons/Read me first - → license.txt +0 -0
  54. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/jquery-logo.png +0 -0
  55. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/landrover-thumb.jpg +0 -0
  56. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/landrover.jpg +0 -0
  57. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/lumia_800.png +0 -0
  58. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/newyork.jpg +0 -0
  59. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/nexus_7.png +0 -0
  60. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/paris.jpg +0 -0
  61. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/phone_galaxy3.png +0 -0
  62. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/phone_iphone5.png +0 -0
  63. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/phone_lumia920.png +0 -0
  64. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/phone_onex.png +0 -0
  65. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/photo-landscape.jpg +0 -0
  66. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/photo-portrait.jpg +0 -0
  67. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/toolbars/images → jquery.mobile-1.3.0/demos/docs/_assets/img}/photo-run.jpeg +0 -0
  68. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/seoul.jpg +0 -0
  69. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/sydney.jpg +0 -0
  70. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/tesla-thumb.jpg +0 -0
  71. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/tesla.jpg +0 -0
  72. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/img/tizen.png +0 -0
  73. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/lists/images → jquery.mobile-1.3.0/demos/docs/_assets/img}/us.png +0 -0
  74. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/js/globalnav.js +35 -0
  75. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/js/h2widget.js +169 -0
  76. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/js/index.html +10 -0
  77. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/js/jqm-demos.js +336 -0
  78. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/js/jquery.mobile.demos.js +1076 -0
  79. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/_assets/js/view-source.js +533 -0
  80. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/backbone-require.html +83 -0
  81. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/index.html +445 -0
  82. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/collections/CategoriesCollection.js +98 -0
  83. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/libs/backbone.js +1431 -0
  84. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/js → jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/libs}/jquery.js +3932 -3731
  85. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/libs/jquerymobile.js +10945 -0
  86. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/libs/lodash.js +4215 -0
  87. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/libs/require.js +1981 -0
  88. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/mobile.js +45 -0
  89. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/models/CategoryModel.js +15 -0
  90. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/routers/mobileRouter.js +83 -0
  91. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/views/CategoryView.js +37 -0
  92. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/collapsibles/dynamic-collapsible.html +363 -0
  93. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/controlgroups/dynamic-controlgroup.html +428 -0
  94. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/index.html +388 -0
  95. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/listviews/autodividers-linkbar-demo.html +158 -0
  96. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/listviews/autodividers-linkbar.css +20 -0
  97. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/listviews/autodividers-linkbar.html +692 -0
  98. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/listviews/autodividers-linkbar.js +58 -0
  99. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/listviews/autodividers-selector.html +368 -0
  100. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/listviews/grid-listview-demo.html +84 -0
  101. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/listviews/grid-listview.css +180 -0
  102. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/listviews/grid-listview.html +411 -0
  103. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/panels/panel-styling.html +551 -0
  104. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/panels/panel-swipe-open.html +413 -0
  105. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/popups/arrow.html +363 -0
  106. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/popups/dynamic-popup.html +407 -0
  107. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/popups/jquery.mobile.popup.arrow.css +233 -0
  108. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/popups/popup.arrow.js +276 -0
  109. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/redirect/index.html +375 -0
  110. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/redirect/redirect-target.html +27 -0
  111. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/redirect/redirect.php +19 -0
  112. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/redirect/source.php +4 -0
  113. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/slider/slider.tooltip.css +15 -0
  114. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/slider/slider.tooltip.js +111 -0
  115. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/slider/tooltip.html +339 -0
  116. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/swipe/buenosaires.html +46 -0
  117. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/swipe/capetown.html +46 -0
  118. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/swipe/newyork.html +46 -0
  119. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/swipe/paris.html +46 -0
  120. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/swipe/seoul.html +46 -0
  121. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/swipe/swipe-list.html +805 -0
  122. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/swipe/swipe-page.css +39 -0
  123. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/swipe/swipe-page.html +368 -0
  124. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/swipe/swipe-page.js +37 -0
  125. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/swipe/sydney.html +46 -0
  126. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/tables/financial-grouped-columns.html +506 -0
  127. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/tables/financial-grouped-reflow.html +503 -0
  128. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/tables/movie-list-toggle-options.html +422 -0
  129. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/tables/movie-list.html +529 -0
  130. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/tables/phone-compare.html +477 -0
  131. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/controls-in-header-footer.html +335 -0
  132. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/disabling-a-button-does-not-work.html +335 -0
  133. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/dom-ready-not-working.html +349 -0
  134. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/how-can-i-stop-auto-enhancement-of-a-block-of-elements.html +342 -0
  135. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/how-can-i-stop-auto-enhancement-of-elements.html +348 -0
  136. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/how-configure-phonegap-cordova.html +398 -0
  137. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/how-do-i-control-page-titles.html +344 -0
  138. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/how-do-i-load-a-page.html +338 -0
  139. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/how-do-i-scroll-to-a-position.html +340 -0
  140. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/how-do-i-use-touch-mouse-events.html +335 -0
  141. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/how-does-theming-work.html +446 -0
  142. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/index.html +424 -0
  143. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/injected-content-is-not-enhanced.html +360 -0
  144. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/my-html-5-inputs-look-different-in-browsers.html +335 -0
  145. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/my-range-search-input-type-is-being-changed.html +335 -0
  146. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/pass-query-params-to-page.html +343 -0
  147. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/pass-via-the-hash-to-page.html +334 -0
  148. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/question-template.html +353 -0
  149. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/scripts-and-styles-not-loading.html +342 -0
  150. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/sometimes-custom-select-shows-as-dialog-popup.html +335 -0
  151. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/the-application-cache-is-not-working.html +346 -0
  152. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/triggering-create-on-injected-content-does-not-work.html +346 -0
  153. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/updating-the-value-of-enhanced-form-elements-does-not-work.html +364 -0
  154. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/faq/why-is-only-the-first-page-loaded.html +334 -0
  155. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/favicon.ico +0 -0
  156. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/global-nav.html +73 -0
  157. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/index.html +31 -0
  158. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/intro/index.html +418 -0
  159. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/intro/rwd.html +409 -0
  160. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/nav-examples.html +55 -0
  161. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/nav-faq.html +91 -0
  162. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/nav-widgets.html +61 -0
  163. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/search-results.html +540 -0
  164. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/search.html +214 -0
  165. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/accordions/index.html +513 -0
  166. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/autocomplete/autocomplete-remote.html +376 -0
  167. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/autocomplete/index.html +416 -0
  168. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/buttons/buttons-grids.html +453 -0
  169. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/buttons/index.html +476 -0
  170. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/checkbox/index.html +426 -0
  171. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/collapsibles/index.html +512 -0
  172. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/controlgroups/index.html +651 -0
  173. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/pages → jquery.mobile-1.3.0/demos/docs/widgets/dialog}/dialog-alt.html +4 -6
  174. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/pages → jquery.mobile-1.3.0/demos/docs/widgets/dialog}/dialog-buttons.html +4 -6
  175. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/dialog/dialog-corners.html +29 -0
  176. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/dialog/dialog-noclosebtn.html +29 -0
  177. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/pages → jquery.mobile-1.3.0/demos/docs/widgets/dialog}/dialog-overlay.html +4 -6
  178. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/dialog/dialog-rightclosebtn.html +29 -0
  179. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/pages → jquery.mobile-1.3.0/demos/docs/widgets/dialog}/dialog-success.html +6 -8
  180. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/pages → jquery.mobile-1.3.0/demos/docs/widgets/dialog}/dialog-with-select.html +7 -9
  181. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/pages → jquery.mobile-1.3.0/demos/docs/widgets/dialog}/dialog.html +8 -10
  182. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/dialog/index.html +403 -0
  183. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/toolbars/footer-persist-d.html → jquery.mobile-1.3.0/demos/docs/widgets/footers/footer-persist-a.html} +32 -33
  184. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/toolbars/footer-persist-a.html → jquery.mobile-1.3.0/demos/docs/widgets/footers/footer-persist-b.html} +17 -28
  185. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/toolbars/footer-persist-b.html → jquery.mobile-1.3.0/demos/docs/widgets/footers/footer-persist-c.html} +22 -26
  186. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/toolbars/footer-persist-c.html → jquery.mobile-1.3.0/demos/docs/widgets/footers/footer-persist-d.html} +17 -40
  187. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/footers/index.html +387 -0
  188. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/forms/form-disabled.html +795 -0
  189. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/forms/form-fieldcontain.html +785 -0
  190. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/forms/form-hide-label.html +785 -0
  191. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/forms/form-label-hidden.html +713 -0
  192. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/forms/form.html +646 -0
  193. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/forms/index.html +706 -0
  194. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/grids/grid-custom.html +438 -0
  195. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/grids/index.html +497 -0
  196. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/headers/bars-fixed-forms.html +121 -0
  197. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/headers/bars-fixed.html +471 -0
  198. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/headers/bars-fullscreen.html +333 -0
  199. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/headers/index.html +444 -0
  200. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/icons/index.html +642 -0
  201. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/index.html +395 -0
  202. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/links/index.html +411 -0
  203. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/listviews/index.html +853 -0
  204. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/loader/index.html +384 -0
  205. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/navbar/footer-persist-a.html +358 -0
  206. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/navbar/footer-persist-b.html +370 -0
  207. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/navbar/footer-persist-c.html +408 -0
  208. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/navbar/footer-persist-d.html +386 -0
  209. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/navbar/index.html +599 -0
  210. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/navigation/demo.js +38 -0
  211. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/navigation/index.html +429 -0
  212. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/pages/index.html +524 -0
  213. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs → jquery.mobile-1.3.0/demos/docs/widgets}/pages/multipage-template.html +32 -31
  214. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/panels/index.html +535 -0
  215. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/panels/panel-fixed.html +170 -0
  216. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/popup/index.html +582 -0
  217. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/popup/map.html +38 -0
  218. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/popup/popup-examples.css +16 -0
  219. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/popup/popup-examples.js +98 -0
  220. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/popup/popup-iframes.html +526 -0
  221. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/popup/popup-images.html +361 -0
  222. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/radiobuttons/index.html +434 -0
  223. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/selects/custom-selects.html +598 -0
  224. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/selects/index.html +545 -0
  225. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/sliders/index.html +479 -0
  226. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/sliders/rangeslider.html +534 -0
  227. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/sliders/switch.html +485 -0
  228. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/table-column-toggle/index.html +602 -0
  229. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/table-reflow/index.html +458 -0
  230. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/textinputs/index.html +689 -0
  231. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/widgets/transitions/index.html +447 -0
  232. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/pages → jquery.mobile-1.3.0/demos/docs/widgets/transitions}/page-transitions-dialog.html +11 -11
  233. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/docs/pages → jquery.mobile-1.3.0/demos/docs/widgets/transitions}/page-transitions-page.html +13 -15
  234. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/index.html +340 -0
  235. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/js/jquery.js +9597 -0
  236. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/js/jquery.mobile-1.3.0.js +11092 -0
  237. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/js/jquery.mobile-1.3.0.min.js +2 -0
  238. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0 → jquery.mobile-1.3.0}/images/ajax-loader.gif +0 -0
  239. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/images/icons-18-black.png +0 -0
  240. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/images/icons-18-white.png +0 -0
  241. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/images/icons-36-black.png +0 -0
  242. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/images/icons-36-white.png +0 -0
  243. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/jquery.mobile-1.3.0.css +3357 -0
  244. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/jquery.mobile-1.3.0.js +11092 -0
  245. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/jquery.mobile-1.3.0.min.css +2 -0
  246. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/jquery.mobile-1.3.0.min.js +2 -0
  247. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/jquery.mobile.structure-1.3.0.css +2197 -0
  248. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/jquery.mobile.structure-1.3.0.min.css +2 -0
  249. data/lib/ruby_app/resources/elements/mobile/document/{jquery.mobile-1.1.0/demos/css/themes/default/jquery.mobile.theme-1.1.0.css → jquery.mobile-1.3.0/jquery.mobile.theme-1.3.0.css} +367 -367
  250. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/jquery.mobile.theme-1.3.0.min.css +2 -0
  251. data/lib/ruby_app/scripts/phantom/phantom.js +23 -0
  252. data/lib/ruby_app/scripts/phantom/standard_no_logon.rb +3 -0
  253. data/lib/ruby_app/version.rb +1 -1
  254. metadata +253 -254
  255. data/lib/ruby_app/resources/elements/mobile/document/fastclick-0.5.6.js +0 -660
  256. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/css/themes/default/images/ajax-loader.png +0 -0
  257. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/css/themes/default/images/icons-18-black.png +0 -0
  258. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/css/themes/default/images/icons-18-white.png +0 -0
  259. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/css/themes/default/images/icons-36-black.png +0 -0
  260. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/css/themes/default/images/icons-36-white.png +0 -0
  261. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/css/themes/default/jquery.mobile-1.1.0.css +0 -2053
  262. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/css/themes/default/jquery.mobile-1.1.0.min.css +0 -2
  263. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/css/themes/default/jquery.mobile.structure-1.1.0.css +0 -946
  264. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/css/themes/default/jquery.mobile.structure-1.1.0.min.css +0 -2
  265. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/css/themes/default/jquery.mobile.theme-1.1.0.min.css +0 -2
  266. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/_assets/css/jqm-docs.css +0 -359
  267. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/_assets/images/ios_icon.png +0 -0
  268. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/_assets/images/ios_startup.png +0 -0
  269. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/_assets/images/jqm-sitebg.png +0 -0
  270. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/_assets/images/jquery-logo.png +0 -0
  271. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/_assets/images/mobile-devices.png +0 -0
  272. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/_assets/images/px-ccc.gif +0 -0
  273. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/_assets/images/themroller-mobile-logo.png +0 -0
  274. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/_assets/images/version.png +0 -0
  275. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/_assets/js/_viewsource.js +0 -42
  276. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/_assets/js/jqm-docs.js +0 -52
  277. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/about/accessibility.html +0 -70
  278. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/about/features.html +0 -77
  279. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/about/getting-started.html +0 -171
  280. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/about/index.html +0 -40
  281. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/about/intro.html +0 -70
  282. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/about/platforms.html +0 -108
  283. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/api/data-attributes.html +0 -530
  284. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/api/events-nav.html +0 -557
  285. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/api/events.html +0 -514
  286. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/api/globalconfig.html +0 -181
  287. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/api/index.html +0 -40
  288. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/api/mediahelpers.html +0 -133
  289. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/api/methods.html +0 -597
  290. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/api/themes.html +0 -291
  291. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/buttons/api-buttons.html +0 -45
  292. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/buttons/buttons-events.html +0 -92
  293. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/buttons/buttons-grouped.html +0 -112
  294. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/buttons/buttons-icons.html +0 -247
  295. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/buttons/buttons-inline.html +0 -99
  296. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/buttons/buttons-methods.html +0 -98
  297. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/buttons/buttons-options.html +0 -153
  298. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/buttons/buttons-themes.html +0 -130
  299. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/buttons/buttons-types.html +0 -119
  300. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/buttons/index.html +0 -43
  301. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/config/dialogTransition.html +0 -44
  302. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/config/iOSFullscreen.html +0 -50
  303. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/config/index.html +0 -86
  304. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/config/jq17b1.html +0 -37
  305. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/config/loadingMessage.html +0 -43
  306. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/config/loadingMessageTextVisible.html +0 -84
  307. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/config/minScrollBack.html +0 -43
  308. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/config/pageLoadErrorMessage.html +0 -45
  309. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/config/pageTransition.html +0 -43
  310. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/config/pushState.html +0 -44
  311. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/config/touchOverflow.html +0 -51
  312. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/content/api-content.html +0 -42
  313. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/content/content-collapsible-events.html +0 -109
  314. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/content/content-collapsible-methods.html +0 -67
  315. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/content/content-collapsible-options.html +0 -178
  316. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/content/content-collapsible-set-events.html +0 -89
  317. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/content/content-collapsible-set-methods.html +0 -80
  318. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/content/content-collapsible-set-options.html +0 -112
  319. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/content/content-collapsible-set.html +0 -198
  320. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/content/content-collapsible.html +0 -226
  321. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/content/content-grids.html +0 -193
  322. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/content/content-html.html +0 -144
  323. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/content/content-themes.html +0 -144
  324. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/content/index.html +0 -45
  325. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/checkboxes/events.html +0 -104
  326. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/checkboxes/index.html +0 -189
  327. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/checkboxes/methods.html +0 -108
  328. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/checkboxes/options.html +0 -98
  329. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/docs-forms.html +0 -267
  330. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/forms-all-compare.html +0 -263
  331. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/forms-all-mini.html +0 -245
  332. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/forms-all-native.html +0 -250
  333. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/forms-all.html +0 -247
  334. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/forms-sample-response.php +0 -81
  335. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/forms-sample-selfsubmit.php +0 -80
  336. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/forms-sample.html +0 -114
  337. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/forms-themes.html +0 -408
  338. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/index.html +0 -50
  339. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/plugin-eventsmethods.html +0 -73
  340. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/radiobuttons/events.html +0 -106
  341. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/radiobuttons/index.html +0 -225
  342. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/radiobuttons/methods.html +0 -108
  343. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/radiobuttons/options.html +0 -98
  344. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/search/events.html +0 -103
  345. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/search/index.html +0 -141
  346. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/search/methods.html +0 -100
  347. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/search/options.html +0 -113
  348. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/selects/custom.html +0 -424
  349. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/selects/events.html +0 -105
  350. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/selects/index.html +0 -418
  351. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/selects/methods.html +0 -126
  352. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/selects/options.html +0 -173
  353. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/slider/events.html +0 -104
  354. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/slider/index.html +0 -179
  355. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/slider/methods.html +0 -108
  356. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/slider/options.html +0 -131
  357. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/switch/events.html +0 -104
  358. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/switch/index.html +0 -210
  359. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/switch/methods.html +0 -108
  360. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/switch/options.html +0 -123
  361. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/textinputs/events.html +0 -103
  362. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/textinputs/index.html +0 -244
  363. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/textinputs/methods.html +0 -100
  364. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/forms/textinputs/options.html +0 -117
  365. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/index.html +0 -33
  366. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/docs-lists.html +0 -177
  367. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/images/album-bb.jpg +0 -0
  368. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/images/sj.png +0 -0
  369. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/index.html +0 -72
  370. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-all-full.html +0 -174
  371. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-count.html +0 -83
  372. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-divider.html +0 -114
  373. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-events.html +0 -108
  374. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-formatting.html +0 -135
  375. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-forms-inset.html +0 -249
  376. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-forms.html +0 -249
  377. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-icons.html +0 -89
  378. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-inset.html +0 -175
  379. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-methods.html +0 -108
  380. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-nested.html +0 -194
  381. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-ol.html +0 -98
  382. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-options.html +0 -222
  383. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-performance.html +0 -578
  384. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-readonly-inset.html +0 -171
  385. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-readonly.html +0 -173
  386. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-search-filtertext.html +0 -94
  387. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-search-inset.html +0 -100
  388. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-search-with-dividers.html +0 -113
  389. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-search.html +0 -100
  390. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-split-purchase.html +0 -35
  391. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-split.html +0 -147
  392. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-themes.html +0 -264
  393. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-thumbnails.html +0 -135
  394. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/lists/lists-ul.html +0 -100
  395. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/nav.html +0 -296
  396. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/docs-links-urltest/index.html +0 -28
  397. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/dynamic-samples/animals.html +0 -27
  398. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/dynamic-samples/category.php +0 -150
  399. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/dynamic-samples/colors.html +0 -31
  400. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/dynamic-samples/index.html +0 -26
  401. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/dynamic-samples/sample-reuse-page-external.html +0 -121
  402. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/dynamic-samples/sample-reuse-page.html +0 -197
  403. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/dynamic-samples/vehicles.html +0 -27
  404. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/index.html +0 -52
  405. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/page-anatomy.html +0 -225
  406. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/page-cache.html +0 -125
  407. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/page-customtransitions.html +0 -297
  408. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/page-dialogs.html +0 -129
  409. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/page-dynamic.html +0 -300
  410. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/page-links.html +0 -147
  411. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/page-navmodel.html +0 -182
  412. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/page-scripting.html +0 -156
  413. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/page-template.html +0 -34
  414. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/page-titles.html +0 -82
  415. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/page-transitions.html +0 -174
  416. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/pages-themes.html +0 -150
  417. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/pages-themes/theme-a.html +0 -163
  418. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/pages-themes/theme-b.html +0 -163
  419. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/pages-themes/theme-c.html +0 -163
  420. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/pages-themes/theme-d.html +0 -163
  421. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/pages-themes/theme-e.html +0 -163
  422. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/phonegap.html +0 -115
  423. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/touchoverflow.html +0 -127
  424. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/pages/transition-success.html +0 -33
  425. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/bars-fixed-events.html +0 -84
  426. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/bars-fixed-forms-a.html +0 -299
  427. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/bars-fixed-forms-b.html +0 -129
  428. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/bars-fixed-forms-c.html +0 -129
  429. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/bars-fixed-forms-d.html +0 -153
  430. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/bars-fixed-forms-e.html +0 -153
  431. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/bars-fixed-forms-f.html +0 -129
  432. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/bars-fixed-forms-g.html +0 -231
  433. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/bars-fixed-forms-h.html +0 -135
  434. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/bars-fixed-forms.html +0 -45
  435. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/bars-fixed-methods.html +0 -134
  436. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/bars-fixed-options.html +0 -177
  437. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/bars-fixed.html +0 -231
  438. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/bars-fullscreen.html +0 -68
  439. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/bars-themes.html +0 -177
  440. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/docs-bars.html +0 -85
  441. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/docs-footers.html +0 -153
  442. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/docs-headers.html +0 -216
  443. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/docs-navbar.html +0 -318
  444. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/docs/toolbars/index.html +0 -45
  445. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/index.html +0 -76
  446. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/js/jquery.mobile-1.1.0.js +0 -7551
  447. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/demos/js/jquery.mobile-1.1.0.min.js +0 -177
  448. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/images/ajax-loader.png +0 -0
  449. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/images/icons-18-black.png +0 -0
  450. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/images/icons-18-white.png +0 -0
  451. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/images/icons-36-black.png +0 -0
  452. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/images/icons-36-white.png +0 -0
  453. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/jquery.mobile-1.1.0.css +0 -2053
  454. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/jquery.mobile-1.1.0.js +0 -7551
  455. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/jquery.mobile-1.1.0.min.css +0 -2
  456. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/jquery.mobile-1.1.0.min.js +0 -177
  457. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/jquery.mobile.structure-1.1.0.css +0 -946
  458. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/jquery.mobile.structure-1.1.0.min.css +0 -2
  459. data/lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.1.0/jquery.mobile.theme-1.1.0.min.css +0 -2
  460. data/lib/ruby_app/resources/elements/mobile/document/jquery.ui.touch-punch-0.2.2.min.js +0 -11
@@ -0,0 +1,1981 @@
1
+ /** vim: et:ts=4:sw=4:sts=4
2
+ * @license RequireJS 2.1.1 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
3
+ * Available via the MIT or new BSD license.
4
+ * see: http://github.com/jrburke/requirejs for details
5
+ */
6
+ //Not using strict: uneven strict support in browsers, #392, and causes
7
+ //problems with requirejs.exec()/transpiler plugins that may not be strict.
8
+ /*jslint regexp: true, nomen: true, sloppy: true */
9
+ /*global window, navigator, document, importScripts, jQuery, setTimeout, opera */
10
+
11
+ var requirejs, require, define;
12
+ (function (global) {
13
+ var req, s, head, baseElement, dataMain, src,
14
+ interactiveScript, currentlyAddingScript, mainScript, subPath,
15
+ version = '2.1.1',
16
+ commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
17
+ cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
18
+ jsSuffixRegExp = /\.js$/,
19
+ currDirRegExp = /^\.\//,
20
+ op = Object.prototype,
21
+ ostring = op.toString,
22
+ hasOwn = op.hasOwnProperty,
23
+ ap = Array.prototype,
24
+ aps = ap.slice,
25
+ apsp = ap.splice,
26
+ isBrowser = !!(typeof window !== 'undefined' && navigator && document),
27
+ isWebWorker = !isBrowser && typeof importScripts !== 'undefined',
28
+ //PS3 indicates loaded and complete, but need to wait for complete
29
+ //specifically. Sequence is 'loading', 'loaded', execution,
30
+ // then 'complete'. The UA check is unfortunate, but not sure how
31
+ //to feature test w/o causing perf issues.
32
+ readyRegExp = isBrowser && navigator.platform === 'PLAYSTATION 3' ?
33
+ /^complete$/ : /^(complete|loaded)$/,
34
+ defContextName = '_',
35
+ //Oh the tragedy, detecting opera. See the usage of isOpera for reason.
36
+ isOpera = typeof opera !== 'undefined' && opera.toString() === '[object Opera]',
37
+ contexts = {},
38
+ cfg = {},
39
+ globalDefQueue = [],
40
+ useInteractive = false;
41
+
42
+ function isFunction(it) {
43
+ return ostring.call(it) === '[object Function]';
44
+ }
45
+
46
+ function isArray(it) {
47
+ return ostring.call(it) === '[object Array]';
48
+ }
49
+
50
+ /**
51
+ * Helper function for iterating over an array. If the func returns
52
+ * a true value, it will break out of the loop.
53
+ */
54
+ function each(ary, func) {
55
+ if (ary) {
56
+ var i;
57
+ for (i = 0; i < ary.length; i += 1) {
58
+ if (ary[i] && func(ary[i], i, ary)) {
59
+ break;
60
+ }
61
+ }
62
+ }
63
+ }
64
+
65
+ /**
66
+ * Helper function for iterating over an array backwards. If the func
67
+ * returns a true value, it will break out of the loop.
68
+ */
69
+ function eachReverse(ary, func) {
70
+ if (ary) {
71
+ var i;
72
+ for (i = ary.length - 1; i > -1; i -= 1) {
73
+ if (ary[i] && func(ary[i], i, ary)) {
74
+ break;
75
+ }
76
+ }
77
+ }
78
+ }
79
+
80
+ function hasProp(obj, prop) {
81
+ return hasOwn.call(obj, prop);
82
+ }
83
+
84
+ /**
85
+ * Cycles over properties in an object and calls a function for each
86
+ * property value. If the function returns a truthy value, then the
87
+ * iteration is stopped.
88
+ */
89
+ function eachProp(obj, func) {
90
+ var prop;
91
+ for (prop in obj) {
92
+ if (obj.hasOwnProperty(prop)) {
93
+ if (func(obj[prop], prop)) {
94
+ break;
95
+ }
96
+ }
97
+ }
98
+ }
99
+
100
+ /**
101
+ * Simple function to mix in properties from source into target,
102
+ * but only if target does not already have a property of the same name.
103
+ */
104
+ function mixin(target, source, force, deepStringMixin) {
105
+ if (source) {
106
+ eachProp(source, function (value, prop) {
107
+ if (force || !hasProp(target, prop)) {
108
+ if (deepStringMixin && typeof value !== 'string') {
109
+ if (!target[prop]) {
110
+ target[prop] = {};
111
+ }
112
+ mixin(target[prop], value, force, deepStringMixin);
113
+ } else {
114
+ target[prop] = value;
115
+ }
116
+ }
117
+ });
118
+ }
119
+ return target;
120
+ }
121
+
122
+ //Similar to Function.prototype.bind, but the 'this' object is specified
123
+ //first, since it is easier to read/figure out what 'this' will be.
124
+ function bind(obj, fn) {
125
+ return function () {
126
+ return fn.apply(obj, arguments);
127
+ };
128
+ }
129
+
130
+ function scripts() {
131
+ return document.getElementsByTagName('script');
132
+ }
133
+
134
+ //Allow getting a global that expressed in
135
+ //dot notation, like 'a.b.c'.
136
+ function getGlobal(value) {
137
+ if (!value) {
138
+ return value;
139
+ }
140
+ var g = global;
141
+ each(value.split('.'), function (part) {
142
+ g = g[part];
143
+ });
144
+ return g;
145
+ }
146
+
147
+ /**
148
+ * Constructs an error with a pointer to an URL with more information.
149
+ * @param {String} id the error ID that maps to an ID on a web page.
150
+ * @param {String} message human readable error.
151
+ * @param {Error} [err] the original error, if there is one.
152
+ *
153
+ * @returns {Error}
154
+ */
155
+ function makeError(id, msg, err, requireModules) {
156
+ var e = new Error(msg + '\nhttp://requirejs.org/docs/errors.html#' + id);
157
+ e.requireType = id;
158
+ e.requireModules = requireModules;
159
+ if (err) {
160
+ e.originalError = err;
161
+ }
162
+ return e;
163
+ }
164
+
165
+ if (typeof define !== 'undefined') {
166
+ //If a define is already in play via another AMD loader,
167
+ //do not overwrite.
168
+ return;
169
+ }
170
+
171
+ if (typeof requirejs !== 'undefined') {
172
+ if (isFunction(requirejs)) {
173
+ //Do not overwrite and existing requirejs instance.
174
+ return;
175
+ }
176
+ cfg = requirejs;
177
+ requirejs = undefined;
178
+ }
179
+
180
+ //Allow for a require config object
181
+ if (typeof require !== 'undefined' && !isFunction(require)) {
182
+ //assume it is a config object.
183
+ cfg = require;
184
+ require = undefined;
185
+ }
186
+
187
+ function newContext(contextName) {
188
+ var inCheckLoaded, Module, context, handlers,
189
+ checkLoadedTimeoutId,
190
+ config = {
191
+ waitSeconds: 7,
192
+ baseUrl: './',
193
+ paths: {},
194
+ pkgs: {},
195
+ shim: {},
196
+ map: {},
197
+ config: {}
198
+ },
199
+ registry = {},
200
+ undefEvents = {},
201
+ defQueue = [],
202
+ defined = {},
203
+ urlFetched = {},
204
+ requireCounter = 1,
205
+ unnormalizedCounter = 1;
206
+
207
+ /**
208
+ * Trims the . and .. from an array of path segments.
209
+ * It will keep a leading path segment if a .. will become
210
+ * the first path segment, to help with module name lookups,
211
+ * which act like paths, but can be remapped. But the end result,
212
+ * all paths that use this function should look normalized.
213
+ * NOTE: this method MODIFIES the input array.
214
+ * @param {Array} ary the array of path segments.
215
+ */
216
+ function trimDots(ary) {
217
+ var i, part;
218
+ for (i = 0; ary[i]; i += 1) {
219
+ part = ary[i];
220
+ if (part === '.') {
221
+ ary.splice(i, 1);
222
+ i -= 1;
223
+ } else if (part === '..') {
224
+ if (i === 1 && (ary[2] === '..' || ary[0] === '..')) {
225
+ //End of the line. Keep at least one non-dot
226
+ //path segment at the front so it can be mapped
227
+ //correctly to disk. Otherwise, there is likely
228
+ //no path mapping for a path starting with '..'.
229
+ //This can still fail, but catches the most reasonable
230
+ //uses of ..
231
+ break;
232
+ } else if (i > 0) {
233
+ ary.splice(i - 1, 2);
234
+ i -= 2;
235
+ }
236
+ }
237
+ }
238
+ }
239
+
240
+ /**
241
+ * Given a relative module name, like ./something, normalize it to
242
+ * a real name that can be mapped to a path.
243
+ * @param {String} name the relative name
244
+ * @param {String} baseName a real name that the name arg is relative
245
+ * to.
246
+ * @param {Boolean} applyMap apply the map config to the value. Should
247
+ * only be done if this normalization is for a dependency ID.
248
+ * @returns {String} normalized name
249
+ */
250
+ function normalize(name, baseName, applyMap) {
251
+ var pkgName, pkgConfig, mapValue, nameParts, i, j, nameSegment,
252
+ foundMap, foundI, foundStarMap, starI,
253
+ baseParts = baseName && baseName.split('/'),
254
+ normalizedBaseParts = baseParts,
255
+ map = config.map,
256
+ starMap = map && map['*'];
257
+
258
+ //Adjust any relative paths.
259
+ if (name && name.charAt(0) === '.') {
260
+ //If have a base name, try to normalize against it,
261
+ //otherwise, assume it is a top-level require that will
262
+ //be relative to baseUrl in the end.
263
+ if (baseName) {
264
+ if (config.pkgs[baseName]) {
265
+ //If the baseName is a package name, then just treat it as one
266
+ //name to concat the name with.
267
+ normalizedBaseParts = baseParts = [baseName];
268
+ } else {
269
+ //Convert baseName to array, and lop off the last part,
270
+ //so that . matches that 'directory' and not name of the baseName's
271
+ //module. For instance, baseName of 'one/two/three', maps to
272
+ //'one/two/three.js', but we want the directory, 'one/two' for
273
+ //this normalization.
274
+ normalizedBaseParts = baseParts.slice(0, baseParts.length - 1);
275
+ }
276
+
277
+ name = normalizedBaseParts.concat(name.split('/'));
278
+ trimDots(name);
279
+
280
+ //Some use of packages may use a . path to reference the
281
+ //'main' module name, so normalize for that.
282
+ pkgConfig = config.pkgs[(pkgName = name[0])];
283
+ name = name.join('/');
284
+ if (pkgConfig && name === pkgName + '/' + pkgConfig.main) {
285
+ name = pkgName;
286
+ }
287
+ } else if (name.indexOf('./') === 0) {
288
+ // No baseName, so this is ID is resolved relative
289
+ // to baseUrl, pull off the leading dot.
290
+ name = name.substring(2);
291
+ }
292
+ }
293
+
294
+ //Apply map config if available.
295
+ if (applyMap && (baseParts || starMap) && map) {
296
+ nameParts = name.split('/');
297
+
298
+ for (i = nameParts.length; i > 0; i -= 1) {
299
+ nameSegment = nameParts.slice(0, i).join('/');
300
+
301
+ if (baseParts) {
302
+ //Find the longest baseName segment match in the config.
303
+ //So, do joins on the biggest to smallest lengths of baseParts.
304
+ for (j = baseParts.length; j > 0; j -= 1) {
305
+ mapValue = map[baseParts.slice(0, j).join('/')];
306
+
307
+ //baseName segment has config, find if it has one for
308
+ //this name.
309
+ if (mapValue) {
310
+ mapValue = mapValue[nameSegment];
311
+ if (mapValue) {
312
+ //Match, update name to the new value.
313
+ foundMap = mapValue;
314
+ foundI = i;
315
+ break;
316
+ }
317
+ }
318
+ }
319
+ }
320
+
321
+ if (foundMap) {
322
+ break;
323
+ }
324
+
325
+ //Check for a star map match, but just hold on to it,
326
+ //if there is a shorter segment match later in a matching
327
+ //config, then favor over this star map.
328
+ if (!foundStarMap && starMap && starMap[nameSegment]) {
329
+ foundStarMap = starMap[nameSegment];
330
+ starI = i;
331
+ }
332
+ }
333
+
334
+ if (!foundMap && foundStarMap) {
335
+ foundMap = foundStarMap;
336
+ foundI = starI;
337
+ }
338
+
339
+ if (foundMap) {
340
+ nameParts.splice(0, foundI, foundMap);
341
+ name = nameParts.join('/');
342
+ }
343
+ }
344
+
345
+ return name;
346
+ }
347
+
348
+ function removeScript(name) {
349
+ if (isBrowser) {
350
+ each(scripts(), function (scriptNode) {
351
+ if (scriptNode.getAttribute('data-requiremodule') === name &&
352
+ scriptNode.getAttribute('data-requirecontext') === context.contextName) {
353
+ scriptNode.parentNode.removeChild(scriptNode);
354
+ return true;
355
+ }
356
+ });
357
+ }
358
+ }
359
+
360
+ function hasPathFallback(id) {
361
+ var pathConfig = config.paths[id];
362
+ if (pathConfig && isArray(pathConfig) && pathConfig.length > 1) {
363
+ removeScript(id);
364
+ //Pop off the first array value, since it failed, and
365
+ //retry
366
+ pathConfig.shift();
367
+ context.require.undef(id);
368
+ context.require([id]);
369
+ return true;
370
+ }
371
+ }
372
+
373
+ //Turns a plugin!resource to [plugin, resource]
374
+ //with the plugin being undefined if the name
375
+ //did not have a plugin prefix.
376
+ function splitPrefix(name) {
377
+ var prefix,
378
+ index = name ? name.indexOf('!') : -1;
379
+ if (index > -1) {
380
+ prefix = name.substring(0, index);
381
+ name = name.substring(index + 1, name.length);
382
+ }
383
+ return [prefix, name];
384
+ }
385
+
386
+ /**
387
+ * Creates a module mapping that includes plugin prefix, module
388
+ * name, and path. If parentModuleMap is provided it will
389
+ * also normalize the name via require.normalize()
390
+ *
391
+ * @param {String} name the module name
392
+ * @param {String} [parentModuleMap] parent module map
393
+ * for the module name, used to resolve relative names.
394
+ * @param {Boolean} isNormalized: is the ID already normalized.
395
+ * This is true if this call is done for a define() module ID.
396
+ * @param {Boolean} applyMap: apply the map config to the ID.
397
+ * Should only be true if this map is for a dependency.
398
+ *
399
+ * @returns {Object}
400
+ */
401
+ function makeModuleMap(name, parentModuleMap, isNormalized, applyMap) {
402
+ var url, pluginModule, suffix, nameParts,
403
+ prefix = null,
404
+ parentName = parentModuleMap ? parentModuleMap.name : null,
405
+ originalName = name,
406
+ isDefine = true,
407
+ normalizedName = '';
408
+
409
+ //If no name, then it means it is a require call, generate an
410
+ //internal name.
411
+ if (!name) {
412
+ isDefine = false;
413
+ name = '_@r' + (requireCounter += 1);
414
+ }
415
+
416
+ nameParts = splitPrefix(name);
417
+ prefix = nameParts[0];
418
+ name = nameParts[1];
419
+
420
+ if (prefix) {
421
+ prefix = normalize(prefix, parentName, applyMap);
422
+ pluginModule = defined[prefix];
423
+ }
424
+
425
+ //Account for relative paths if there is a base name.
426
+ if (name) {
427
+ if (prefix) {
428
+ if (pluginModule && pluginModule.normalize) {
429
+ //Plugin is loaded, use its normalize method.
430
+ normalizedName = pluginModule.normalize(name, function (name) {
431
+ return normalize(name, parentName, applyMap);
432
+ });
433
+ } else {
434
+ normalizedName = normalize(name, parentName, applyMap);
435
+ }
436
+ } else {
437
+ //A regular module.
438
+ normalizedName = normalize(name, parentName, applyMap);
439
+
440
+ //Normalized name may be a plugin ID due to map config
441
+ //application in normalize. The map config values must
442
+ //already be normalized, so do not need to redo that part.
443
+ nameParts = splitPrefix(normalizedName);
444
+ prefix = nameParts[0];
445
+ normalizedName = nameParts[1];
446
+ isNormalized = true;
447
+
448
+ url = context.nameToUrl(normalizedName);
449
+ }
450
+ }
451
+
452
+ //If the id is a plugin id that cannot be determined if it needs
453
+ //normalization, stamp it with a unique ID so two matching relative
454
+ //ids that may conflict can be separate.
455
+ suffix = prefix && !pluginModule && !isNormalized ?
456
+ '_unnormalized' + (unnormalizedCounter += 1) :
457
+ '';
458
+
459
+ return {
460
+ prefix: prefix,
461
+ name: normalizedName,
462
+ parentMap: parentModuleMap,
463
+ unnormalized: !!suffix,
464
+ url: url,
465
+ originalName: originalName,
466
+ isDefine: isDefine,
467
+ id: (prefix ?
468
+ prefix + '!' + normalizedName :
469
+ normalizedName) + suffix
470
+ };
471
+ }
472
+
473
+ function getModule(depMap) {
474
+ var id = depMap.id,
475
+ mod = registry[id];
476
+
477
+ if (!mod) {
478
+ mod = registry[id] = new context.Module(depMap);
479
+ }
480
+
481
+ return mod;
482
+ }
483
+
484
+ function on(depMap, name, fn) {
485
+ var id = depMap.id,
486
+ mod = registry[id];
487
+
488
+ if (hasProp(defined, id) &&
489
+ (!mod || mod.defineEmitComplete)) {
490
+ if (name === 'defined') {
491
+ fn(defined[id]);
492
+ }
493
+ } else {
494
+ getModule(depMap).on(name, fn);
495
+ }
496
+ }
497
+
498
+ function onError(err, errback) {
499
+ var ids = err.requireModules,
500
+ notified = false;
501
+
502
+ if (errback) {
503
+ errback(err);
504
+ } else {
505
+ each(ids, function (id) {
506
+ var mod = registry[id];
507
+ if (mod) {
508
+ //Set error on module, so it skips timeout checks.
509
+ mod.error = err;
510
+ if (mod.events.error) {
511
+ notified = true;
512
+ mod.emit('error', err);
513
+ }
514
+ }
515
+ });
516
+
517
+ if (!notified) {
518
+ req.onError(err);
519
+ }
520
+ }
521
+ }
522
+
523
+ /**
524
+ * Internal method to transfer globalQueue items to this context's
525
+ * defQueue.
526
+ */
527
+ function takeGlobalQueue() {
528
+ //Push all the globalDefQueue items into the context's defQueue
529
+ if (globalDefQueue.length) {
530
+ //Array splice in the values since the context code has a
531
+ //local var ref to defQueue, so cannot just reassign the one
532
+ //on context.
533
+ apsp.apply(defQueue,
534
+ [defQueue.length - 1, 0].concat(globalDefQueue));
535
+ globalDefQueue = [];
536
+ }
537
+ }
538
+
539
+ handlers = {
540
+ 'require': function (mod) {
541
+ if (mod.require) {
542
+ return mod.require;
543
+ } else {
544
+ return (mod.require = context.makeRequire(mod.map));
545
+ }
546
+ },
547
+ 'exports': function (mod) {
548
+ mod.usingExports = true;
549
+ if (mod.map.isDefine) {
550
+ if (mod.exports) {
551
+ return mod.exports;
552
+ } else {
553
+ return (mod.exports = defined[mod.map.id] = {});
554
+ }
555
+ }
556
+ },
557
+ 'module': function (mod) {
558
+ if (mod.module) {
559
+ return mod.module;
560
+ } else {
561
+ return (mod.module = {
562
+ id: mod.map.id,
563
+ uri: mod.map.url,
564
+ config: function () {
565
+ return (config.config && config.config[mod.map.id]) || {};
566
+ },
567
+ exports: defined[mod.map.id]
568
+ });
569
+ }
570
+ }
571
+ };
572
+
573
+ function cleanRegistry(id) {
574
+ //Clean up machinery used for waiting modules.
575
+ delete registry[id];
576
+ }
577
+
578
+ function breakCycle(mod, traced, processed) {
579
+ var id = mod.map.id;
580
+
581
+ if (mod.error) {
582
+ mod.emit('error', mod.error);
583
+ } else {
584
+ traced[id] = true;
585
+ each(mod.depMaps, function (depMap, i) {
586
+ var depId = depMap.id,
587
+ dep = registry[depId];
588
+
589
+ //Only force things that have not completed
590
+ //being defined, so still in the registry,
591
+ //and only if it has not been matched up
592
+ //in the module already.
593
+ if (dep && !mod.depMatched[i] && !processed[depId]) {
594
+ if (traced[depId]) {
595
+ mod.defineDep(i, defined[depId]);
596
+ mod.check(); //pass false?
597
+ } else {
598
+ breakCycle(dep, traced, processed);
599
+ }
600
+ }
601
+ });
602
+ processed[id] = true;
603
+ }
604
+ }
605
+
606
+ function checkLoaded() {
607
+ var map, modId, err, usingPathFallback,
608
+ waitInterval = config.waitSeconds * 1000,
609
+ //It is possible to disable the wait interval by using waitSeconds of 0.
610
+ expired = waitInterval && (context.startTime + waitInterval) < new Date().getTime(),
611
+ noLoads = [],
612
+ reqCalls = [],
613
+ stillLoading = false,
614
+ needCycleCheck = true;
615
+
616
+ //Do not bother if this call was a result of a cycle break.
617
+ if (inCheckLoaded) {
618
+ return;
619
+ }
620
+
621
+ inCheckLoaded = true;
622
+
623
+ //Figure out the state of all the modules.
624
+ eachProp(registry, function (mod) {
625
+ map = mod.map;
626
+ modId = map.id;
627
+
628
+ //Skip things that are not enabled or in error state.
629
+ if (!mod.enabled) {
630
+ return;
631
+ }
632
+
633
+ if (!map.isDefine) {
634
+ reqCalls.push(mod);
635
+ }
636
+
637
+ if (!mod.error) {
638
+ //If the module should be executed, and it has not
639
+ //been inited and time is up, remember it.
640
+ if (!mod.inited && expired) {
641
+ if (hasPathFallback(modId)) {
642
+ usingPathFallback = true;
643
+ stillLoading = true;
644
+ } else {
645
+ noLoads.push(modId);
646
+ removeScript(modId);
647
+ }
648
+ } else if (!mod.inited && mod.fetched && map.isDefine) {
649
+ stillLoading = true;
650
+ if (!map.prefix) {
651
+ //No reason to keep looking for unfinished
652
+ //loading. If the only stillLoading is a
653
+ //plugin resource though, keep going,
654
+ //because it may be that a plugin resource
655
+ //is waiting on a non-plugin cycle.
656
+ return (needCycleCheck = false);
657
+ }
658
+ }
659
+ }
660
+ });
661
+
662
+ if (expired && noLoads.length) {
663
+ //If wait time expired, throw error of unloaded modules.
664
+ err = makeError('timeout', 'Load timeout for modules: ' + noLoads, null, noLoads);
665
+ err.contextName = context.contextName;
666
+ return onError(err);
667
+ }
668
+
669
+ //Not expired, check for a cycle.
670
+ if (needCycleCheck) {
671
+ each(reqCalls, function (mod) {
672
+ breakCycle(mod, {}, {});
673
+ });
674
+ }
675
+
676
+ //If still waiting on loads, and the waiting load is something
677
+ //other than a plugin resource, or there are still outstanding
678
+ //scripts, then just try back later.
679
+ if ((!expired || usingPathFallback) && stillLoading) {
680
+ //Something is still waiting to load. Wait for it, but only
681
+ //if a timeout is not already in effect.
682
+ if ((isBrowser || isWebWorker) && !checkLoadedTimeoutId) {
683
+ checkLoadedTimeoutId = setTimeout(function () {
684
+ checkLoadedTimeoutId = 0;
685
+ checkLoaded();
686
+ }, 50);
687
+ }
688
+ }
689
+
690
+ inCheckLoaded = false;
691
+ }
692
+
693
+ Module = function (map) {
694
+ this.events = undefEvents[map.id] || {};
695
+ this.map = map;
696
+ this.shim = config.shim[map.id];
697
+ this.depExports = [];
698
+ this.depMaps = [];
699
+ this.depMatched = [];
700
+ this.pluginMaps = {};
701
+ this.depCount = 0;
702
+
703
+ /* this.exports this.factory
704
+ this.depMaps = [],
705
+ this.enabled, this.fetched
706
+ */
707
+ };
708
+
709
+ Module.prototype = {
710
+ init: function (depMaps, factory, errback, options) {
711
+ options = options || {};
712
+
713
+ //Do not do more inits if already done. Can happen if there
714
+ //are multiple define calls for the same module. That is not
715
+ //a normal, common case, but it is also not unexpected.
716
+ if (this.inited) {
717
+ return;
718
+ }
719
+
720
+ this.factory = factory;
721
+
722
+ if (errback) {
723
+ //Register for errors on this module.
724
+ this.on('error', errback);
725
+ } else if (this.events.error) {
726
+ //If no errback already, but there are error listeners
727
+ //on this module, set up an errback to pass to the deps.
728
+ errback = bind(this, function (err) {
729
+ this.emit('error', err);
730
+ });
731
+ }
732
+
733
+ //Do a copy of the dependency array, so that
734
+ //source inputs are not modified. For example
735
+ //"shim" deps are passed in here directly, and
736
+ //doing a direct modification of the depMaps array
737
+ //would affect that config.
738
+ this.depMaps = depMaps && depMaps.slice(0);
739
+
740
+ this.errback = errback;
741
+
742
+ //Indicate this module has be initialized
743
+ this.inited = true;
744
+
745
+ this.ignore = options.ignore;
746
+
747
+ //Could have option to init this module in enabled mode,
748
+ //or could have been previously marked as enabled. However,
749
+ //the dependencies are not known until init is called. So
750
+ //if enabled previously, now trigger dependencies as enabled.
751
+ if (options.enabled || this.enabled) {
752
+ //Enable this module and dependencies.
753
+ //Will call this.check()
754
+ this.enable();
755
+ } else {
756
+ this.check();
757
+ }
758
+ },
759
+
760
+ defineDep: function (i, depExports) {
761
+ //Because of cycles, defined callback for a given
762
+ //export can be called more than once.
763
+ if (!this.depMatched[i]) {
764
+ this.depMatched[i] = true;
765
+ this.depCount -= 1;
766
+ this.depExports[i] = depExports;
767
+ }
768
+ },
769
+
770
+ fetch: function () {
771
+ if (this.fetched) {
772
+ return;
773
+ }
774
+ this.fetched = true;
775
+
776
+ context.startTime = (new Date()).getTime();
777
+
778
+ var map = this.map;
779
+
780
+ //If the manager is for a plugin managed resource,
781
+ //ask the plugin to load it now.
782
+ if (this.shim) {
783
+ context.makeRequire(this.map, {
784
+ enableBuildCallback: true
785
+ })(this.shim.deps || [], bind(this, function () {
786
+ return map.prefix ? this.callPlugin() : this.load();
787
+ }));
788
+ } else {
789
+ //Regular dependency.
790
+ return map.prefix ? this.callPlugin() : this.load();
791
+ }
792
+ },
793
+
794
+ load: function () {
795
+ var url = this.map.url;
796
+
797
+ //Regular dependency.
798
+ if (!urlFetched[url]) {
799
+ urlFetched[url] = true;
800
+ context.load(this.map.id, url);
801
+ }
802
+ },
803
+
804
+ /**
805
+ * Checks is the module is ready to define itself, and if so,
806
+ * define it.
807
+ */
808
+ check: function () {
809
+ if (!this.enabled || this.enabling) {
810
+ return;
811
+ }
812
+
813
+ var err, cjsModule,
814
+ id = this.map.id,
815
+ depExports = this.depExports,
816
+ exports = this.exports,
817
+ factory = this.factory;
818
+
819
+ if (!this.inited) {
820
+ this.fetch();
821
+ } else if (this.error) {
822
+ this.emit('error', this.error);
823
+ } else if (!this.defining) {
824
+ //The factory could trigger another require call
825
+ //that would result in checking this module to
826
+ //define itself again. If already in the process
827
+ //of doing that, skip this work.
828
+ this.defining = true;
829
+
830
+ if (this.depCount < 1 && !this.defined) {
831
+ if (isFunction(factory)) {
832
+ //If there is an error listener, favor passing
833
+ //to that instead of throwing an error.
834
+ if (this.events.error) {
835
+ try {
836
+ exports = context.execCb(id, factory, depExports, exports);
837
+ } catch (e) {
838
+ err = e;
839
+ }
840
+ } else {
841
+ exports = context.execCb(id, factory, depExports, exports);
842
+ }
843
+
844
+ if (this.map.isDefine) {
845
+ //If setting exports via 'module' is in play,
846
+ //favor that over return value and exports. After that,
847
+ //favor a non-undefined return value over exports use.
848
+ cjsModule = this.module;
849
+ if (cjsModule &&
850
+ cjsModule.exports !== undefined &&
851
+ //Make sure it is not already the exports value
852
+ cjsModule.exports !== this.exports) {
853
+ exports = cjsModule.exports;
854
+ } else if (exports === undefined && this.usingExports) {
855
+ //exports already set the defined value.
856
+ exports = this.exports;
857
+ }
858
+ }
859
+
860
+ if (err) {
861
+ err.requireMap = this.map;
862
+ err.requireModules = [this.map.id];
863
+ err.requireType = 'define';
864
+ return onError((this.error = err));
865
+ }
866
+
867
+ } else {
868
+ //Just a literal value
869
+ exports = factory;
870
+ }
871
+
872
+ this.exports = exports;
873
+
874
+ if (this.map.isDefine && !this.ignore) {
875
+ defined[id] = exports;
876
+
877
+ if (req.onResourceLoad) {
878
+ req.onResourceLoad(context, this.map, this.depMaps);
879
+ }
880
+ }
881
+
882
+ //Clean up
883
+ delete registry[id];
884
+
885
+ this.defined = true;
886
+ }
887
+
888
+ //Finished the define stage. Allow calling check again
889
+ //to allow define notifications below in the case of a
890
+ //cycle.
891
+ this.defining = false;
892
+
893
+ if (this.defined && !this.defineEmitted) {
894
+ this.defineEmitted = true;
895
+ this.emit('defined', this.exports);
896
+ this.defineEmitComplete = true;
897
+ }
898
+
899
+ }
900
+ },
901
+
902
+ callPlugin: function () {
903
+ var map = this.map,
904
+ id = map.id,
905
+ //Map already normalized the prefix.
906
+ pluginMap = makeModuleMap(map.prefix);
907
+
908
+ //Mark this as a dependency for this plugin, so it
909
+ //can be traced for cycles.
910
+ this.depMaps.push(pluginMap);
911
+
912
+ on(pluginMap, 'defined', bind(this, function (plugin) {
913
+ var load, normalizedMap, normalizedMod,
914
+ name = this.map.name,
915
+ parentName = this.map.parentMap ? this.map.parentMap.name : null,
916
+ localRequire = context.makeRequire(map.parentMap, {
917
+ enableBuildCallback: true,
918
+ skipMap: true
919
+ });
920
+
921
+ //If current map is not normalized, wait for that
922
+ //normalized name to load instead of continuing.
923
+ if (this.map.unnormalized) {
924
+ //Normalize the ID if the plugin allows it.
925
+ if (plugin.normalize) {
926
+ name = plugin.normalize(name, function (name) {
927
+ return normalize(name, parentName, true);
928
+ }) || '';
929
+ }
930
+
931
+ //prefix and name should already be normalized, no need
932
+ //for applying map config again either.
933
+ normalizedMap = makeModuleMap(map.prefix + '!' + name,
934
+ this.map.parentMap);
935
+ on(normalizedMap,
936
+ 'defined', bind(this, function (value) {
937
+ this.init([], function () { return value; }, null, {
938
+ enabled: true,
939
+ ignore: true
940
+ });
941
+ }));
942
+
943
+ normalizedMod = registry[normalizedMap.id];
944
+ if (normalizedMod) {
945
+ //Mark this as a dependency for this plugin, so it
946
+ //can be traced for cycles.
947
+ this.depMaps.push(normalizedMap);
948
+
949
+ if (this.events.error) {
950
+ normalizedMod.on('error', bind(this, function (err) {
951
+ this.emit('error', err);
952
+ }));
953
+ }
954
+ normalizedMod.enable();
955
+ }
956
+
957
+ return;
958
+ }
959
+
960
+ load = bind(this, function (value) {
961
+ this.init([], function () { return value; }, null, {
962
+ enabled: true
963
+ });
964
+ });
965
+
966
+ load.error = bind(this, function (err) {
967
+ this.inited = true;
968
+ this.error = err;
969
+ err.requireModules = [id];
970
+
971
+ //Remove temp unnormalized modules for this module,
972
+ //since they will never be resolved otherwise now.
973
+ eachProp(registry, function (mod) {
974
+ if (mod.map.id.indexOf(id + '_unnormalized') === 0) {
975
+ cleanRegistry(mod.map.id);
976
+ }
977
+ });
978
+
979
+ onError(err);
980
+ });
981
+
982
+ //Allow plugins to load other code without having to know the
983
+ //context or how to 'complete' the load.
984
+ load.fromText = bind(this, function (text, textAlt) {
985
+ /*jslint evil: true */
986
+ var moduleName = map.name,
987
+ moduleMap = makeModuleMap(moduleName),
988
+ hasInteractive = useInteractive;
989
+
990
+ //As of 2.1.0, support just passing the text, to reinforce
991
+ //fromText only being called once per resource. Still
992
+ //support old style of passing moduleName but discard
993
+ //that moduleName in favor of the internal ref.
994
+ if (textAlt) {
995
+ text = textAlt;
996
+ }
997
+
998
+ //Turn off interactive script matching for IE for any define
999
+ //calls in the text, then turn it back on at the end.
1000
+ if (hasInteractive) {
1001
+ useInteractive = false;
1002
+ }
1003
+
1004
+ //Prime the system by creating a module instance for
1005
+ //it.
1006
+ getModule(moduleMap);
1007
+
1008
+ try {
1009
+ req.exec(text);
1010
+ } catch (e) {
1011
+ throw new Error('fromText eval for ' + moduleName +
1012
+ ' failed: ' + e);
1013
+ }
1014
+
1015
+ if (hasInteractive) {
1016
+ useInteractive = true;
1017
+ }
1018
+
1019
+ //Mark this as a dependency for the plugin
1020
+ //resource
1021
+ this.depMaps.push(moduleMap);
1022
+
1023
+ //Support anonymous modules.
1024
+ context.completeLoad(moduleName);
1025
+
1026
+ //Bind the value of that module to the value for this
1027
+ //resource ID.
1028
+ localRequire([moduleName], load);
1029
+ });
1030
+
1031
+ //Use parentName here since the plugin's name is not reliable,
1032
+ //could be some weird string with no path that actually wants to
1033
+ //reference the parentName's path.
1034
+ plugin.load(map.name, localRequire, load, config);
1035
+ }));
1036
+
1037
+ context.enable(pluginMap, this);
1038
+ this.pluginMaps[pluginMap.id] = pluginMap;
1039
+ },
1040
+
1041
+ enable: function () {
1042
+ this.enabled = true;
1043
+
1044
+ //Set flag mentioning that the module is enabling,
1045
+ //so that immediate calls to the defined callbacks
1046
+ //for dependencies do not trigger inadvertent load
1047
+ //with the depCount still being zero.
1048
+ this.enabling = true;
1049
+
1050
+ //Enable each dependency
1051
+ each(this.depMaps, bind(this, function (depMap, i) {
1052
+ var id, mod, handler;
1053
+
1054
+ if (typeof depMap === 'string') {
1055
+ //Dependency needs to be converted to a depMap
1056
+ //and wired up to this module.
1057
+ depMap = makeModuleMap(depMap,
1058
+ (this.map.isDefine ? this.map : this.map.parentMap),
1059
+ false,
1060
+ !this.skipMap);
1061
+ this.depMaps[i] = depMap;
1062
+
1063
+ handler = handlers[depMap.id];
1064
+
1065
+ if (handler) {
1066
+ this.depExports[i] = handler(this);
1067
+ return;
1068
+ }
1069
+
1070
+ this.depCount += 1;
1071
+
1072
+ on(depMap, 'defined', bind(this, function (depExports) {
1073
+ this.defineDep(i, depExports);
1074
+ this.check();
1075
+ }));
1076
+
1077
+ if (this.errback) {
1078
+ on(depMap, 'error', this.errback);
1079
+ }
1080
+ }
1081
+
1082
+ id = depMap.id;
1083
+ mod = registry[id];
1084
+
1085
+ //Skip special modules like 'require', 'exports', 'module'
1086
+ //Also, don't call enable if it is already enabled,
1087
+ //important in circular dependency cases.
1088
+ if (!handlers[id] && mod && !mod.enabled) {
1089
+ context.enable(depMap, this);
1090
+ }
1091
+ }));
1092
+
1093
+ //Enable each plugin that is used in
1094
+ //a dependency
1095
+ eachProp(this.pluginMaps, bind(this, function (pluginMap) {
1096
+ var mod = registry[pluginMap.id];
1097
+ if (mod && !mod.enabled) {
1098
+ context.enable(pluginMap, this);
1099
+ }
1100
+ }));
1101
+
1102
+ this.enabling = false;
1103
+
1104
+ this.check();
1105
+ },
1106
+
1107
+ on: function (name, cb) {
1108
+ var cbs = this.events[name];
1109
+ if (!cbs) {
1110
+ cbs = this.events[name] = [];
1111
+ }
1112
+ cbs.push(cb);
1113
+ },
1114
+
1115
+ emit: function (name, evt) {
1116
+ each(this.events[name], function (cb) {
1117
+ cb(evt);
1118
+ });
1119
+ if (name === 'error') {
1120
+ //Now that the error handler was triggered, remove
1121
+ //the listeners, since this broken Module instance
1122
+ //can stay around for a while in the registry.
1123
+ delete this.events[name];
1124
+ }
1125
+ }
1126
+ };
1127
+
1128
+ function callGetModule(args) {
1129
+ getModule(makeModuleMap(args[0], null, true)).init(args[1], args[2]);
1130
+ }
1131
+
1132
+ function removeListener(node, func, name, ieName) {
1133
+ //Favor detachEvent because of IE9
1134
+ //issue, see attachEvent/addEventListener comment elsewhere
1135
+ //in this file.
1136
+ if (node.detachEvent && !isOpera) {
1137
+ //Probably IE. If not it will throw an error, which will be
1138
+ //useful to know.
1139
+ if (ieName) {
1140
+ node.detachEvent(ieName, func);
1141
+ }
1142
+ } else {
1143
+ node.removeEventListener(name, func, false);
1144
+ }
1145
+ }
1146
+
1147
+ /**
1148
+ * Given an event from a script node, get the requirejs info from it,
1149
+ * and then removes the event listeners on the node.
1150
+ * @param {Event} evt
1151
+ * @returns {Object}
1152
+ */
1153
+ function getScriptData(evt) {
1154
+ //Using currentTarget instead of target for Firefox 2.0's sake. Not
1155
+ //all old browsers will be supported, but this one was easy enough
1156
+ //to support and still makes sense.
1157
+ var node = evt.currentTarget || evt.srcElement;
1158
+
1159
+ //Remove the listeners once here.
1160
+ removeListener(node, context.onScriptLoad, 'load', 'onreadystatechange');
1161
+ removeListener(node, context.onScriptError, 'error');
1162
+
1163
+ return {
1164
+ node: node,
1165
+ id: node && node.getAttribute('data-requiremodule')
1166
+ };
1167
+ }
1168
+
1169
+ function intakeDefines() {
1170
+ var args;
1171
+
1172
+ //Any defined modules in the global queue, intake them now.
1173
+ takeGlobalQueue();
1174
+
1175
+ //Make sure any remaining defQueue items get properly processed.
1176
+ while (defQueue.length) {
1177
+ args = defQueue.shift();
1178
+ if (args[0] === null) {
1179
+ return onError(makeError('mismatch', 'Mismatched anonymous define() module: ' + args[args.length - 1]));
1180
+ } else {
1181
+ //args are id, deps, factory. Should be normalized by the
1182
+ //define() function.
1183
+ callGetModule(args);
1184
+ }
1185
+ }
1186
+ }
1187
+
1188
+ context = {
1189
+ config: config,
1190
+ contextName: contextName,
1191
+ registry: registry,
1192
+ defined: defined,
1193
+ urlFetched: urlFetched,
1194
+ defQueue: defQueue,
1195
+ Module: Module,
1196
+ makeModuleMap: makeModuleMap,
1197
+ nextTick: req.nextTick,
1198
+
1199
+ /**
1200
+ * Set a configuration for the context.
1201
+ * @param {Object} cfg config object to integrate.
1202
+ */
1203
+ configure: function (cfg) {
1204
+ //Make sure the baseUrl ends in a slash.
1205
+ if (cfg.baseUrl) {
1206
+ if (cfg.baseUrl.charAt(cfg.baseUrl.length - 1) !== '/') {
1207
+ cfg.baseUrl += '/';
1208
+ }
1209
+ }
1210
+
1211
+ //Save off the paths and packages since they require special processing,
1212
+ //they are additive.
1213
+ var pkgs = config.pkgs,
1214
+ shim = config.shim,
1215
+ objs = {
1216
+ paths: true,
1217
+ config: true,
1218
+ map: true
1219
+ };
1220
+
1221
+ eachProp(cfg, function (value, prop) {
1222
+ if (objs[prop]) {
1223
+ if (prop === 'map') {
1224
+ mixin(config[prop], value, true, true);
1225
+ } else {
1226
+ mixin(config[prop], value, true);
1227
+ }
1228
+ } else {
1229
+ config[prop] = value;
1230
+ }
1231
+ });
1232
+
1233
+ //Merge shim
1234
+ if (cfg.shim) {
1235
+ eachProp(cfg.shim, function (value, id) {
1236
+ //Normalize the structure
1237
+ if (isArray(value)) {
1238
+ value = {
1239
+ deps: value
1240
+ };
1241
+ }
1242
+ if (value.exports && !value.exportsFn) {
1243
+ value.exportsFn = context.makeShimExports(value);
1244
+ }
1245
+ shim[id] = value;
1246
+ });
1247
+ config.shim = shim;
1248
+ }
1249
+
1250
+ //Adjust packages if necessary.
1251
+ if (cfg.packages) {
1252
+ each(cfg.packages, function (pkgObj) {
1253
+ var location;
1254
+
1255
+ pkgObj = typeof pkgObj === 'string' ? { name: pkgObj } : pkgObj;
1256
+ location = pkgObj.location;
1257
+
1258
+ //Create a brand new object on pkgs, since currentPackages can
1259
+ //be passed in again, and config.pkgs is the internal transformed
1260
+ //state for all package configs.
1261
+ pkgs[pkgObj.name] = {
1262
+ name: pkgObj.name,
1263
+ location: location || pkgObj.name,
1264
+ //Remove leading dot in main, so main paths are normalized,
1265
+ //and remove any trailing .js, since different package
1266
+ //envs have different conventions: some use a module name,
1267
+ //some use a file name.
1268
+ main: (pkgObj.main || 'main')
1269
+ .replace(currDirRegExp, '')
1270
+ .replace(jsSuffixRegExp, '')
1271
+ };
1272
+ });
1273
+
1274
+ //Done with modifications, assing packages back to context config
1275
+ config.pkgs = pkgs;
1276
+ }
1277
+
1278
+ //If there are any "waiting to execute" modules in the registry,
1279
+ //update the maps for them, since their info, like URLs to load,
1280
+ //may have changed.
1281
+ eachProp(registry, function (mod, id) {
1282
+ //If module already has init called, since it is too
1283
+ //late to modify them, and ignore unnormalized ones
1284
+ //since they are transient.
1285
+ if (!mod.inited && !mod.map.unnormalized) {
1286
+ mod.map = makeModuleMap(id);
1287
+ }
1288
+ });
1289
+
1290
+ //If a deps array or a config callback is specified, then call
1291
+ //require with those args. This is useful when require is defined as a
1292
+ //config object before require.js is loaded.
1293
+ if (cfg.deps || cfg.callback) {
1294
+ context.require(cfg.deps || [], cfg.callback);
1295
+ }
1296
+ },
1297
+
1298
+ makeShimExports: function (value) {
1299
+ function fn() {
1300
+ var ret;
1301
+ if (value.init) {
1302
+ ret = value.init.apply(global, arguments);
1303
+ }
1304
+ return ret || getGlobal(value.exports);
1305
+ }
1306
+ return fn;
1307
+ },
1308
+
1309
+ makeRequire: function (relMap, options) {
1310
+ options = options || {};
1311
+
1312
+ function localRequire(deps, callback, errback) {
1313
+ var id, map, requireMod;
1314
+
1315
+ if (options.enableBuildCallback && callback && isFunction(callback)) {
1316
+ callback.__requireJsBuild = true;
1317
+ }
1318
+
1319
+ if (typeof deps === 'string') {
1320
+ if (isFunction(callback)) {
1321
+ //Invalid call
1322
+ return onError(makeError('requireargs', 'Invalid require call'), errback);
1323
+ }
1324
+
1325
+ //If require|exports|module are requested, get the
1326
+ //value for them from the special handlers. Caveat:
1327
+ //this only works while module is being defined.
1328
+ if (relMap && handlers[deps]) {
1329
+ return handlers[deps](registry[relMap.id]);
1330
+ }
1331
+
1332
+ //Synchronous access to one module. If require.get is
1333
+ //available (as in the Node adapter), prefer that.
1334
+ if (req.get) {
1335
+ return req.get(context, deps, relMap);
1336
+ }
1337
+
1338
+ //Normalize module name, if it contains . or ..
1339
+ map = makeModuleMap(deps, relMap, false, true);
1340
+ id = map.id;
1341
+
1342
+ if (!hasProp(defined, id)) {
1343
+ return onError(makeError('notloaded', 'Module name "' +
1344
+ id +
1345
+ '" has not been loaded yet for context: ' +
1346
+ contextName +
1347
+ (relMap ? '' : '. Use require([])')));
1348
+ }
1349
+ return defined[id];
1350
+ }
1351
+
1352
+ //Grab defines waiting in the global queue.
1353
+ intakeDefines();
1354
+
1355
+ //Mark all the dependencies as needing to be loaded.
1356
+ context.nextTick(function () {
1357
+ //Some defines could have been added since the
1358
+ //require call, collect them.
1359
+ intakeDefines();
1360
+
1361
+ requireMod = getModule(makeModuleMap(null, relMap));
1362
+
1363
+ //Store if map config should be applied to this require
1364
+ //call for dependencies.
1365
+ requireMod.skipMap = options.skipMap;
1366
+
1367
+ requireMod.init(deps, callback, errback, {
1368
+ enabled: true
1369
+ });
1370
+
1371
+ checkLoaded();
1372
+ });
1373
+
1374
+ return localRequire;
1375
+ }
1376
+
1377
+ mixin(localRequire, {
1378
+ isBrowser: isBrowser,
1379
+
1380
+ /**
1381
+ * Converts a module name + .extension into an URL path.
1382
+ * *Requires* the use of a module name. It does not support using
1383
+ * plain URLs like nameToUrl.
1384
+ */
1385
+ toUrl: function (moduleNamePlusExt) {
1386
+ var index = moduleNamePlusExt.lastIndexOf('.'),
1387
+ ext = null;
1388
+
1389
+ if (index !== -1) {
1390
+ ext = moduleNamePlusExt.substring(index, moduleNamePlusExt.length);
1391
+ moduleNamePlusExt = moduleNamePlusExt.substring(0, index);
1392
+ }
1393
+
1394
+ return context.nameToUrl(normalize(moduleNamePlusExt,
1395
+ relMap && relMap.id, true), ext);
1396
+ },
1397
+
1398
+ defined: function (id) {
1399
+ return hasProp(defined, makeModuleMap(id, relMap, false, true).id);
1400
+ },
1401
+
1402
+ specified: function (id) {
1403
+ id = makeModuleMap(id, relMap, false, true).id;
1404
+ return hasProp(defined, id) || hasProp(registry, id);
1405
+ }
1406
+ });
1407
+
1408
+ //Only allow undef on top level require calls
1409
+ if (!relMap) {
1410
+ localRequire.undef = function (id) {
1411
+ //Bind any waiting define() calls to this context,
1412
+ //fix for #408
1413
+ takeGlobalQueue();
1414
+
1415
+ var map = makeModuleMap(id, relMap, true),
1416
+ mod = registry[id];
1417
+
1418
+ delete defined[id];
1419
+ delete urlFetched[map.url];
1420
+ delete undefEvents[id];
1421
+
1422
+ if (mod) {
1423
+ //Hold on to listeners in case the
1424
+ //module will be attempted to be reloaded
1425
+ //using a different config.
1426
+ if (mod.events.defined) {
1427
+ undefEvents[id] = mod.events;
1428
+ }
1429
+
1430
+ cleanRegistry(id);
1431
+ }
1432
+ };
1433
+ }
1434
+
1435
+ return localRequire;
1436
+ },
1437
+
1438
+ /**
1439
+ * Called to enable a module if it is still in the registry
1440
+ * awaiting enablement. parent module is passed in for context,
1441
+ * used by the optimizer.
1442
+ */
1443
+ enable: function (depMap, parent) {
1444
+ var mod = registry[depMap.id];
1445
+ if (mod) {
1446
+ getModule(depMap).enable();
1447
+ }
1448
+ },
1449
+
1450
+ /**
1451
+ * Internal method used by environment adapters to complete a load event.
1452
+ * A load event could be a script load or just a load pass from a synchronous
1453
+ * load call.
1454
+ * @param {String} moduleName the name of the module to potentially complete.
1455
+ */
1456
+ completeLoad: function (moduleName) {
1457
+ var found, args, mod,
1458
+ shim = config.shim[moduleName] || {},
1459
+ shExports = shim.exports;
1460
+
1461
+ takeGlobalQueue();
1462
+
1463
+ while (defQueue.length) {
1464
+ args = defQueue.shift();
1465
+ if (args[0] === null) {
1466
+ args[0] = moduleName;
1467
+ //If already found an anonymous module and bound it
1468
+ //to this name, then this is some other anon module
1469
+ //waiting for its completeLoad to fire.
1470
+ if (found) {
1471
+ break;
1472
+ }
1473
+ found = true;
1474
+ } else if (args[0] === moduleName) {
1475
+ //Found matching define call for this script!
1476
+ found = true;
1477
+ }
1478
+
1479
+ callGetModule(args);
1480
+ }
1481
+
1482
+ //Do this after the cycle of callGetModule in case the result
1483
+ //of those calls/init calls changes the registry.
1484
+ mod = registry[moduleName];
1485
+
1486
+ if (!found && !defined[moduleName] && mod && !mod.inited) {
1487
+ if (config.enforceDefine && (!shExports || !getGlobal(shExports))) {
1488
+ if (hasPathFallback(moduleName)) {
1489
+ return;
1490
+ } else {
1491
+ return onError(makeError('nodefine',
1492
+ 'No define call for ' + moduleName,
1493
+ null,
1494
+ [moduleName]));
1495
+ }
1496
+ } else {
1497
+ //A script that does not call define(), so just simulate
1498
+ //the call for it.
1499
+ callGetModule([moduleName, (shim.deps || []), shim.exportsFn]);
1500
+ }
1501
+ }
1502
+
1503
+ checkLoaded();
1504
+ },
1505
+
1506
+ /**
1507
+ * Converts a module name to a file path. Supports cases where
1508
+ * moduleName may actually be just an URL.
1509
+ * Note that it **does not** call normalize on the moduleName,
1510
+ * it is assumed to have already been normalized. This is an
1511
+ * internal API, not a public one. Use toUrl for the public API.
1512
+ */
1513
+ nameToUrl: function (moduleName, ext) {
1514
+ var paths, pkgs, pkg, pkgPath, syms, i, parentModule, url,
1515
+ parentPath;
1516
+
1517
+ //If a colon is in the URL, it indicates a protocol is used and it is just
1518
+ //an URL to a file, or if it starts with a slash, contains a query arg (i.e. ?)
1519
+ //or ends with .js, then assume the user meant to use an url and not a module id.
1520
+ //The slash is important for protocol-less URLs as well as full paths.
1521
+ if (req.jsExtRegExp.test(moduleName)) {
1522
+ //Just a plain path, not module name lookup, so just return it.
1523
+ //Add extension if it is included. This is a bit wonky, only non-.js things pass
1524
+ //an extension, this method probably needs to be reworked.
1525
+ url = moduleName + (ext || '');
1526
+ } else {
1527
+ //A module that needs to be converted to a path.
1528
+ paths = config.paths;
1529
+ pkgs = config.pkgs;
1530
+
1531
+ syms = moduleName.split('/');
1532
+ //For each module name segment, see if there is a path
1533
+ //registered for it. Start with most specific name
1534
+ //and work up from it.
1535
+ for (i = syms.length; i > 0; i -= 1) {
1536
+ parentModule = syms.slice(0, i).join('/');
1537
+ pkg = pkgs[parentModule];
1538
+ parentPath = paths[parentModule];
1539
+ if (parentPath) {
1540
+ //If an array, it means there are a few choices,
1541
+ //Choose the one that is desired
1542
+ if (isArray(parentPath)) {
1543
+ parentPath = parentPath[0];
1544
+ }
1545
+ syms.splice(0, i, parentPath);
1546
+ break;
1547
+ } else if (pkg) {
1548
+ //If module name is just the package name, then looking
1549
+ //for the main module.
1550
+ if (moduleName === pkg.name) {
1551
+ pkgPath = pkg.location + '/' + pkg.main;
1552
+ } else {
1553
+ pkgPath = pkg.location;
1554
+ }
1555
+ syms.splice(0, i, pkgPath);
1556
+ break;
1557
+ }
1558
+ }
1559
+
1560
+ //Join the path parts together, then figure out if baseUrl is needed.
1561
+ url = syms.join('/');
1562
+ url += (ext || (/\?/.test(url) ? '' : '.js'));
1563
+ url = (url.charAt(0) === '/' || url.match(/^[\w\+\.\-]+:/) ? '' : config.baseUrl) + url;
1564
+ }
1565
+
1566
+ return config.urlArgs ? url +
1567
+ ((url.indexOf('?') === -1 ? '?' : '&') +
1568
+ config.urlArgs) : url;
1569
+ },
1570
+
1571
+ //Delegates to req.load. Broken out as a separate function to
1572
+ //allow overriding in the optimizer.
1573
+ load: function (id, url) {
1574
+ req.load(context, id, url);
1575
+ },
1576
+
1577
+ /**
1578
+ * Executes a module callack function. Broken out as a separate function
1579
+ * solely to allow the build system to sequence the files in the built
1580
+ * layer in the right sequence.
1581
+ *
1582
+ * @private
1583
+ */
1584
+ execCb: function (name, callback, args, exports) {
1585
+ return callback.apply(exports, args);
1586
+ },
1587
+
1588
+ /**
1589
+ * callback for script loads, used to check status of loading.
1590
+ *
1591
+ * @param {Event} evt the event from the browser for the script
1592
+ * that was loaded.
1593
+ */
1594
+ onScriptLoad: function (evt) {
1595
+ //Using currentTarget instead of target for Firefox 2.0's sake. Not
1596
+ //all old browsers will be supported, but this one was easy enough
1597
+ //to support and still makes sense.
1598
+ if (evt.type === 'load' ||
1599
+ (readyRegExp.test((evt.currentTarget || evt.srcElement).readyState))) {
1600
+ //Reset interactive script so a script node is not held onto for
1601
+ //to long.
1602
+ interactiveScript = null;
1603
+
1604
+ //Pull out the name of the module and the context.
1605
+ var data = getScriptData(evt);
1606
+ context.completeLoad(data.id);
1607
+ }
1608
+ },
1609
+
1610
+ /**
1611
+ * Callback for script errors.
1612
+ */
1613
+ onScriptError: function (evt) {
1614
+ var data = getScriptData(evt);
1615
+ if (!hasPathFallback(data.id)) {
1616
+ return onError(makeError('scripterror', 'Script error', evt, [data.id]));
1617
+ }
1618
+ }
1619
+ };
1620
+
1621
+ context.require = context.makeRequire();
1622
+ return context;
1623
+ }
1624
+
1625
+ /**
1626
+ * Main entry point.
1627
+ *
1628
+ * If the only argument to require is a string, then the module that
1629
+ * is represented by that string is fetched for the appropriate context.
1630
+ *
1631
+ * If the first argument is an array, then it will be treated as an array
1632
+ * of dependency string names to fetch. An optional function callback can
1633
+ * be specified to execute when all of those dependencies are available.
1634
+ *
1635
+ * Make a local req variable to help Caja compliance (it assumes things
1636
+ * on a require that are not standardized), and to give a short
1637
+ * name for minification/local scope use.
1638
+ */
1639
+ req = requirejs = function (deps, callback, errback, optional) {
1640
+
1641
+ //Find the right context, use default
1642
+ var context, config,
1643
+ contextName = defContextName;
1644
+
1645
+ // Determine if have config object in the call.
1646
+ if (!isArray(deps) && typeof deps !== 'string') {
1647
+ // deps is a config object
1648
+ config = deps;
1649
+ if (isArray(callback)) {
1650
+ // Adjust args if there are dependencies
1651
+ deps = callback;
1652
+ callback = errback;
1653
+ errback = optional;
1654
+ } else {
1655
+ deps = [];
1656
+ }
1657
+ }
1658
+
1659
+ if (config && config.context) {
1660
+ contextName = config.context;
1661
+ }
1662
+
1663
+ context = contexts[contextName];
1664
+ if (!context) {
1665
+ context = contexts[contextName] = req.s.newContext(contextName);
1666
+ }
1667
+
1668
+ if (config) {
1669
+ context.configure(config);
1670
+ }
1671
+
1672
+ return context.require(deps, callback, errback);
1673
+ };
1674
+
1675
+ /**
1676
+ * Support require.config() to make it easier to cooperate with other
1677
+ * AMD loaders on globally agreed names.
1678
+ */
1679
+ req.config = function (config) {
1680
+ return req(config);
1681
+ };
1682
+
1683
+ /**
1684
+ * Execute something after the current tick
1685
+ * of the event loop. Override for other envs
1686
+ * that have a better solution than setTimeout.
1687
+ * @param {Function} fn function to execute later.
1688
+ */
1689
+ req.nextTick = typeof setTimeout !== 'undefined' ? function (fn) {
1690
+ setTimeout(fn, 4);
1691
+ } : function (fn) { fn(); };
1692
+
1693
+ /**
1694
+ * Export require as a global, but only if it does not already exist.
1695
+ */
1696
+ if (!require) {
1697
+ require = req;
1698
+ }
1699
+
1700
+ req.version = version;
1701
+
1702
+ //Used to filter out dependencies that are already paths.
1703
+ req.jsExtRegExp = /^\/|:|\?|\.js$/;
1704
+ req.isBrowser = isBrowser;
1705
+ s = req.s = {
1706
+ contexts: contexts,
1707
+ newContext: newContext
1708
+ };
1709
+
1710
+ //Create default context.
1711
+ req({});
1712
+
1713
+ //Exports some context-sensitive methods on global require.
1714
+ each([
1715
+ 'toUrl',
1716
+ 'undef',
1717
+ 'defined',
1718
+ 'specified'
1719
+ ], function (prop) {
1720
+ //Reference from contexts instead of early binding to default context,
1721
+ //so that during builds, the latest instance of the default context
1722
+ //with its config gets used.
1723
+ req[prop] = function () {
1724
+ var ctx = contexts[defContextName];
1725
+ return ctx.require[prop].apply(ctx, arguments);
1726
+ };
1727
+ });
1728
+
1729
+ if (isBrowser) {
1730
+ head = s.head = document.getElementsByTagName('head')[0];
1731
+ //If BASE tag is in play, using appendChild is a problem for IE6.
1732
+ //When that browser dies, this can be removed. Details in this jQuery bug:
1733
+ //http://dev.jquery.com/ticket/2709
1734
+ baseElement = document.getElementsByTagName('base')[0];
1735
+ if (baseElement) {
1736
+ head = s.head = baseElement.parentNode;
1737
+ }
1738
+ }
1739
+
1740
+ /**
1741
+ * Any errors that require explicitly generates will be passed to this
1742
+ * function. Intercept/override it if you want custom error handling.
1743
+ * @param {Error} err the error object.
1744
+ */
1745
+ req.onError = function (err) {
1746
+ throw err;
1747
+ };
1748
+
1749
+ /**
1750
+ * Does the request to load a module for the browser case.
1751
+ * Make this a separate function to allow other environments
1752
+ * to override it.
1753
+ *
1754
+ * @param {Object} context the require context to find state.
1755
+ * @param {String} moduleName the name of the module.
1756
+ * @param {Object} url the URL to the module.
1757
+ */
1758
+ req.load = function (context, moduleName, url) {
1759
+ var config = (context && context.config) || {},
1760
+ node;
1761
+ if (isBrowser) {
1762
+ //In the browser so use a script tag
1763
+ node = config.xhtml ?
1764
+ document.createElementNS('http://www.w3.org/1999/xhtml', 'html:script') :
1765
+ document.createElement('script');
1766
+ node.type = config.scriptType || 'text/javascript';
1767
+ node.charset = 'utf-8';
1768
+ node.async = true;
1769
+
1770
+ node.setAttribute('data-requirecontext', context.contextName);
1771
+ node.setAttribute('data-requiremodule', moduleName);
1772
+
1773
+ //Set up load listener. Test attachEvent first because IE9 has
1774
+ //a subtle issue in its addEventListener and script onload firings
1775
+ //that do not match the behavior of all other browsers with
1776
+ //addEventListener support, which fire the onload event for a
1777
+ //script right after the script execution. See:
1778
+ //https://connect.microsoft.com/IE/feedback/details/648057/script-onload-event-is-not-fired-immediately-after-script-execution
1779
+ //UNFORTUNATELY Opera implements attachEvent but does not follow the script
1780
+ //script execution mode.
1781
+ if (node.attachEvent &&
1782
+ //Check if node.attachEvent is artificially added by custom script or
1783
+ //natively supported by browser
1784
+ //read https://github.com/jrburke/requirejs/issues/187
1785
+ //if we can NOT find [native code] then it must NOT natively supported.
1786
+ //in IE8, node.attachEvent does not have toString()
1787
+ //Note the test for "[native code" with no closing brace, see:
1788
+ //https://github.com/jrburke/requirejs/issues/273
1789
+ !(node.attachEvent.toString && node.attachEvent.toString().indexOf('[native code') < 0) &&
1790
+ !isOpera) {
1791
+ //Probably IE. IE (at least 6-8) do not fire
1792
+ //script onload right after executing the script, so
1793
+ //we cannot tie the anonymous define call to a name.
1794
+ //However, IE reports the script as being in 'interactive'
1795
+ //readyState at the time of the define call.
1796
+ useInteractive = true;
1797
+
1798
+ node.attachEvent('onreadystatechange', context.onScriptLoad);
1799
+ //It would be great to add an error handler here to catch
1800
+ //404s in IE9+. However, onreadystatechange will fire before
1801
+ //the error handler, so that does not help. If addEvenListener
1802
+ //is used, then IE will fire error before load, but we cannot
1803
+ //use that pathway given the connect.microsoft.com issue
1804
+ //mentioned above about not doing the 'script execute,
1805
+ //then fire the script load event listener before execute
1806
+ //next script' that other browsers do.
1807
+ //Best hope: IE10 fixes the issues,
1808
+ //and then destroys all installs of IE 6-9.
1809
+ //node.attachEvent('onerror', context.onScriptError);
1810
+ } else {
1811
+ node.addEventListener('load', context.onScriptLoad, false);
1812
+ node.addEventListener('error', context.onScriptError, false);
1813
+ }
1814
+ node.src = url;
1815
+
1816
+ //For some cache cases in IE 6-8, the script executes before the end
1817
+ //of the appendChild execution, so to tie an anonymous define
1818
+ //call to the module name (which is stored on the node), hold on
1819
+ //to a reference to this node, but clear after the DOM insertion.
1820
+ currentlyAddingScript = node;
1821
+ if (baseElement) {
1822
+ head.insertBefore(node, baseElement);
1823
+ } else {
1824
+ head.appendChild(node);
1825
+ }
1826
+ currentlyAddingScript = null;
1827
+
1828
+ return node;
1829
+ } else if (isWebWorker) {
1830
+ //In a web worker, use importScripts. This is not a very
1831
+ //efficient use of importScripts, importScripts will block until
1832
+ //its script is downloaded and evaluated. However, if web workers
1833
+ //are in play, the expectation that a build has been done so that
1834
+ //only one script needs to be loaded anyway. This may need to be
1835
+ //reevaluated if other use cases become common.
1836
+ importScripts(url);
1837
+
1838
+ //Account for anonymous modules
1839
+ context.completeLoad(moduleName);
1840
+ }
1841
+ };
1842
+
1843
+ function getInteractiveScript() {
1844
+ if (interactiveScript && interactiveScript.readyState === 'interactive') {
1845
+ return interactiveScript;
1846
+ }
1847
+
1848
+ eachReverse(scripts(), function (script) {
1849
+ if (script.readyState === 'interactive') {
1850
+ return (interactiveScript = script);
1851
+ }
1852
+ });
1853
+ return interactiveScript;
1854
+ }
1855
+
1856
+ //Look for a data-main script attribute, which could also adjust the baseUrl.
1857
+ if (isBrowser) {
1858
+ //Figure out baseUrl. Get it from the script tag with require.js in it.
1859
+ eachReverse(scripts(), function (script) {
1860
+ //Set the 'head' where we can append children by
1861
+ //using the script's parent.
1862
+ if (!head) {
1863
+ head = script.parentNode;
1864
+ }
1865
+
1866
+ //Look for a data-main attribute to set main script for the page
1867
+ //to load. If it is there, the path to data main becomes the
1868
+ //baseUrl, if it is not already set.
1869
+ dataMain = script.getAttribute('data-main');
1870
+ if (dataMain) {
1871
+ //Set final baseUrl if there is not already an explicit one.
1872
+ if (!cfg.baseUrl) {
1873
+ //Pull off the directory of data-main for use as the
1874
+ //baseUrl.
1875
+ src = dataMain.split('/');
1876
+ mainScript = src.pop();
1877
+ subPath = src.length ? src.join('/') + '/' : './';
1878
+
1879
+ cfg.baseUrl = subPath;
1880
+ dataMain = mainScript;
1881
+ }
1882
+
1883
+ //Strip off any trailing .js since dataMain is now
1884
+ //like a module name.
1885
+ dataMain = dataMain.replace(jsSuffixRegExp, '');
1886
+
1887
+ //Put the data-main script in the files to load.
1888
+ cfg.deps = cfg.deps ? cfg.deps.concat(dataMain) : [dataMain];
1889
+
1890
+ return true;
1891
+ }
1892
+ });
1893
+ }
1894
+
1895
+ /**
1896
+ * The function that handles definitions of modules. Differs from
1897
+ * require() in that a string for the module should be the first argument,
1898
+ * and the function to execute after dependencies are loaded should
1899
+ * return a value to define the module corresponding to the first argument's
1900
+ * name.
1901
+ */
1902
+ define = function (name, deps, callback) {
1903
+ var node, context;
1904
+
1905
+ //Allow for anonymous modules
1906
+ if (typeof name !== 'string') {
1907
+ //Adjust args appropriately
1908
+ callback = deps;
1909
+ deps = name;
1910
+ name = null;
1911
+ }
1912
+
1913
+ //This module may not have dependencies
1914
+ if (!isArray(deps)) {
1915
+ callback = deps;
1916
+ deps = [];
1917
+ }
1918
+
1919
+ //If no name, and callback is a function, then figure out if it a
1920
+ //CommonJS thing with dependencies.
1921
+ if (!deps.length && isFunction(callback)) {
1922
+ //Remove comments from the callback string,
1923
+ //look for require calls, and pull them into the dependencies,
1924
+ //but only if there are function args.
1925
+ if (callback.length) {
1926
+ callback
1927
+ .toString()
1928
+ .replace(commentRegExp, '')
1929
+ .replace(cjsRequireRegExp, function (match, dep) {
1930
+ deps.push(dep);
1931
+ });
1932
+
1933
+ //May be a CommonJS thing even without require calls, but still
1934
+ //could use exports, and module. Avoid doing exports and module
1935
+ //work though if it just needs require.
1936
+ //REQUIRES the function to expect the CommonJS variables in the
1937
+ //order listed below.
1938
+ deps = (callback.length === 1 ? ['require'] : ['require', 'exports', 'module']).concat(deps);
1939
+ }
1940
+ }
1941
+
1942
+ //If in IE 6-8 and hit an anonymous define() call, do the interactive
1943
+ //work.
1944
+ if (useInteractive) {
1945
+ node = currentlyAddingScript || getInteractiveScript();
1946
+ if (node) {
1947
+ if (!name) {
1948
+ name = node.getAttribute('data-requiremodule');
1949
+ }
1950
+ context = contexts[node.getAttribute('data-requirecontext')];
1951
+ }
1952
+ }
1953
+
1954
+ //Always save off evaluating the def call until the script onload handler.
1955
+ //This allows multiple modules to be in a file without prematurely
1956
+ //tracing dependencies, and allows for anonymous module support,
1957
+ //where the module name is not known until the script onload event
1958
+ //occurs. If no context, use the global queue, and get it processed
1959
+ //in the onscript load callback.
1960
+ (context ? context.defQueue : globalDefQueue).push([name, deps, callback]);
1961
+ };
1962
+
1963
+ define.amd = {
1964
+ jQuery: true
1965
+ };
1966
+
1967
+
1968
+ /**
1969
+ * Executes the text. Normally just uses eval, but can be modified
1970
+ * to use a better, environment-specific call. Only used for transpiling
1971
+ * loader plugins, not for plain JS modules.
1972
+ * @param {String} text the text to execute/evaluate.
1973
+ */
1974
+ req.exec = function (text) {
1975
+ /*jslint evil: true */
1976
+ return eval(text);
1977
+ };
1978
+
1979
+ //Set up with config info.
1980
+ req(cfg);
1981
+ }(this));