upjs-rails 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (239) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -1
  3. data/dist/up.js +138 -81
  4. data/dist/up.min.js +2 -2
  5. data/lib/assets/javascripts/up/boot.js.coffee +3 -0
  6. data/lib/assets/javascripts/up/browser.js.coffee +42 -26
  7. data/lib/assets/javascripts/up/flow.js.coffee +6 -4
  8. data/lib/assets/javascripts/up/history.js.coffee +1 -1
  9. data/lib/assets/javascripts/up/modal.js.coffee +4 -4
  10. data/lib/assets/javascripts/up/motion.js.coffee +6 -4
  11. data/lib/assets/javascripts/up/proxy.js.coffee +2 -1
  12. data/lib/assets/javascripts/up/util.js.coffee +61 -32
  13. data/lib/assets/javascripts/up.js.coffee +1 -10
  14. data/lib/upjs/rails/version.rb +1 -1
  15. data/spec_app/config/environments/development.rb +1 -1
  16. data/spec_app/spec/javascripts/helpers/reset_path.js.coffee +3 -2
  17. data/spec_app/spec/javascripts/up/flow_spec.js.coffee +1 -1
  18. data/spec_app/spec/javascripts/up/history_spec.js.coffee +53 -47
  19. data/spec_app/spec/javascripts/up/link_spec.js.coffee +1 -1
  20. data/spec_app/spec/javascripts/up/motion_spec.js.coffee +4 -4
  21. data/spec_app/spec/javascripts/up/proxy_spec.js.coffee +18 -9
  22. data/spec_app/vendor/assets/bower_components/jasmine/.bower.json +43 -7
  23. data/spec_app/vendor/assets/bower_components/jasmine/CONTRIBUTING.md +26 -17
  24. data/spec_app/vendor/assets/bower_components/jasmine/README.md +27 -18
  25. data/spec_app/vendor/assets/bower_components/jasmine/RELEASE.md +15 -5
  26. data/spec_app/vendor/assets/bower_components/jasmine/bower.json +41 -0
  27. data/spec_app/vendor/assets/bower_components/jasmine/lib/console/console.js +27 -3
  28. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/boot.js +10 -9
  29. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/node_example/{src → lib/jasmine_examples}/Player.js +0 -0
  30. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/node_example/{src → lib/jasmine_examples}/Song.js +0 -0
  31. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/jasmine-html.js +76 -20
  32. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/jasmine.css +15 -18
  33. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/jasmine.js +1399 -694
  34. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/json2.js +73 -62
  35. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/node_boot.js +1 -1
  36. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core.js +29 -31
  37. data/spec_app/vendor/assets/bower_components/jasmine/package.json +18 -7
  38. data/spec_app/vendor/assets/bower_components/jasmine-ajax/.bower.json +11 -13
  39. data/spec_app/vendor/assets/bower_components/jasmine-ajax/MIT.LICENSE +1 -1
  40. data/spec_app/vendor/assets/bower_components/jasmine-ajax/README.markdown +198 -125
  41. data/spec_app/vendor/assets/bower_components/jasmine-ajax/bower.json +9 -10
  42. data/spec_app/vendor/assets/bower_components/jasmine-ajax/lib/mock-ajax.js +250 -59
  43. data/spec_app/vendor/assets/bower_components/jasmine-ajax/package.json +9 -4
  44. data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/2.0.2.md +50 -0
  45. data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/2.99.md +14 -0
  46. data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/3.0.md +28 -0
  47. data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/3.1.0.md +24 -0
  48. data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/3.1.1.md +23 -0
  49. data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/3.2.0.md +20 -0
  50. data/spec_app/vendor/assets/bower_components/jasmine-fixture/.bower.json +4 -4
  51. data/spec_app/vendor/assets/bower_components/jasmine-fixture/bower.json +1 -1
  52. data/spec_app/vendor/assets/bower_components/jasmine-fixture/dist/jasmine-fixture.js +4 -4
  53. data/spec_app/vendor/assets/bower_components/jasmine-fixture/dist/jasmine-fixture.min.js +2 -2
  54. data/spec_app/vendor/assets/bower_components/jasmine-jquery/.bower.json +4 -4
  55. data/spec_app/vendor/assets/bower_components/jasmine-jquery/Gruntfile.js +17 -1
  56. data/spec_app/vendor/assets/bower_components/jasmine-jquery/{MIT.LICENSE → LICENSE} +0 -0
  57. data/spec_app/vendor/assets/bower_components/jasmine-jquery/README.md +14 -9
  58. data/spec_app/vendor/assets/bower_components/jasmine-jquery/bower.json +0 -1
  59. data/spec_app/vendor/assets/bower_components/jasmine-jquery/lib/jasmine-jquery.js +35 -10
  60. data/spec_app/vendor/assets/bower_components/jasmine-jquery/package.json +33 -24
  61. data/spec_app/vendor/assets/bower_components/jasmine-jquery/spec/fixtures/fixture_with_checkbox_with_checked.html +6 -0
  62. data/spec_app/vendor/assets/bower_components/jasmine-jquery/spec/suites/jasmine-jquery-spec.js +61 -1
  63. data/spec_app/vendor/assets/bower_components/jquery/.bower.json +5 -4
  64. data/spec_app/vendor/assets/bower_components/jquery/bower.json +2 -1
  65. data/spec_app/vendor/assets/bower_components/jquery/dist/jquery.js +9 -4
  66. data/spec_app/vendor/assets/bower_components/jquery/dist/jquery.min.js +4 -4
  67. data/spec_app/vendor/assets/bower_components/jquery/dist/jquery.min.map +1 -1
  68. data/spec_app/vendor/assets/bower_components/jquery/src/core.js +6 -1
  69. metadata +14 -175
  70. data/spec_app/vendor/assets/bower_components/jasmine/.gitignore +0 -24
  71. data/spec_app/vendor/assets/bower_components/jasmine/.gitmodules +0 -3
  72. data/spec_app/vendor/assets/bower_components/jasmine/.jshintrc +0 -9
  73. data/spec_app/vendor/assets/bower_components/jasmine/.npmignore +0 -21
  74. data/spec_app/vendor/assets/bower_components/jasmine/.rspec +0 -1
  75. data/spec_app/vendor/assets/bower_components/jasmine/.travis.yml +0 -51
  76. data/spec_app/vendor/assets/bower_components/jasmine/Gemfile +0 -12
  77. data/spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js +0 -53
  78. data/spec_app/vendor/assets/bower_components/jasmine/Rakefile +0 -18
  79. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-1.0.0.zip +0 -0
  80. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-1.1.0.zip +0 -0
  81. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-1.2.0.zip +0 -0
  82. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-1.3.0.zip +0 -0
  83. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-1.3.1.zip +0 -0
  84. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-2.0.0.zip +0 -0
  85. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-2.0.1.zip +0 -0
  86. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-2.0.2.zip +0 -0
  87. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-2.0.3.zip +0 -0
  88. data/spec_app/vendor/assets/bower_components/jasmine/grunt/config/compass.js +0 -10
  89. data/spec_app/vendor/assets/bower_components/jasmine/grunt/config/compress.js +0 -66
  90. data/spec_app/vendor/assets/bower_components/jasmine/grunt/config/concat.js +0 -61
  91. data/spec_app/vendor/assets/bower_components/jasmine/grunt/config/jshint.js +0 -11
  92. data/spec_app/vendor/assets/bower_components/jasmine/grunt/tasks/build_standalone.js +0 -31
  93. data/spec_app/vendor/assets/bower_components/jasmine/grunt/tasks/version.js +0 -14
  94. data/spec_app/vendor/assets/bower_components/jasmine/grunt/templates/SpecRunner.html.jst +0 -26
  95. data/spec_app/vendor/assets/bower_components/jasmine/grunt/templates/licenseBanner.js.jst +0 -22
  96. data/spec_app/vendor/assets/bower_components/jasmine/grunt/templates/version.rb.jst +0 -9
  97. data/spec_app/vendor/assets/bower_components/jasmine/images/__init__.py +0 -0
  98. data/spec_app/vendor/assets/bower_components/jasmine/jasmine-core.gemspec +0 -23
  99. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/__init__.py +0 -1
  100. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/boot/boot.js +0 -120
  101. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/boot/node_boot.js +0 -19
  102. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/core.py +0 -60
  103. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/node_example/spec/PlayerSpec.js +0 -60
  104. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/node_example/spec/SpecHelper.js +0 -15
  105. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/spec/PlayerSpec.js +0 -58
  106. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/spec/SpecHelper.js +0 -15
  107. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/src/Player.js +0 -22
  108. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/src/Song.js +0 -7
  109. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/version.rb +0 -9
  110. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core.rb +0 -53
  111. data/spec_app/vendor/assets/bower_components/jasmine/release_notes/2.0.1.md +0 -70
  112. data/spec_app/vendor/assets/bower_components/jasmine/release_notes/2.0.2.md +0 -25
  113. data/spec_app/vendor/assets/bower_components/jasmine/release_notes/20.md +0 -179
  114. data/spec_app/vendor/assets/bower_components/jasmine/setup.py +0 -47
  115. data/spec_app/vendor/assets/bower_components/jasmine/spec/console/ConsoleReporterSpec.js +0 -239
  116. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/AnySpec.js +0 -46
  117. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/CallTrackerSpec.js +0 -105
  118. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ClockSpec.js +0 -445
  119. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/DelayedFunctionSchedulerSpec.js +0 -246
  120. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/EnvSpec.js +0 -85
  121. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ExceptionFormatterSpec.js +0 -63
  122. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ExceptionsSpec.js +0 -68
  123. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ExpectationResultSpec.js +0 -61
  124. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ExpectationSpec.js +0 -427
  125. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/JsApiReporterSpec.js +0 -214
  126. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/MockDateSpec.js +0 -199
  127. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ObjectContainingSpec.js +0 -70
  128. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/PrettyPrintSpec.js +0 -156
  129. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/QueueRunnerSpec.js +0 -271
  130. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ReportDispatcherSpec.js +0 -40
  131. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/SpecSpec.js +0 -260
  132. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/SpySpec.js +0 -67
  133. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/SpyStrategySpec.js +0 -111
  134. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/SuiteSpec.js +0 -216
  135. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/TimerSpec.js +0 -31
  136. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/UtilSpec.js +0 -28
  137. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/integration/CustomMatchersSpec.js +0 -149
  138. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/integration/EnvSpec.js +0 -506
  139. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/integration/SpecRunningSpec.js +0 -306
  140. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/matchersUtilSpec.js +0 -239
  141. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeCloseToSpec.js +0 -51
  142. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeDefinedSpec.js +0 -18
  143. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeFalsySpec.js +0 -38
  144. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeGreaterThanSpec.js +0 -20
  145. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeLessThanSpec.js +0 -20
  146. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeNaNSpec.js +0 -37
  147. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeNullSpec.js +0 -17
  148. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeSpec.js +0 -17
  149. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeTruthySpec.js +0 -38
  150. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeUndefinedSpec.js +0 -18
  151. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toContainSpec.js +0 -26
  152. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toEqualSpec.js +0 -28
  153. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toHaveBeenCalledSpec.js +0 -47
  154. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toHaveBeenCalledWithSpec.js +0 -66
  155. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toMatchSpec.js +0 -34
  156. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toThrowErrorSpec.js +0 -280
  157. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toThrowSpec.js +0 -99
  158. data/spec_app/vendor/assets/bower_components/jasmine/spec/helpers/BrowserFlags.js +0 -23
  159. data/spec_app/vendor/assets/bower_components/jasmine/spec/helpers/defineJasmineUnderTest.js +0 -7
  160. data/spec_app/vendor/assets/bower_components/jasmine/spec/helpers/nodeDefineJasmineUnderTest.js +0 -33
  161. data/spec_app/vendor/assets/bower_components/jasmine/spec/html/HtmlReporterSpec.js +0 -616
  162. data/spec_app/vendor/assets/bower_components/jasmine/spec/html/HtmlSpecFilterSpec.js +0 -18
  163. data/spec_app/vendor/assets/bower_components/jasmine/spec/html/MatchersHtmlSpec.js +0 -37
  164. data/spec_app/vendor/assets/bower_components/jasmine/spec/html/PrettyPrintHtmlSpec.js +0 -15
  165. data/spec_app/vendor/assets/bower_components/jasmine/spec/html/QueryStringSpec.js +0 -43
  166. data/spec_app/vendor/assets/bower_components/jasmine/spec/html/ResultsNodeSpec.js +0 -62
  167. data/spec_app/vendor/assets/bower_components/jasmine/spec/javascripts/support/jasmine_selenium_runner.yml +0 -16
  168. data/spec_app/vendor/assets/bower_components/jasmine/spec/performance/large_object_test.js +0 -36
  169. data/spec_app/vendor/assets/bower_components/jasmine/spec/performance/performance_test.js +0 -10
  170. data/spec_app/vendor/assets/bower_components/jasmine/spec/support/jasmine-performance.json +0 -9
  171. data/spec_app/vendor/assets/bower_components/jasmine/spec/support/jasmine-performance.yml +0 -9
  172. data/spec_app/vendor/assets/bower_components/jasmine/spec/support/jasmine.json +0 -10
  173. data/spec_app/vendor/assets/bower_components/jasmine/spec/support/jasmine.yml +0 -25
  174. data/spec_app/vendor/assets/bower_components/jasmine/src/console/ConsoleReporter.js +0 -131
  175. data/spec_app/vendor/assets/bower_components/jasmine/src/console/requireConsole.js +0 -12
  176. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js +0 -36
  177. data/spec_app/vendor/assets/bower_components/jasmine/src/core/CallTracker.js +0 -50
  178. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Clock.js +0 -113
  179. data/spec_app/vendor/assets/bower_components/jasmine/src/core/DelayedFunctionScheduler.js +0 -145
  180. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Env.js +0 -341
  181. data/spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js +0 -29
  182. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Expectation.js +0 -107
  183. data/spec_app/vendor/assets/bower_components/jasmine/src/core/ExpectationResult.js +0 -45
  184. data/spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js +0 -73
  185. data/spec_app/vendor/assets/bower_components/jasmine/src/core/MockDate.js +0 -81
  186. data/spec_app/vendor/assets/bower_components/jasmine/src/core/ObjectContaining.js +0 -34
  187. data/spec_app/vendor/assets/bower_components/jasmine/src/core/PrettyPrinter.js +0 -137
  188. data/spec_app/vendor/assets/bower_components/jasmine/src/core/QueueRunner.js +0 -92
  189. data/spec_app/vendor/assets/bower_components/jasmine/src/core/ReportDispatcher.js +0 -35
  190. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Spec.js +0 -126
  191. data/spec_app/vendor/assets/bower_components/jasmine/src/core/SpyStrategy.js +0 -51
  192. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Suite.js +0 -92
  193. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Timer.js +0 -22
  194. data/spec_app/vendor/assets/bower_components/jasmine/src/core/base.js +0 -102
  195. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/matchersUtil.js +0 -181
  196. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/requireMatchers.js +0 -29
  197. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBe.js +0 -13
  198. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeCloseTo.js +0 -18
  199. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeDefined.js +0 -13
  200. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeFalsy.js +0 -13
  201. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeGreaterThan.js +0 -15
  202. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeLessThan.js +0 -14
  203. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeNaN.js +0 -22
  204. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeNull.js +0 -14
  205. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeTruthy.js +0 -14
  206. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeUndefined.js +0 -14
  207. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toContain.js +0 -16
  208. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toEqual.js +0 -20
  209. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toHaveBeenCalled.js +0 -28
  210. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toHaveBeenCalledWith.js +0 -33
  211. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toMatch.js +0 -16
  212. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toThrow.js +0 -46
  213. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toThrowError.js +0 -156
  214. data/spec_app/vendor/assets/bower_components/jasmine/src/core/requireCore.js +0 -39
  215. data/spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js +0 -59
  216. data/spec_app/vendor/assets/bower_components/jasmine/src/core/util.js +0 -44
  217. data/spec_app/vendor/assets/bower_components/jasmine/src/html/HtmlReporter.js +0 -280
  218. data/spec_app/vendor/assets/bower_components/jasmine/src/html/HtmlSpecFilter.js +0 -12
  219. data/spec_app/vendor/assets/bower_components/jasmine/src/html/QueryString.js +0 -47
  220. data/spec_app/vendor/assets/bower_components/jasmine/src/html/ResultsNode.js +0 -19
  221. data/spec_app/vendor/assets/bower_components/jasmine/src/html/_HTMLReporter.scss +0 -355
  222. data/spec_app/vendor/assets/bower_components/jasmine/src/html/jasmine.scss +0 -1
  223. data/spec_app/vendor/assets/bower_components/jasmine/src/html/requireHtml.js +0 -6
  224. data/spec_app/vendor/assets/bower_components/jasmine/src/templates/example_project_jasmine_tags.html.erb +0 -3
  225. data/spec_app/vendor/assets/bower_components/jasmine/src/templates/version.js.erb +0 -7
  226. data/spec_app/vendor/assets/bower_components/jasmine/src/templates/version.rb.erb +0 -6
  227. data/spec_app/vendor/assets/bower_components/jasmine/src/version.js +0 -3
  228. data/spec_app/vendor/assets/bower_components/jasmine/travis-core-script.sh +0 -14
  229. data/spec_app/vendor/assets/bower_components/jasmine/travis-docs-script.sh +0 -5
  230. data/spec_app/vendor/assets/bower_components/jasmine/travis-node-script.sh +0 -6
  231. data/spec_app/vendor/assets/bower_components/jasmine-ajax/Gruntfile.js +0 -63
  232. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/boot.js +0 -11
  233. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/fakeRequest.js +0 -262
  234. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/mockAjax.js +0 -45
  235. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/paramParser.js +0 -56
  236. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/requestStub.js +0 -42
  237. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/requestTracker.js +0 -51
  238. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/requireAjax.js +0 -44
  239. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/stubTracker.js +0 -24
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9612554166f5b3f84f42b54fc24d3f01a82f309a
4
- data.tar.gz: 8329cce83bf85a136b387b24c17f8d0a0ce76c7c
3
+ metadata.gz: 45aca2d7cd9c8a07f58d4d481a6a37ad7b37b7a3
4
+ data.tar.gz: 678ae5a37b08503652573fcc6e18eebf5957cf1a
5
5
  SHA512:
6
- metadata.gz: 4f7c9f36a603dca57417c2efff60487fcea9a003b5951119687629c04f8f291f0273409be8d2bb608e6d3c9ec59991d6b6c63c51541dea30caecd27285c2c1bb
7
- data.tar.gz: bcd6e73b1d9ef5a8a581de35287d25fd1893a8649f51810831649fb2d6d1a47d6ddd1b6b33ed9da2cc72d3f10302d9993e0ba09258eba68c4b5dbae2bf5d5538
6
+ metadata.gz: 18ea3374c9519f55ca8f73df9681dc21617693a66ccfe0a3ae93c5b1f79636b04b4a0cfe2c2800b8af0a4486f0d8a812ad10d51640a0a49f9839c2f4293833cb
7
+ data.tar.gz: 2fcd00b404ae9c278e03d3e3ea97546e016956f04282f09c814d30b465752b15b29212b2e0a4c8b501f3355041419d230998b85db59c656f94f8aef3fc0646b4
data/CHANGELOG.md CHANGED
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
5
5
  This project mostly adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
 
8
+ 0.11.1
9
+ ------
10
+
11
+ ### Compatible changes
12
+
13
+ - Fix a bug where browsers without CSS animation support would crash after an animation call
14
+ - Expose `up.error` as public API. This prints an error message to the error console and throws a new `Error` with that message.
15
+ - Fix a million bugs related to compatibility with IE9 and IE10
16
+
17
+
8
18
  0.11.0
9
19
  ------
10
20
 
@@ -36,7 +46,6 @@ This project mostly adheres to [Semantic Versioning](http://semver.org/).
36
46
  set an `_up_request_method` cookie with the current request method on every request.
37
47
 
38
48
 
39
-
40
49
  0.10.5
41
50
  ------
42
51
 
data/dist/up.js CHANGED
@@ -25,7 +25,7 @@ If you use them in your own code, you will get hurt.
25
25
  var slice = [].slice;
26
26
 
27
27
  up.util = (function() {
28
- var $createElementFromSelector, ANIMATION_PROMISE_KEY, CONSOLE_PLACEHOLDERS, ajax, any, cache, castedAttr, clientSize, compact, config, contains, copy, copyAttributes, createElement, createElementFromHtml, createSelectorFromElement, cssAnimate, debug, detect, each, emptyJQuery, endsWith, error, escapePressed, extend, findWithSelf, finishCssAnimate, fixedToAbsolute, forceCompositing, identity, ifGiven, isArray, isBlank, isDeferred, isDefined, isElement, isFunction, isGiven, isHash, isJQuery, isMissing, isNull, isNumber, isObject, isPresent, isPromise, isStandardPort, isString, isUndefined, isUnmodifiedKeyEvent, isUnmodifiedMouseEvent, keys, last, locationFromXhr, map, measure, memoize, merge, methodFromXhr, multiSelector, nextFrame, normalizeMethod, normalizeUrl, nullJquery, offsetParent, once, only, option, options, presence, presentAttr, remove, resolvableWhen, resolvedDeferred, resolvedPromise, scrollbarWidth, select, setMissingAttrs, startsWith, stringifyConsoleArgs, temporaryCss, times, toArray, trim, unJquery, uniq, unwrapElement, warn;
28
+ var $createElementFromSelector, ANIMATION_PROMISE_KEY, CONSOLE_PLACEHOLDERS, ajax, any, cache, castedAttr, clientSize, compact, config, contains, copy, copyAttributes, createElement, createElementFromHtml, createSelectorFromElement, cssAnimate, debug, detect, each, emptyJQuery, endsWith, error, escapePressed, evalConsoleTemplate, extend, findWithSelf, finishCssAnimate, fixedToAbsolute, forceCompositing, identity, ifGiven, isArray, isBlank, isDeferred, isDefined, isElement, isFunction, isGiven, isHash, isJQuery, isMissing, isNull, isNumber, isObject, isPresent, isPromise, isStandardPort, isString, isUndefined, isUnmodifiedKeyEvent, isUnmodifiedMouseEvent, last, locationFromXhr, map, measure, memoize, merge, methodFromXhr, multiSelector, nextFrame, normalizeMethod, normalizeUrl, nullJquery, offsetParent, once, only, option, options, presence, presentAttr, remove, resolvableWhen, resolvedDeferred, resolvedPromise, scrollbarWidth, select, setMissingAttrs, startsWith, temporaryCss, times, toArray, trim, unJquery, uniq, unwrapElement, warn;
29
29
  memoize = function(func) {
30
30
  var cache, cached;
31
31
  cache = void 0;
@@ -41,13 +41,14 @@ If you use them in your own code, you will get hurt.
41
41
  }
42
42
  };
43
43
  };
44
- ajax = function(options) {
45
- if (options.selector) {
46
- options.headers = {
47
- "X-Up-Selector": options.selector
44
+ ajax = function(request) {
45
+ request = copy(request);
46
+ if (request.selector) {
47
+ request.headers = {
48
+ "X-Up-Selector": request.selector
48
49
  };
49
50
  }
50
- return $.ajax(options);
51
+ return $.ajax(request);
51
52
  };
52
53
 
53
54
  /**
@@ -164,35 +165,61 @@ If you use them in your own code, you will get hurt.
164
165
  }
165
166
  return element;
166
167
  };
168
+
169
+ /**
170
+ @method up.debug
171
+ @protected
172
+ */
167
173
  debug = function() {
168
- var args, message;
174
+ var args, message, ref;
169
175
  message = arguments[0], args = 2 <= arguments.length ? slice.call(arguments, 1) : [];
170
176
  message = "[UP] " + message;
171
- return console.debug.apply(console, [message].concat(slice.call(args)));
177
+ return (ref = up.browser).puts.apply(ref, ['debug', message].concat(slice.call(args)));
172
178
  };
179
+
180
+ /**
181
+ @method up.warn
182
+ @protected
183
+ */
173
184
  warn = function() {
174
- var args, message;
185
+ var args, message, ref;
175
186
  message = arguments[0], args = 2 <= arguments.length ? slice.call(arguments, 1) : [];
176
187
  message = "[UP] " + message;
177
- return console.warn.apply(console, [message].concat(slice.call(args)));
188
+ return (ref = up.browser).puts.apply(ref, ['warn', message].concat(slice.call(args)));
178
189
  };
190
+
191
+ /**
192
+ Throws a fatal error with the given message.
193
+
194
+ - The error will be printed to the [error console](https://developer.mozilla.org/en-US/docs/Web/API/Console/error)
195
+ - An [`Error`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) (exception) will be thrown, unwinding the current call stack
196
+ - The error message will be printed in a corner of the screen
197
+
198
+ \#\#\#\# Examples
199
+
200
+ up.error('Division by zero')
201
+ up.error('Unexpected result %o', result)
202
+
203
+ @method up.error
204
+ */
179
205
  error = function() {
180
- var $error, args, asString;
206
+ var $error, args, asString, ref;
181
207
  args = 1 <= arguments.length ? slice.call(arguments, 0) : [];
182
208
  args[0] = "[UP] " + args[0];
183
- console.error.apply(console, args);
184
- asString = stringifyConsoleArgs(args);
209
+ (ref = up.browser).puts.apply(ref, ['error'].concat(slice.call(args)));
210
+ asString = evalConsoleTemplate.apply(null, args);
185
211
  $error = presence($('.up-error')) || $('<div class="up-error"></div>').prependTo('body');
186
212
  $error.addClass('up-error');
187
213
  $error.text(asString);
188
214
  throw new Error(asString);
189
215
  };
190
216
  CONSOLE_PLACEHOLDERS = /\%[odisf]/g;
191
- stringifyConsoleArgs = function(args) {
192
- var i, maxLength, message;
217
+ evalConsoleTemplate = function() {
218
+ var args, i, maxLength, message;
219
+ args = 1 <= arguments.length ? slice.call(arguments, 0) : [];
193
220
  message = args[0];
194
221
  i = 0;
195
- maxLength = 50;
222
+ maxLength = 80;
196
223
  return message.replace(CONSOLE_PLACEHOLDERS, function() {
197
224
  var arg, argType;
198
225
  i += 1;
@@ -204,12 +231,17 @@ If you use them in your own code, you will get hurt.
204
231
  arg = (arg.substr(0, maxLength)) + "…";
205
232
  }
206
233
  arg = "\"" + arg + "\"";
207
- } else if (argType === 'number') {
234
+ } else if (argType === 'undefined') {
235
+ arg = 'undefined';
236
+ } else if (argType === 'number' || argType === 'function') {
208
237
  arg = arg.toString();
209
238
  } else {
210
239
  arg = JSON.stringify(arg);
211
- if (arg.length > maxLength) {
212
- arg = (arg.substr(0, maxLength)) + "…";
240
+ }
241
+ if (arg.length > maxLength) {
242
+ arg = (arg.substr(0, maxLength)) + " …";
243
+ if (argType === 'object' || argType === 'function') {
244
+ arg += " }";
213
245
  }
214
246
  }
215
247
  return arg;
@@ -261,17 +293,6 @@ If you use them in your own code, you will get hurt.
261
293
  };
262
294
  extend = $.extend;
263
295
  trim = $.trim;
264
- keys = Object.keys || function(object) {
265
- var j, key, len, result;
266
- result = [];
267
- for (j = 0, len = object.length; j < len; j++) {
268
- key = object[j];
269
- if (object.hasOwnProperty(key)) {
270
- result.push(key);
271
- }
272
- }
273
- return result;
274
- };
275
296
  each = function(collection, block) {
276
297
  var index, item, j, len, results;
277
298
  results = [];
@@ -309,7 +330,7 @@ If you use them in your own code, you will get hurt.
309
330
  return !isMissing(object);
310
331
  };
311
332
  isBlank = function(object) {
312
- return isMissing(object) || (isObject(object) && keys(object).length === 0) || (object.length === 0);
333
+ return isMissing(object) || (isObject(object) && Object.keys(object).length === 0) || (object.length === 0);
313
334
  };
314
335
  presence = function(object, checker) {
315
336
  if (checker == null) {
@@ -542,7 +563,7 @@ If you use them in your own code, you will get hurt.
542
563
  */
543
564
  temporaryCss = function($element, css, block) {
544
565
  var memo, oldCss;
545
- oldCss = $element.css(keys(css));
566
+ oldCss = $element.css(Object.keys(css));
546
567
  $element.css(css);
547
568
  memo = function() {
548
569
  return $element.css(oldCss);
@@ -607,7 +628,7 @@ If you use them in your own code, you will get hurt.
607
628
  });
608
629
  deferred = $.Deferred();
609
630
  transition = {
610
- 'transition-property': keys(lastFrame).join(', '),
631
+ 'transition-property': Object.keys(lastFrame).join(', '),
611
632
  'transition-duration': opts.duration + "ms",
612
633
  'transition-delay': opts.delay + "ms",
613
634
  'transition-timing-function': opts.easing
@@ -630,7 +651,7 @@ If you use them in your own code, you will get hurt.
630
651
  return deferred;
631
652
  } else {
632
653
  $element.css(lastFrame);
633
- return resolvedPromise();
654
+ return resolvedDeferred();
634
655
  }
635
656
  };
636
657
  ANIMATION_PROMISE_KEY = 'up-animation-promise';
@@ -900,7 +921,10 @@ If you use them in your own code, you will get hurt.
900
921
  A prefix for log entries printed by this cache object.
901
922
  */
902
923
  cache = function(config) {
903
- var alias, clear, expiryMilis, get, isFresh, log, maxSize, normalizeStoreKey, set, store, timestamp;
924
+ var alias, clear, expiryMilis, get, isFresh, keys, log, maxSize, normalizeStoreKey, set, store, timestamp;
925
+ if (config == null) {
926
+ config = {};
927
+ }
904
928
  store = void 0;
905
929
  clear = function() {
906
930
  return store = {};
@@ -914,6 +938,9 @@ If you use them in your own code, you will get hurt.
914
938
  return debug.apply(null, args);
915
939
  }
916
940
  };
941
+ keys = function() {
942
+ return Object.keys(store);
943
+ };
917
944
  maxSize = function() {
918
945
  if (isMissing(config.size)) {
919
946
  return void 0;
@@ -945,7 +972,7 @@ If you use them in your own code, you will get hurt.
945
972
  };
946
973
  trim = function() {
947
974
  var oldestKey, oldestTimestamp, size, storeKeys;
948
- storeKeys = copy(keys(store));
975
+ storeKeys = copy(keys());
949
976
  size = maxSize();
950
977
  if (size && storeKeys.length > size) {
951
978
  oldestKey = null;
@@ -1022,7 +1049,8 @@ If you use them in your own code, you will get hurt.
1022
1049
  get: get,
1023
1050
  set: set,
1024
1051
  remove: remove,
1025
- clear: clear
1052
+ clear: clear,
1053
+ keys: keys
1026
1054
  };
1027
1055
  };
1028
1056
  config = function(factoryOptions) {
@@ -1084,7 +1112,6 @@ If you use them in your own code, you will get hurt.
1084
1112
  $match = void 0;
1085
1113
  while (($element = $element.parent()) && $element.length) {
1086
1114
  position = $element.css('position');
1087
- console.log("Iteration element is %o with position %o", $element, position);
1088
1115
  if (position === 'absolute' || position === 'relative' || $element.is('body')) {
1089
1116
  $match = $element;
1090
1117
  break;
@@ -1176,7 +1203,6 @@ If you use them in your own code, you will get hurt.
1176
1203
  clientSize: clientSize,
1177
1204
  only: only,
1178
1205
  trim: trim,
1179
- keys: keys,
1180
1206
  resolvedPromise: resolvedPromise,
1181
1207
  resolvedDeferred: resolvedDeferred,
1182
1208
  resolvableWhen: resolvableWhen,
@@ -1188,10 +1214,17 @@ If you use them in your own code, you will get hurt.
1188
1214
  cache: cache,
1189
1215
  unwrapElement: unwrapElement,
1190
1216
  multiSelector: multiSelector,
1191
- emptyJQuery: emptyJQuery
1217
+ emptyJQuery: emptyJQuery,
1218
+ evalConsoleTemplate: evalConsoleTemplate
1192
1219
  };
1193
1220
  })();
1194
1221
 
1222
+ up.error = up.util.error;
1223
+
1224
+ up.warn = up.util.warn;
1225
+
1226
+ up.debug = up.util.debug;
1227
+
1195
1228
  }).call(this);
1196
1229
 
1197
1230
  /**
@@ -1206,8 +1239,10 @@ we can't currently get rid off.
1206
1239
  */
1207
1240
 
1208
1241
  (function() {
1242
+ var slice = [].slice;
1243
+
1209
1244
  up.browser = (function() {
1210
- var canCssAnimation, canInputEvent, canPushState, ensureConsoleExists, ensureRecentJquery, initialRequestMethod, isSupported, loadPage, popCookie, u, url;
1245
+ var canCssAnimation, canInputEvent, canLogSubstitution, canPushState, initialRequestMethod, isIE8OrWorse, isIE9OrWorse, isRecentJQuery, isSupported, loadPage, popCookie, puts, u, url;
1211
1246
  u = up.util;
1212
1247
  loadPage = function(url, options) {
1213
1248
  var $form, csrfParam, csrfToken, metadataInput, method, target;
@@ -1235,24 +1270,39 @@ we can't currently get rid off.
1235
1270
  return error("Can't fake a " + (method.toUpperCase()) + " request without Rails UJS");
1236
1271
  }
1237
1272
  };
1273
+
1274
+ /**
1275
+ Makes native `console.log`, `console.error`, etc. functions safer in multiple ways:
1276
+
1277
+ - Falls back to `console.log` if the output stream is not implemented
1278
+ - Prints substitution strings (e.g. `console.log("From %o to %o", "a", "b")`) as a single
1279
+ string if the browser console does not support substitution strings.
1280
+
1281
+ @method up.browser.puts
1282
+ @protected
1283
+ */
1284
+ puts = function() {
1285
+ var args, message, stream;
1286
+ stream = arguments[0], args = 2 <= arguments.length ? slice.call(arguments, 1) : [];
1287
+ u.isDefined(console[stream]) || (stream = 'log');
1288
+ if (canLogSubstitution()) {
1289
+ return console[stream].apply(console, args);
1290
+ } else {
1291
+ message = u.evalConsoleTemplate.apply(u, args);
1292
+ return console[stream](message);
1293
+ }
1294
+ };
1238
1295
  url = function() {
1239
1296
  return location.href;
1240
1297
  };
1241
- ensureConsoleExists = function() {
1242
- var base, base1, base2, base3, base4, base5, base6, base7, noop;
1243
- window.console || (window.console = {});
1244
- noop = function() {};
1245
- (base = window.console).log || (base.log = noop);
1246
- (base1 = window.console).info || (base1.info = noop);
1247
- (base2 = window.console).error || (base2.error = noop);
1248
- (base3 = window.console).debug || (base3.debug = noop);
1249
- (base4 = window.console).warn || (base4.warn = noop);
1250
- (base5 = window.console).group || (base5.group = noop);
1251
- (base6 = window.console).groupCollapsed || (base6.groupCollapsed = noop);
1252
- return (base7 = window.console).groupEnd || (base7.groupEnd = noop);
1253
- };
1254
1298
  canPushState = u.memoize(function() {
1255
- return u.isDefined(history.pushState) && initialRequestMethod === 'get';
1299
+ return u.isDefined(history.pushState) && initialRequestMethod() === 'get';
1300
+ });
1301
+ isIE8OrWorse = u.memoize(function() {
1302
+ return u.isUndefined(document.addEventListener);
1303
+ });
1304
+ isIE9OrWorse = u.memoize(function() {
1305
+ return isIE8OrWorse() || navigator.appVersion.indexOf('MSIE 9.') !== -1;
1256
1306
  });
1257
1307
  canCssAnimation = u.memoize(function() {
1258
1308
  return 'transition' in document.documentElement.style;
@@ -1260,15 +1310,17 @@ we can't currently get rid off.
1260
1310
  canInputEvent = u.memoize(function() {
1261
1311
  return 'oninput' in document.createElement('input');
1262
1312
  });
1263
- ensureRecentJquery = function() {
1264
- var compatible, major, minor, parts, version;
1313
+ canLogSubstitution = u.memoize(function() {
1314
+ return !isIE9OrWorse();
1315
+ });
1316
+ isRecentJQuery = u.memoize(function() {
1317
+ var major, minor, parts, version;
1265
1318
  version = $.fn.jquery;
1266
1319
  parts = version.split('.');
1267
1320
  major = parseInt(parts[0]);
1268
1321
  minor = parseInt(parts[1]);
1269
- compatible = major >= 2 || (major === 1 && minor >= 9);
1270
- return compatible || u.error("jQuery %o found, but Up.js requires 1.9+", version);
1271
- };
1322
+ return major >= 2 || (major === 1 && minor >= 9);
1323
+ });
1272
1324
  popCookie = function(name) {
1273
1325
  var ref, value;
1274
1326
  value = (ref = document.cookie.match(new RegExp(name + "=(\\w+)"))) != null ? ref[1] : void 0;
@@ -1277,19 +1329,21 @@ we can't currently get rid off.
1277
1329
  }
1278
1330
  return value;
1279
1331
  };
1280
- initialRequestMethod = (popCookie('_up_request_method') || 'get').toLowerCase();
1281
- isSupported = u.memoize(function() {
1282
- return u.isDefined(document.addEventListener);
1332
+ initialRequestMethod = u.memoize(function() {
1333
+ return (popCookie('_up_request_method') || 'get').toLowerCase();
1283
1334
  });
1335
+ isSupported = function() {
1336
+ return (!isIE8OrWorse()) && isRecentJQuery();
1337
+ };
1284
1338
  return {
1285
1339
  url: url,
1286
- ensureConsoleExists: ensureConsoleExists,
1287
1340
  loadPage: loadPage,
1288
1341
  canPushState: canPushState,
1289
1342
  canCssAnimation: canCssAnimation,
1290
1343
  canInputEvent: canInputEvent,
1344
+ canLogSubstitution: canLogSubstitution,
1291
1345
  isSupported: isSupported,
1292
- ensureRecentJquery: ensureRecentJquery
1346
+ puts: puts
1293
1347
  };
1294
1348
  })();
1295
1349
 
@@ -2058,7 +2112,6 @@ We need to work on this page:
2058
2112
  @method [up-back]
2059
2113
  */
2060
2114
  up.compiler('[up-back]', function($link) {
2061
- console.log("up-back", $link, previousUrl);
2062
2115
  if (u.isPresent(previousUrl)) {
2063
2116
  u.setMissingAttrs($link, {
2064
2117
  'up-href': previousUrl,
@@ -2940,9 +2993,11 @@ We need to work on this page:
2940
2993
  The delay before the animation starts. See [`up.animate`](/up.motion#up.animate).
2941
2994
  @param {String} [options.easing]
2942
2995
  The timing function that controls the animation's acceleration. [`up.animate`](/up.motion#up.animate).
2996
+ @return {Deferred}
2997
+ A promise for the destroying animation's end
2943
2998
  */
2944
2999
  destroy = function(selectorOrElement, options) {
2945
- var $element, animateOptions, animationPromise;
3000
+ var $element, animateOptions, animationDeferred;
2946
3001
  $element = $(selectorOrElement);
2947
3002
  options = u.options(options, {
2948
3003
  animation: 'none'
@@ -2956,11 +3011,11 @@ We need to work on this page:
2956
3011
  document.title = options.title;
2957
3012
  }
2958
3013
  up.bus.emit('fragment:destroy', $element);
2959
- animationPromise = u.presence(options.animation, u.isPromise) || up.motion.animate($element, options.animation, animateOptions);
2960
- animationPromise.then(function() {
3014
+ animationDeferred = u.presence(options.animation, u.isDeferred) || up.motion.animate($element, options.animation, animateOptions);
3015
+ animationDeferred.then(function() {
2961
3016
  return $element.remove();
2962
3017
  });
2963
- return animationPromise;
3018
+ return animationDeferred;
2964
3019
  };
2965
3020
 
2966
3021
  /**
@@ -3312,11 +3367,11 @@ We need to work on this page:
3312
3367
  */
3313
3368
  morph = function(source, target, transitionOrName, options) {
3314
3369
  var $new, $old, animation, parsedOptions, parts, transition;
3370
+ $old = $(source);
3371
+ $new = $(target);
3315
3372
  if (up.browser.canCssAnimation()) {
3316
3373
  parsedOptions = u.only(options, 'reveal');
3317
3374
  parsedOptions = u.extend(parsedOptions, animateOptions(options));
3318
- $old = $(source);
3319
- $new = $(target);
3320
3375
  finish($old);
3321
3376
  finish($new);
3322
3377
  if (transitionOrName === 'none' || transitionOrName === false || (animation = animations[transitionOrName])) {
@@ -3341,6 +3396,7 @@ We need to work on this page:
3341
3396
  return u.error("Unknown transition %o", transitionOrName);
3342
3397
  }
3343
3398
  } else {
3399
+ $old.hide();
3344
3400
  return u.resolvedDeferred();
3345
3401
  }
3346
3402
  };
@@ -3901,6 +3957,7 @@ You can change (or remove) this delay like this:
3901
3957
  };
3902
3958
  load = function(request) {
3903
3959
  var promise;
3960
+ u.debug('Loading URL %o', request.url);
3904
3961
  up.bus.emit('proxy:load', request);
3905
3962
  promise = u.ajax(request);
3906
3963
  promise.always(function() {
@@ -3976,7 +4033,6 @@ You can change (or remove) this delay like this:
3976
4033
  preload: preload,
3977
4034
  ajax: ajax,
3978
4035
  get: get,
3979
- set: set,
3980
4036
  alias: alias,
3981
4037
  clear: clear,
3982
4038
  remove: remove,
@@ -5359,7 +5415,7 @@ For small popup overlays ("dropdowns") see [up.popup](/up.popup) instead.
5359
5415
  See options for [`up.animate`](/up.motion#up.animate)
5360
5416
  */
5361
5417
  close = function(options) {
5362
- var $modal, promise;
5418
+ var $modal, deferred;
5363
5419
  $modal = $('.up-modal');
5364
5420
  if ($modal.length) {
5365
5421
  options = u.options(options, {
@@ -5369,17 +5425,17 @@ For small popup overlays ("dropdowns") see [up.popup](/up.popup) instead.
5369
5425
  });
5370
5426
  currentSource = void 0;
5371
5427
  up.bus.emit('modal:close');
5372
- promise = up.destroy($modal, options);
5373
- promise.then(function() {
5428
+ deferred = up.destroy($modal, options);
5429
+ deferred.then(function() {
5374
5430
  var unshifter;
5375
5431
  while (unshifter = unshiftElements.pop()) {
5376
5432
  unshifter();
5377
5433
  }
5378
5434
  return up.bus.emit('modal:closed');
5379
5435
  });
5380
- return promise;
5436
+ return deferred;
5381
5437
  } else {
5382
- return u.resolvedPromise();
5438
+ return u.resolvedDeferred();
5383
5439
  }
5384
5440
  };
5385
5441
  autoclose = function() {
@@ -5957,14 +6013,15 @@ TODO: Write some documentation
5957
6013
 
5958
6014
  }).call(this);
5959
6015
  (function() {
5960
- up.browser.ensureRecentJquery();
5961
-
5962
6016
  if (up.browser.isSupported()) {
5963
- up.browser.ensureConsoleExists();
5964
6017
  up.bus.emit('framework:ready');
5965
6018
  $(document).on('ready', function() {
5966
6019
  return up.bus.emit('app:ready');
5967
6020
  });
5968
6021
  }
5969
6022
 
6023
+ }).call(this);
6024
+ (function() {
6025
+
6026
+
5970
6027
  }).call(this);