├── .gitignore
├── LICENSE
├── README.md
├── index.js
├── package.json
├── src
├── AsyncES.js
├── TinyES.js
├── iPromise.js
└── utils.js
├── test
├── iPromiseSpec.html
├── iPromiseSpec.js
├── utilsSpec.html
└── utilsSpec.js
└── theory
├── NPO
├── .npo.js.swp
└── npo.js
├── PromisesA+
└── 规范翻译.md
├── PromisesA
├── promise-6.0.0-browser.js
├── promise-6.0.0.js
├── promise-done-6.0.0.js
└── test.html
├── jQuery.deferred
├── 1.5
│ ├── ajax.js
│ ├── ajax.note.js
│ ├── jQuery.deferred.js
│ ├── jQuery.deferred.note.js
│ └── readme.md
├── 1.6
│ ├── jquery-1.6.0
│ │ ├── .gitattributes
│ │ ├── .gitignore
│ │ ├── .gitmodules
│ │ ├── GPL-LICENSE.txt
│ │ ├── MIT-LICENSE.txt
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── build
│ │ │ ├── jslint-check.js
│ │ │ ├── lib
│ │ │ │ ├── jslint.js
│ │ │ │ ├── parse-js.js
│ │ │ │ ├── process.js
│ │ │ │ └── squeeze-more.js
│ │ │ ├── post-compile.js
│ │ │ ├── release-notes.js
│ │ │ ├── release-notes.txt
│ │ │ ├── release.js
│ │ │ └── uglify.js
│ │ ├── component.json
│ │ ├── jquery.js
│ │ ├── speed
│ │ │ ├── benchmark.js
│ │ │ ├── benchmarker.css
│ │ │ ├── benchmarker.js
│ │ │ ├── closest.html
│ │ │ ├── css.html
│ │ │ ├── event.html
│ │ │ ├── filter.html
│ │ │ ├── find.html
│ │ │ ├── index.html
│ │ │ ├── jquery-basis.js
│ │ │ └── slice.vs.concat.html
│ │ ├── src
│ │ │ ├── ajax.js
│ │ │ ├── ajax
│ │ │ │ ├── jsonp.js
│ │ │ │ ├── script.js
│ │ │ │ └── xhr.js
│ │ │ ├── attributes.js
│ │ │ ├── core.js
│ │ │ ├── css.js
│ │ │ ├── data.js
│ │ │ ├── deferred.js
│ │ │ ├── dimensions.js
│ │ │ ├── effects.js
│ │ │ ├── event.js
│ │ │ ├── intro.js
│ │ │ ├── manipulation.js
│ │ │ ├── offset.js
│ │ │ ├── outro.js
│ │ │ ├── queue.js
│ │ │ ├── sizzle-jquery.js
│ │ │ ├── support.js
│ │ │ └── traversing.js
│ │ ├── test
│ │ │ ├── csp.php
│ │ │ ├── data
│ │ │ │ ├── atom+xml.php
│ │ │ │ ├── badjson.js
│ │ │ │ ├── dashboard.xml
│ │ │ │ ├── echoData.php
│ │ │ │ ├── echoQuery.php
│ │ │ │ ├── errorWithText.php
│ │ │ │ ├── etag.php
│ │ │ │ ├── headers.php
│ │ │ │ ├── if_modified_since.php
│ │ │ │ ├── iframe.html
│ │ │ │ ├── json.php
│ │ │ │ ├── json_obj.js
│ │ │ │ ├── jsonp.php
│ │ │ │ ├── name.html
│ │ │ │ ├── name.php
│ │ │ │ ├── offset
│ │ │ │ │ ├── absolute.html
│ │ │ │ │ ├── body.html
│ │ │ │ │ ├── fixed.html
│ │ │ │ │ ├── relative.html
│ │ │ │ │ ├── scroll.html
│ │ │ │ │ ├── static.html
│ │ │ │ │ └── table.html
│ │ │ │ ├── params_html.php
│ │ │ │ ├── readywaitasset.js
│ │ │ │ ├── readywaitloader.js
│ │ │ │ ├── script.php
│ │ │ │ ├── test.html
│ │ │ │ ├── test.js
│ │ │ │ ├── test.php
│ │ │ │ ├── test2.html
│ │ │ │ ├── test3.html
│ │ │ │ ├── testinit.js
│ │ │ │ ├── testrunner.js
│ │ │ │ ├── testsuite.css
│ │ │ │ ├── text.php
│ │ │ │ ├── ua.txt
│ │ │ │ ├── with_fries.xml
│ │ │ │ └── with_fries_over_jsonp.php
│ │ │ ├── delegatetest.html
│ │ │ ├── index.html
│ │ │ ├── localfile.html
│ │ │ ├── networkerror.html
│ │ │ ├── polluted.php
│ │ │ ├── readywait.html
│ │ │ ├── unit
│ │ │ │ ├── ajax.js
│ │ │ │ ├── attributes.js
│ │ │ │ ├── core.js
│ │ │ │ ├── css.js
│ │ │ │ ├── data.js
│ │ │ │ ├── deferred.js
│ │ │ │ ├── dimensions.js
│ │ │ │ ├── effects.js
│ │ │ │ ├── event.js
│ │ │ │ ├── manipulation.js
│ │ │ │ ├── offset.js
│ │ │ │ ├── queue.js
│ │ │ │ └── traversing.js
│ │ │ └── xhtml.php
│ │ └── version.txt
│ └── notes
│ │ └── deferred.js
├── 1.7
│ ├── jquery-1.7.0
│ │ ├── .gitattributes
│ │ ├── .gitignore
│ │ ├── .gitmodules
│ │ ├── GPL-LICENSE.txt
│ │ ├── MIT-LICENSE.txt
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── build
│ │ │ ├── freq.js
│ │ │ ├── jslint-check.js
│ │ │ ├── lib
│ │ │ │ ├── jslint.js
│ │ │ │ ├── parse-js.js
│ │ │ │ ├── process.js
│ │ │ │ └── squeeze-more.js
│ │ │ ├── post-compile.js
│ │ │ ├── release-notes.js
│ │ │ ├── release-notes.txt
│ │ │ ├── release.js
│ │ │ ├── sizer.js
│ │ │ └── uglify.js
│ │ ├── component.json
│ │ ├── jquery.js
│ │ ├── speed
│ │ │ ├── benchmark.js
│ │ │ ├── benchmarker.css
│ │ │ ├── benchmarker.js
│ │ │ ├── closest.html
│ │ │ ├── css.html
│ │ │ ├── event.html
│ │ │ ├── filter.html
│ │ │ ├── find.html
│ │ │ ├── index.html
│ │ │ ├── jquery-basis.js
│ │ │ └── slice.vs.concat.html
│ │ ├── src
│ │ │ ├── ajax.js
│ │ │ ├── ajax
│ │ │ │ ├── jsonp.js
│ │ │ │ ├── script.js
│ │ │ │ └── xhr.js
│ │ │ ├── attributes.js
│ │ │ ├── callbacks.js
│ │ │ ├── core.js
│ │ │ ├── css.js
│ │ │ ├── data.js
│ │ │ ├── deferred.js
│ │ │ ├── dimensions.js
│ │ │ ├── effects.js
│ │ │ ├── event.js
│ │ │ ├── intro.js
│ │ │ ├── manipulation.js
│ │ │ ├── offset.js
│ │ │ ├── outro.js
│ │ │ ├── queue.js
│ │ │ ├── sizzle-jquery.js
│ │ │ ├── support.js
│ │ │ └── traversing.js
│ │ ├── test
│ │ │ ├── csp.php
│ │ │ ├── data
│ │ │ │ ├── atom+xml.php
│ │ │ │ ├── badjson.js
│ │ │ │ ├── dashboard.xml
│ │ │ │ ├── echoData.php
│ │ │ │ ├── echoQuery.php
│ │ │ │ ├── errorWithText.php
│ │ │ │ ├── etag.php
│ │ │ │ ├── headers.php
│ │ │ │ ├── if_modified_since.php
│ │ │ │ ├── iframe.html
│ │ │ │ ├── json.php
│ │ │ │ ├── json_obj.js
│ │ │ │ ├── jsonp.php
│ │ │ │ ├── name.html
│ │ │ │ ├── name.php
│ │ │ │ ├── offset
│ │ │ │ │ ├── absolute.html
│ │ │ │ │ ├── body.html
│ │ │ │ │ ├── fixed.html
│ │ │ │ │ ├── relative.html
│ │ │ │ │ ├── scroll.html
│ │ │ │ │ ├── static.html
│ │ │ │ │ └── table.html
│ │ │ │ ├── params_html.php
│ │ │ │ ├── readywaitasset.js
│ │ │ │ ├── readywaitloader.js
│ │ │ │ ├── script.php
│ │ │ │ ├── selector
│ │ │ │ │ ├── html5_selector.html
│ │ │ │ │ └── sizzle_cache.html
│ │ │ │ ├── statusText.php
│ │ │ │ ├── support
│ │ │ │ │ ├── bodyBackground.html
│ │ │ │ │ ├── boxModelIE.html
│ │ │ │ │ ├── hiddenIFrameFF.html
│ │ │ │ │ └── testElementCrash.html
│ │ │ │ ├── test.html
│ │ │ │ ├── test.js
│ │ │ │ ├── test.php
│ │ │ │ ├── test2.html
│ │ │ │ ├── test3.html
│ │ │ │ ├── testinit.js
│ │ │ │ ├── testrunner.js
│ │ │ │ ├── testsuite.css
│ │ │ │ ├── text.php
│ │ │ │ ├── ua.txt
│ │ │ │ ├── versioncheck.js
│ │ │ │ ├── with_fries.xml
│ │ │ │ └── with_fries_over_jsonp.php
│ │ │ ├── delegatetest.html
│ │ │ ├── hovertest.html
│ │ │ ├── index.html
│ │ │ ├── localfile.html
│ │ │ ├── networkerror.html
│ │ │ ├── polluted.php
│ │ │ ├── readywait.html
│ │ │ ├── unit
│ │ │ │ ├── ajax.js
│ │ │ │ ├── attributes.js
│ │ │ │ ├── callbacks.js
│ │ │ │ ├── core.js
│ │ │ │ ├── css.js
│ │ │ │ ├── data.js
│ │ │ │ ├── deferred.js
│ │ │ │ ├── dimensions.js
│ │ │ │ ├── effects.js
│ │ │ │ ├── event.js
│ │ │ │ ├── manipulation.js
│ │ │ │ ├── offset.js
│ │ │ │ ├── queue.js
│ │ │ │ ├── selector.js
│ │ │ │ ├── support.js
│ │ │ │ └── traversing.js
│ │ │ └── xhtml.php
│ │ └── version.txt
│ └── notes
│ │ ├── callbacks.js
│ │ └── deferred.js
├── 1.8
│ └── jquery-1.8.0
│ │ ├── .editorconfig
│ │ ├── .gitattributes
│ │ ├── .gitignore
│ │ ├── .gitmodules
│ │ ├── .jshintrc
│ │ ├── AUTHORS.txt
│ │ ├── MIT-LICENSE.txt
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── build
│ │ ├── release-notes.js
│ │ ├── release-notes.txt
│ │ └── release.js
│ │ ├── component.json
│ │ ├── grunt.js
│ │ ├── jquery.js
│ │ ├── package.json
│ │ ├── speed
│ │ ├── benchmark.js
│ │ ├── benchmarker.css
│ │ ├── benchmarker.js
│ │ ├── closest.html
│ │ ├── css.html
│ │ ├── event.html
│ │ ├── filter.html
│ │ ├── find.html
│ │ ├── index.html
│ │ ├── jquery-basis.js
│ │ └── slice.vs.concat.html
│ │ ├── src
│ │ ├── .jshintrc
│ │ ├── ajax.js
│ │ ├── ajax
│ │ │ ├── jsonp.js
│ │ │ ├── script.js
│ │ │ └── xhr.js
│ │ ├── attributes.js
│ │ ├── callbacks.js
│ │ ├── core.js
│ │ ├── css.js
│ │ ├── data.js
│ │ ├── deferred.js
│ │ ├── deprecated.js
│ │ ├── dimensions.js
│ │ ├── effects.js
│ │ ├── event.js
│ │ ├── exports.js
│ │ ├── intro.js
│ │ ├── manipulation.js
│ │ ├── offset.js
│ │ ├── outro.js
│ │ ├── queue.js
│ │ ├── serialize.js
│ │ ├── sizzle-jquery.js
│ │ ├── support.js
│ │ └── traversing.js
│ │ └── test
│ │ ├── .jshintrc
│ │ ├── csp.php
│ │ ├── data
│ │ ├── 1x1.jpg
│ │ ├── atom+xml.php
│ │ ├── badcall.js
│ │ ├── badjson.js
│ │ ├── cleanScript.html
│ │ ├── dashboard.xml
│ │ ├── dimensions
│ │ │ ├── documentLarge.html
│ │ │ └── documentSmall.html
│ │ ├── echoData.php
│ │ ├── echoQuery.php
│ │ ├── errorWithText.php
│ │ ├── etag.php
│ │ ├── evalScript.php
│ │ ├── event
│ │ │ ├── asyncReady.html
│ │ │ ├── longLoad.php
│ │ │ ├── longLoadScript.php
│ │ │ ├── promiseReady.html
│ │ │ ├── syncReady.html
│ │ │ └── syncReadyLongLoad.html
│ │ ├── headers.php
│ │ ├── if_modified_since.php
│ │ ├── iframe.html
│ │ ├── json.php
│ │ ├── json_obj.js
│ │ ├── jsonp.php
│ │ ├── name.html
│ │ ├── name.php
│ │ ├── offset
│ │ │ ├── absolute.html
│ │ │ ├── body.html
│ │ │ ├── fixed.html
│ │ │ ├── relative.html
│ │ │ ├── scroll.html
│ │ │ ├── static.html
│ │ │ └── table.html
│ │ ├── params_html.php
│ │ ├── readywaitasset.js
│ │ ├── readywaitloader.js
│ │ ├── script.php
│ │ ├── selector
│ │ │ ├── html5_selector.html
│ │ │ └── sizzle_cache.html
│ │ ├── statusText.php
│ │ ├── support
│ │ │ ├── bodyBackground.html
│ │ │ └── testElementCrash.html
│ │ ├── test.html
│ │ ├── test.js
│ │ ├── test.php
│ │ ├── test2.html
│ │ ├── test3.html
│ │ ├── testinit.js
│ │ ├── testrunner.js
│ │ ├── testsuite.css
│ │ ├── text.php
│ │ ├── ua.txt
│ │ ├── with_fries.xml
│ │ └── with_fries_over_jsonp.php
│ │ ├── delegatetest.html
│ │ ├── hovertest.html
│ │ ├── index.html
│ │ ├── localfile.html
│ │ ├── networkerror.html
│ │ ├── polluted.php
│ │ ├── readywait.html
│ │ ├── unit
│ │ ├── ajax.js
│ │ ├── attributes.js
│ │ ├── callbacks.js
│ │ ├── core.js
│ │ ├── css.js
│ │ ├── data.js
│ │ ├── deferred.js
│ │ ├── deprecated.js
│ │ ├── dimensions.js
│ │ ├── effects.js
│ │ ├── event.js
│ │ ├── exports.js
│ │ ├── manipulation.js
│ │ ├── offset.js
│ │ ├── queue.js
│ │ ├── selector.js
│ │ ├── serialize.js
│ │ ├── support.js
│ │ └── traversing.js
│ │ └── xhtml.php
├── 1.9
│ └── jquery-1.9-stable
│ │ ├── .editorconfig
│ │ ├── .gitattributes
│ │ ├── .gitignore
│ │ ├── .gitmodules
│ │ ├── .jshintrc
│ │ ├── AUTHORS.txt
│ │ ├── CONTRIBUTING.md
│ │ ├── Gruntfile.js
│ │ ├── MIT-LICENSE.txt
│ │ ├── README.md
│ │ ├── build
│ │ ├── release-notes.js
│ │ └── release.js
│ │ ├── package.json
│ │ ├── speed
│ │ ├── benchmark.js
│ │ ├── benchmarker.css
│ │ ├── benchmarker.js
│ │ ├── closest.html
│ │ ├── css.html
│ │ ├── event.html
│ │ ├── filter.html
│ │ ├── find.html
│ │ ├── index.html
│ │ ├── jquery-basis.js
│ │ └── slice.vs.concat.html
│ │ ├── src
│ │ ├── .jshintrc
│ │ ├── ajax.js
│ │ ├── ajax
│ │ │ ├── jsonp.js
│ │ │ ├── script.js
│ │ │ └── xhr.js
│ │ ├── attributes.js
│ │ ├── callbacks.js
│ │ ├── core.js
│ │ ├── css.js
│ │ ├── data.js
│ │ ├── deferred.js
│ │ ├── deprecated.js
│ │ ├── dimensions.js
│ │ ├── effects.js
│ │ ├── event-alias.js
│ │ ├── event.js
│ │ ├── exports.js
│ │ ├── intro.js
│ │ ├── manipulation.js
│ │ ├── offset.js
│ │ ├── outro.js
│ │ ├── queue.js
│ │ ├── serialize.js
│ │ ├── sizzle-jquery.js
│ │ ├── support.js
│ │ └── traversing.js
│ │ └── test
│ │ ├── .jshintignore
│ │ ├── .jshintrc
│ │ ├── data
│ │ ├── 1x1.jpg
│ │ ├── ajax
│ │ │ └── unreleasedXHR.html
│ │ ├── atom+xml.php
│ │ ├── badcall.js
│ │ ├── badjson.js
│ │ ├── cleanScript.html
│ │ ├── core
│ │ │ └── cc_on.html
│ │ ├── dashboard.xml
│ │ ├── dimensions
│ │ │ ├── documentLarge.html
│ │ │ └── documentSmall.html
│ │ ├── echoData.php
│ │ ├── echoQuery.php
│ │ ├── errorWithJSON.php
│ │ ├── errorWithText.php
│ │ ├── etag.php
│ │ ├── evalScript.php
│ │ ├── event
│ │ │ ├── longLoadScript.php
│ │ │ ├── promiseReady.html
│ │ │ └── syncReady.html
│ │ ├── headers.php
│ │ ├── if_modified_since.php
│ │ ├── iframe.html
│ │ ├── jquery-1.8.2.ajax_xhr.min.js
│ │ ├── json.php
│ │ ├── json_obj.js
│ │ ├── jsonp.php
│ │ ├── manipulation
│ │ │ └── iframe-denied.html
│ │ ├── name.html
│ │ ├── name.php
│ │ ├── nocontent.php
│ │ ├── offset
│ │ │ ├── absolute.html
│ │ │ ├── body.html
│ │ │ ├── fixed.html
│ │ │ ├── relative.html
│ │ │ ├── scroll.html
│ │ │ ├── static.html
│ │ │ └── table.html
│ │ ├── params_html.php
│ │ ├── readywaitasset.js
│ │ ├── readywaitloader.js
│ │ ├── script.php
│ │ ├── selector
│ │ │ ├── html5_selector.html
│ │ │ └── sizzle_cache.html
│ │ ├── statusText.php
│ │ ├── support
│ │ │ ├── bodyBackground.html
│ │ │ ├── csp.js
│ │ │ ├── csp.php
│ │ │ ├── shrinkWrapBlocks.html
│ │ │ └── testElementCrash.html
│ │ ├── test.html
│ │ ├── test.js
│ │ ├── test.php
│ │ ├── test2.html
│ │ ├── test3.html
│ │ ├── testinit.js
│ │ ├── testrunner.js
│ │ ├── testsuite.css
│ │ ├── text.php
│ │ ├── ua.txt
│ │ ├── with_fries.xml
│ │ └── with_fries_over_jsonp.php
│ │ ├── delegatetest.html
│ │ ├── hovertest.html
│ │ ├── index.html
│ │ ├── jquery.js
│ │ ├── localfile.html
│ │ ├── networkerror.html
│ │ ├── readywait.html
│ │ ├── unit
│ │ ├── ajax.js
│ │ ├── attributes.js
│ │ ├── callbacks.js
│ │ ├── core.js
│ │ ├── css.js
│ │ ├── data.js
│ │ ├── deferred.js
│ │ ├── deprecated.js
│ │ ├── dimensions.js
│ │ ├── effects.js
│ │ ├── event.js
│ │ ├── exports.js
│ │ ├── manipulation.js
│ │ ├── offset.js
│ │ ├── queue.js
│ │ ├── selector.js
│ │ ├── serialize.js
│ │ ├── support.js
│ │ └── traversing.js
│ │ └── xhtml.php
└── 2.1
│ └── jquery-2.1-stable
│ ├── .bowerrc
│ ├── .editorconfig
│ ├── .gitattributes
│ ├── .gitignore
│ ├── .jscsrc
│ ├── .jshintignore
│ ├── .jshintrc
│ ├── .mailmap
│ ├── .npmignore
│ ├── .travis.yml
│ ├── AUTHORS.txt
│ ├── CONTRIBUTING.md
│ ├── Gruntfile.js
│ ├── MIT-LICENSE.txt
│ ├── README.md
│ ├── bower.json
│ ├── build
│ ├── ensure-sizzle.js
│ ├── release-notes.js
│ ├── release.js
│ └── tasks
│ │ ├── build.js
│ │ ├── dist.js
│ │ └── testswarm.js
│ ├── package.json
│ ├── src
│ ├── .jshintrc
│ ├── ajax.js
│ ├── ajax
│ │ ├── jsonp.js
│ │ ├── load.js
│ │ ├── parseJSON.js
│ │ ├── parseXML.js
│ │ ├── script.js
│ │ ├── var
│ │ │ ├── nonce.js
│ │ │ └── rquery.js
│ │ └── xhr.js
│ ├── attributes.js
│ ├── attributes
│ │ ├── attr.js
│ │ ├── classes.js
│ │ ├── prop.js
│ │ ├── support.js
│ │ └── val.js
│ ├── callbacks.js
│ ├── core.js
│ ├── core
│ │ ├── access.js
│ │ ├── init.js
│ │ ├── parseHTML.js
│ │ ├── ready.js
│ │ └── var
│ │ │ └── rsingleTag.js
│ ├── css.js
│ ├── css
│ │ ├── addGetHookIf.js
│ │ ├── curCSS.js
│ │ ├── defaultDisplay.js
│ │ ├── hiddenVisibleSelectors.js
│ │ ├── support.js
│ │ ├── swap.js
│ │ └── var
│ │ │ ├── cssExpand.js
│ │ │ ├── getStyles.js
│ │ │ ├── isHidden.js
│ │ │ ├── rmargin.js
│ │ │ └── rnumnonpx.js
│ ├── data.js
│ ├── data
│ │ ├── Data.js
│ │ ├── accepts.js
│ │ └── var
│ │ │ ├── data_priv.js
│ │ │ └── data_user.js
│ ├── deferred.js
│ ├── deprecated.js
│ ├── dimensions.js
│ ├── effects.js
│ ├── effects
│ │ ├── Tween.js
│ │ └── animatedSelector.js
│ ├── event.js
│ ├── event
│ │ ├── ajax.js
│ │ ├── alias.js
│ │ └── support.js
│ ├── exports
│ │ ├── amd.js
│ │ └── global.js
│ ├── intro.js
│ ├── jquery.js
│ ├── manipulation.js
│ ├── manipulation
│ │ ├── _evalUrl.js
│ │ ├── support.js
│ │ └── var
│ │ │ └── rcheckableType.js
│ ├── offset.js
│ ├── outro.js
│ ├── queue.js
│ ├── queue
│ │ └── delay.js
│ ├── selector-native.js
│ ├── selector-sizzle.js
│ ├── selector.js
│ ├── serialize.js
│ ├── sizzle
│ │ ├── dist
│ │ │ ├── sizzle.js
│ │ │ ├── sizzle.min.js
│ │ │ └── sizzle.min.map
│ │ └── test
│ │ │ ├── data
│ │ │ ├── empty.js
│ │ │ ├── mixed_sort.html
│ │ │ └── testinit.js
│ │ │ ├── index.html
│ │ │ ├── jquery.js
│ │ │ └── unit
│ │ │ ├── extending.js
│ │ │ ├── selector.js
│ │ │ └── utilities.js
│ ├── traversing.js
│ ├── traversing
│ │ ├── findFilter.js
│ │ └── var
│ │ │ └── rneedsContext.js
│ ├── var
│ │ ├── arr.js
│ │ ├── class2type.js
│ │ ├── concat.js
│ │ ├── hasOwn.js
│ │ ├── indexOf.js
│ │ ├── pnum.js
│ │ ├── push.js
│ │ ├── rnotwhite.js
│ │ ├── slice.js
│ │ ├── strundefined.js
│ │ ├── support.js
│ │ └── toString.js
│ └── wrap.js
│ └── test
│ ├── .jshintrc
│ ├── data
│ ├── 1x1.jpg
│ ├── ajax
│ │ ├── onunload.html
│ │ └── unreleasedXHR.html
│ ├── atom+xml.php
│ ├── badcall.js
│ ├── badjson.js
│ ├── cleanScript.html
│ ├── core
│ │ ├── aliased.html
│ │ ├── cc_on.html
│ │ ├── dont_return.php
│ │ ├── dynamic_ready.html
│ │ └── onready.html
│ ├── css
│ │ └── cssWidthBeforeDocReady.html
│ ├── dashboard.xml
│ ├── data
│ │ └── dataAttrs.html
│ ├── dimensions
│ │ └── documentLarge.html
│ ├── echoData.php
│ ├── echoQuery.php
│ ├── errorWithJSON.php
│ ├── errorWithText.php
│ ├── etag.php
│ ├── evalScript.php
│ ├── event
│ │ ├── focusElem.html
│ │ ├── focusinCrossFrame.html
│ │ ├── longLoadScript.php
│ │ ├── onbeforeunload.html
│ │ ├── promiseReady.html
│ │ ├── syncReady.html
│ │ └── triggerunload.html
│ ├── headers.php
│ ├── if_modified_since.php
│ ├── iframe.html
│ ├── jquery-1.9.1.js
│ ├── json.php
│ ├── json_obj.js
│ ├── jsonp.php
│ ├── manipulation
│ │ └── iframe-denied.html
│ ├── name.html
│ ├── name.php
│ ├── nocontent.php
│ ├── offset
│ │ ├── absolute.html
│ │ ├── body.html
│ │ ├── fixed.html
│ │ ├── relative.html
│ │ ├── scroll.html
│ │ ├── static.html
│ │ └── table.html
│ ├── params_html.php
│ ├── readywaitasset.js
│ ├── readywaitloader.js
│ ├── script.php
│ ├── selector
│ │ ├── html5_selector.html
│ │ └── sizzle_cache.html
│ ├── statusText.php
│ ├── support
│ │ ├── bodyBackground.html
│ │ ├── csp-clean.php
│ │ ├── csp-log.php
│ │ ├── csp.js
│ │ ├── csp.log
│ │ ├── csp.php
│ │ └── getComputedSupport.js
│ ├── test.html
│ ├── test.php
│ ├── test2.html
│ ├── test3.html
│ ├── testbar.php
│ ├── testinit.js
│ ├── testrunner.js
│ ├── testsuite.css
│ ├── text.php
│ ├── ua.txt
│ ├── with_fries.xml
│ └── with_fries_over_jsonp.php
│ ├── delegatetest.html
│ ├── hovertest.html
│ ├── index.html
│ ├── jquery.js
│ ├── libs
│ ├── qunit
│ │ ├── qunit.css
│ │ └── qunit.js
│ ├── require.js
│ └── sinon
│ │ └── fake_timers.js
│ ├── localfile.html
│ ├── networkerror.html
│ ├── readywait.html
│ ├── unit
│ ├── ajax.js
│ ├── attributes.js
│ ├── callbacks.js
│ ├── core.js
│ ├── css.js
│ ├── data.js
│ ├── deferred.js
│ ├── deprecated.js
│ ├── dimensions.js
│ ├── effects.js
│ ├── event.js
│ ├── exports.js
│ ├── manipulation.js
│ ├── offset.js
│ ├── queue.js
│ ├── ready.js
│ ├── selector.js
│ ├── serialize.js
│ ├── support.js
│ ├── traversing.js
│ └── wrap.js
│ └── xhtml.php
├── jsDeffered
├── jsDeferred-notes.js
├── jsDeferred.js
└── test.html
└── mmDeferred
├── deferred.js
├── mmDeferred.js
├── mmDeferred.note.js
└── test.html
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | dist
3 | bin
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 ^_^肥仔John
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./src/iPromise')
2 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "iPromise",
3 | "version": "0.8.3",
4 | "description": "An implementation of Promises/A+",
5 | "directories": {
6 | "test": "test"
7 | },
8 | "scripts": {
9 | "build": "rm -rf bin && mkdir bin && browserify src/iPromise.js -s iPromise -o bin/iPromise.js",
10 | "dist": "rm -rf bin && mkdir dist && uglifyjs bin/iPromise.js -mc > dist/iPromise.min.js"
11 | },
12 | "repository": {
13 | "type": "git",
14 | "url": "https://github.com/fsjohnhuang/iPromise.git"
15 | },
16 | "keywords": [
17 | "Promises/A+",
18 | "deferred"
19 | ],
20 | "author": {
21 | "name": "fsjohnhuang",
22 | "url": "fsjohnhuang.cnblogs.com"
23 | },
24 | "license": "MIT",
25 | "bugs": {
26 | "url": "https://github.com/fsjohnhuang/iPromise/issues"
27 | },
28 | "homepage": "https://github.com/fsjohnhuang/iPromise",
29 | "devDependencies": {
30 | "browserify": "^8.1.1",
31 | "chai": "^1.10.0",
32 | "mocha": "^2.1.0",
33 | "uglify-js": "^2.4.16"
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/AsyncES.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * 异步事件系统
3 | * @author fsjohnhuang
4 | * @version 0.1.0
5 | */
6 | var TinyES = require('./TinyES')
7 | var setImmediate = require('./utils').setImmediate
8 |
9 | var AsyncES = module.exports = function(evtName){
10 | if (!(this instanceof AsyncES)) return new AsyncES(evtName)
11 |
12 | var latch, taskQ = (function(){
13 | var first, last
14 |
15 | return {
16 | push: function(task){
17 | if (!first) first = task
18 | if (last) last.next = task
19 | last = task
20 | },
21 | drain: function(){
22 | while (first){
23 | first()
24 | first = first.next
25 | }
26 | last = null
27 | }
28 | }
29 | }())
30 |
31 | return {create: function(/*Function<>*/getArgsOfTrigger){
32 | var es = new TinyES()
33 | return {
34 | one: function(cb, $this){
35 | es.one(evtName, cb, $this)
36 | },
37 | trigger: function(){
38 | taskQ.push(function(){
39 | es.trigger.apply(es, [evtName].concat(getArgsOfTrigger ? getArgsOfTrigger() : []))
40 | })
41 | if (!latch){
42 | latch = setImmediate(function(){
43 | taskQ.drain()
44 | latch = void 0
45 | })
46 | }
47 | }
48 | }
49 | }}
50 | }
--------------------------------------------------------------------------------
/src/TinyES.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * 迷你事件系统
3 | * @author fsjohnhuang
4 | * @version 0.1.0
5 | */
6 |
7 | var TinyES = module.exports = function(){
8 | var evtQ = {}
9 | var sub = function(evt){
10 | if (!evtQ[evt.name]) evtQ[evt.name] = []
11 | evtQ[evt.name].push(evt)
12 | }
13 |
14 | this.one = function(name, cb, $this){
15 | sub({
16 | name: name,
17 | times: 1,
18 | cb: function(){
19 | cb.apply($this, arguments)
20 | }
21 | })
22 | }
23 | this.trigger = function(name /*, {...*} args*/){
24 | if (!evtQ[name]) return
25 | var resubs = [], evt = evtQ[name].pop()
26 | while (evt){
27 | evt.cb.apply(null, [].slice.call(arguments, 1))
28 | if (evt.times !== +evt.times || --evt.times > 0) resubs.push(evt)
29 | evt = evtQ[name].pop()
30 | }
31 | evtQ[name] = resubs
32 | }
33 | }
--------------------------------------------------------------------------------
/test/iPromiseSpec.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | iPromise Tests
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
20 |
21 |
--------------------------------------------------------------------------------
/test/utilsSpec.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | utils Tests
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
--------------------------------------------------------------------------------
/test/utilsSpec.js:
--------------------------------------------------------------------------------
1 | describe('utils', function(){
2 | var expect
3 | before('initialize chai', function(){
4 | expect = chai.expect
5 | })
6 |
7 | describe('#impls', function() {
8 | var Animal, Bird, Chicken, impls = require('utils').impls
9 | beforeEach(function(){
10 | Animal = function(){}
11 | Bird = function(){}
12 | Chicken = {then: function(){return 1}}
13 | })
14 | it('expect chicken to be an instanceof Bird', function(){
15 | var chicken = impls(Chicken, Bird)
16 | expect(chicken).to.be.an.instanceof(Bird)
17 | })
18 | it('expect Bird to be an instanceof Function', function(){
19 | impls(Chicken, Bird)
20 | expect(Bird).to.be.an.instanceof(Function)
21 | })
22 | it('expect chicken to be an instanceof Animal', function(){
23 | Bird.prototype = new Animal()
24 | var chicken = impls(Chicken, Bird)
25 | expect(chicken).to.be.an.instanceof(Animal)
26 | })
27 | })
28 | })
--------------------------------------------------------------------------------
/theory/NPO/.npo.js.swp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fsjohnhuang/iPromise/b00e331f6e2492733e03e26576e7498c0462d32a/theory/NPO/.npo.js.swp
--------------------------------------------------------------------------------
/theory/PromisesA/promise-done-6.0.0.js:
--------------------------------------------------------------------------------
1 | // should work in any browser without browserify
2 |
3 | if (typeof Promise.prototype.done !== 'function') {
4 | Promise.prototype.done = function (onFulfilled, onRejected) {
5 | var self = arguments.length ? this.then.apply(this, arguments) : this
6 | self.then(null, function (err) {
7 | setTimeout(function () {
8 | throw err
9 | }, 0)
10 | })
11 | }
12 | }
--------------------------------------------------------------------------------
/theory/PromisesA/test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
41 |
42 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.5/readme.md:
--------------------------------------------------------------------------------
1 | ## jQuery v1.5
2 | 代码位置:https://github.com/jquery/jquery/blob/1.5.0/src/core.js#L798
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/.gitattributes:
--------------------------------------------------------------------------------
1 | * eol=lf
2 | *.jar binary
3 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/.gitignore:
--------------------------------------------------------------------------------
1 | src/selector.js
2 | dist
3 | .settings
4 | *~
5 | *.diff
6 | *.patch
7 | /*.html
8 | .DS_Store
9 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "src/sizzle"]
2 | path = src/sizzle
3 | url = git://github.com/jquery/sizzle.git
4 | [submodule "test/qunit"]
5 | path = test/qunit
6 | url = git://github.com/jquery/qunit.git
7 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/MIT-LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2011 John Resig, http://jquery.com/
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/build/jslint-check.js:
--------------------------------------------------------------------------------
1 | var JSLINT = require("./lib/jslint").JSLINT,
2 | print = require("sys").print,
3 | src = require("fs").readFileSync("dist/jquery.js", "utf8");
4 |
5 | JSLINT(src, { evil: true, forin: true, maxerr: 100 });
6 |
7 | // All of the following are known issues that we think are 'ok'
8 | // (in contradiction with JSLint) more information here:
9 | // http://docs.jquery.com/JQuery_Core_Style_Guidelines
10 | var ok = {
11 | "Expected an identifier and instead saw 'undefined' (a reserved word).": true,
12 | "Use '===' to compare with 'null'.": true,
13 | "Use '!==' to compare with 'null'.": true,
14 | "Expected an assignment or function call and instead saw an expression.": true,
15 | "Expected a 'break' statement before 'case'.": true,
16 | "'e' is already defined.": true
17 | };
18 |
19 | var e = JSLINT.errors, found = 0, w;
20 |
21 | for ( var i = 0; i < e.length; i++ ) {
22 | w = e[i];
23 |
24 | if ( !ok[ w.reason ] ) {
25 | found++;
26 | print( "\n" + w.evidence + "\n" );
27 | print( " Problem at line " + w.line + " character " + w.character + ": " + w.reason );
28 | }
29 | }
30 |
31 | if ( found > 0 ) {
32 | print( "\n" + found + " Error(s) found.\n" );
33 |
34 | } else {
35 | print( "JSLint check passed.\n" );
36 | }
37 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/build/lib/squeeze-more.js:
--------------------------------------------------------------------------------
1 | var jsp = require("./parse-js"),
2 | pro = require("./process"),
3 | slice = jsp.slice,
4 | member = jsp.member,
5 | PRECEDENCE = jsp.PRECEDENCE,
6 | OPERATORS = jsp.OPERATORS;
7 |
8 | function ast_squeeze_more(ast) {
9 | var w = pro.ast_walker(), walk = w.walk;
10 | return w.with_walkers({
11 | "call": function(expr, args) {
12 | if (expr[0] == "dot" && expr[2] == "toString" && args.length == 0) {
13 | // foo.toString() ==> foo+""
14 | return [ "binary", "+", expr[1], [ "string", "" ]];
15 | }
16 | }
17 | }, function() {
18 | return walk(ast);
19 | });
20 | };
21 |
22 | exports.ast_squeeze_more = ast_squeeze_more;
23 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/build/post-compile.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | var print = require("sys").print,
4 | src = require("fs").readFileSync(process.argv[2], "utf8");
5 |
6 | // Previously done in sed but reimplemented here due to portability issues
7 | print(src.replace(/^(\s*\*\/)(.+)/m, "$1\n$2;"));
8 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name" : "jquery",
3 | "version" : "1.6.0",
4 | "main" : "./jquery.js",
5 | "dependencies": {
6 | }
7 | }
8 |
9 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/speed/benchmark.js:
--------------------------------------------------------------------------------
1 | // Runs a function many times without the function call overhead
2 | function benchmark(fn, times, name){
3 | fn = fn.toString();
4 | var s = fn.indexOf('{')+1,
5 | e = fn.lastIndexOf('}');
6 | fn = fn.substring(s,e);
7 |
8 | return benchmarkString(fn, times, name);
9 | }
10 |
11 | function benchmarkString(fn, times, name) {
12 | var fn = new Function("i", "var t=new Date; while(i--) {" + fn + "}; return new Date - t")(times)
13 | fn.displayName = name || "benchmarked";
14 | return fn;
15 | }
16 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/speed/benchmarker.css:
--------------------------------------------------------------------------------
1 |
2 | .dialog {
3 | margin-bottom: 1em;
4 | }
5 | a.expand {
6 | background: #e3e3e3;
7 | }
8 |
9 | div#time-test {
10 | font-family: Arial, Helvetica, sans-serif;
11 | font-size: 62.5%;
12 | }
13 |
14 | td.test button {
15 | float: right;
16 | }
17 |
18 | table {
19 | border: 1px solid #000;
20 | }
21 |
22 | table td, table th {
23 | border: 1px solid #000;
24 | padding: 10px;
25 | }
26 |
27 | td.winner {
28 | background-color: #cfc;
29 | }
30 |
31 | td.tie {
32 | background-color: #ffc;
33 | }
34 |
35 | td.fail {
36 | background-color: #f99;
37 | font-weight: bold;
38 | text-align: center;
39 | }
40 |
41 | tfoot td {
42 | text-align: center;
43 | }
44 |
45 | #time-test {
46 | margin: 1em 0;
47 | padding: .5em;
48 | background: #e3e3e3;
49 | }
50 | #time-taken {
51 | font-weight: bold;
52 | }
53 |
54 | span.wins {
55 | color: #330;
56 | }
57 |
58 | span.fails {
59 | color: #900;
60 | }
61 |
62 | div.buttons {
63 | margin-top: 10px;
64 | margin-bottom: 10px;
65 | }
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/speed/closest.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Test .closest() Performance
5 |
6 |
7 |
8 |
9 |
25 |
26 |
27 |
28 |
Hello
29 |
30 |
31 |
lorem ipsum
32 |
dolor sit amet
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/speed/slice.vs.concat.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/src/intro.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery JavaScript Library v@VERSION
3 | * http://jquery.com/
4 | *
5 | * Copyright 2011, John Resig
6 | * Dual licensed under the MIT or GPL Version 2 licenses.
7 | * http://jquery.org/license
8 | *
9 | * Includes Sizzle.js
10 | * http://sizzlejs.com/
11 | * Copyright 2011, The Dojo Foundation
12 | * Released under the MIT, BSD, and GPL Licenses.
13 | *
14 | * Date: @DATE
15 | */
16 | (function( window, undefined ) {
17 |
18 | // Use the correct document accordingly with window argument (sandbox)
19 | var document = window.document,
20 | navigator = window.navigator,
21 | location = window.location;
22 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/src/outro.js:
--------------------------------------------------------------------------------
1 | window.jQuery = window.$ = jQuery;
2 | })(window);
3 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/src/sizzle-jquery.js:
--------------------------------------------------------------------------------
1 | jQuery.find = Sizzle;
2 | jQuery.expr = Sizzle.selectors;
3 | jQuery.expr[":"] = jQuery.expr.filters;
4 | jQuery.unique = Sizzle.uniqueSort;
5 | jQuery.text = Sizzle.getText;
6 | jQuery.isXMLDoc = Sizzle.isXML;
7 | jQuery.contains = Sizzle.contains;
8 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/csp.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | CSP Test Page
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | CSP Test Page
30 |
31 |
32 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/atom+xml.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/badjson.js:
--------------------------------------------------------------------------------
1 | {bad: 1}
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/dashboard.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/echoData.php:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/echoQuery.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/errorWithText.php:
--------------------------------------------------------------------------------
1 |
22 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/headers.php:
--------------------------------------------------------------------------------
1 | $value ) {
10 |
11 | $key = str_replace( "_" , "-" , substr( $key , 0 , 5 ) == "HTTP_" ? substr( $key , 5 ) : $key );
12 | $headers[ $key ] = $value;
13 |
14 | }
15 |
16 | foreach( explode( "_" , $_GET[ "keys" ] ) as $key ) {
17 | echo "$key: " . @$headers[ strtoupper( $key ) ] . "\n";
18 | }
19 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/if_modified_since.php:
--------------------------------------------------------------------------------
1 |
21 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/iframe.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | iframe
4 |
5 |
6 | span text
7 |
8 |
9 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/json.php:
--------------------------------------------------------------------------------
1 |
14 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/json_obj.js:
--------------------------------------------------------------------------------
1 | { "data": {"lang": "en", "length": 25} }
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/jsonp.php:
--------------------------------------------------------------------------------
1 |
15 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/name.html:
--------------------------------------------------------------------------------
1 | ERROR
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/name.php:
--------------------------------------------------------------------------------
1 | $xml$result";
12 | die();
13 | }
14 | $name = $_REQUEST['name'];
15 | if($name == 'foo') {
16 | echo "bar";
17 | die();
18 | } else if($name == 'peter') {
19 | echo "pan";
20 | die();
21 | }
22 |
23 | echo 'ERROR ';
24 | ?>
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/offset/body.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 | body
7 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/params_html.php:
--------------------------------------------------------------------------------
1 |
2 | $value )
4 | echo "$value";
5 | ?>
6 |
7 |
8 | $value )
10 | echo "$value";
11 | ?>
12 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/readywaitasset.js:
--------------------------------------------------------------------------------
1 | var delayedMessage = "It worked!";
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/readywaitloader.js:
--------------------------------------------------------------------------------
1 | // Simple script loader that uses jQuery.readyWait via jQuery.holdReady()
2 |
3 | //Hold on jQuery!
4 | jQuery.holdReady(true);
5 |
6 | var readyRegExp = /^(complete|loaded)$/;
7 |
8 | function assetLoaded( evt ){
9 | var node = evt.currentTarget || evt.srcElement;
10 | if ( evt.type === "load" || readyRegExp.test(node.readyState) ) {
11 | jQuery.holdReady(false);
12 | }
13 | }
14 |
15 | setTimeout( function() {
16 | var script = document.createElement("script");
17 | script.type = "text/javascript";
18 | if ( script.addEventListener ) {
19 | script.addEventListener( "load", assetLoaded, false );
20 | } else {
21 | script.attachEvent( "onreadystatechange", assetLoaded );
22 | }
23 | script.src = "data/readywaitasset.js";
24 | document.getElementsByTagName("head")[0].appendChild(script);
25 | }, 2000 );
26 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/script.php:
--------------------------------------------------------------------------------
1 |
11 | ok( true, "Script executed correctly." );
12 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/test.html:
--------------------------------------------------------------------------------
1 | html text
2 |
6 |
7 | blabla
8 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/test.js:
--------------------------------------------------------------------------------
1 | var foobar = "bar";
2 | jQuery('#ap').html('bar');
3 | ok( true, "test.js executed");
4 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/test.php:
--------------------------------------------------------------------------------
1 | html text
2 |
6 |
7 | blabla
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/test2.html:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/test3.html:
--------------------------------------------------------------------------------
1 | This is a user
2 | This is a user
3 | This is a teacher
4 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/testrunner.js:
--------------------------------------------------------------------------------
1 | jQuery.noConflict(); // Allow the test to run with other libs or jQuery's.
2 |
3 | // jQuery-specific QUnit.reset
4 | (function() {
5 | var reset = QUnit.reset,
6 | ajaxSettings = jQuery.ajaxSettings;
7 |
8 | QUnit.reset = function() {
9 | reset.apply(this, arguments);
10 | jQuery.event.global = {};
11 | jQuery.ajaxSettings = jQuery.extend({}, ajaxSettings);
12 | };
13 | })();
14 |
15 | // load testswarm agent
16 | (function() {
17 | var url = window.location.search;
18 | url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
19 | if ( !url || url.indexOf("http") !== 0 ) {
20 | return;
21 | }
22 |
23 | // (Temporarily) Disable Ajax tests to reduce network strain
24 | isLocal = QUnit.isLocal = true;
25 |
26 | document.write("");
27 | })();
28 |
29 | // QUnit Aliases
30 | (function() {
31 |
32 | window.equals = window.equal;
33 | window.same = window.deepEqual;
34 |
35 | })();
36 |
37 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/text.php:
--------------------------------------------------------------------------------
1 | Lorem ipsum dolor sit amet
2 | consectetuer adipiscing elit
3 | Sed lorem leo
4 | lorem leo consectetuer adipiscing elit
5 | Sed lorem leo
6 | rhoncus sit amet
7 | elementum at
8 | bibendum at, eros
9 | Cras at mi et tortor egestas vestibulum
10 | sed Cras at mi vestibulum
11 | Phasellus sed felis sit amet
12 | orci dapibus semper.
13 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/with_fries.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | 1
14 |
15 |
16 |
17 |
18 | foo
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/data/with_fries_over_jsonp.php:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/test/xhtml.php:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.6/jquery-1.6.0/version.txt:
--------------------------------------------------------------------------------
1 | 1.6
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/.gitattributes:
--------------------------------------------------------------------------------
1 | * eol=lf
2 | *.jar binary
3 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/.gitignore:
--------------------------------------------------------------------------------
1 | src/selector.js
2 | dist
3 | .project
4 | .settings
5 | *~
6 | *.diff
7 | *.patch
8 | /*.html
9 | .DS_Store
10 | build/.sizecache.json
11 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "src/sizzle"]
2 | path = src/sizzle
3 | url = git://github.com/jquery/sizzle.git
4 | [submodule "test/qunit"]
5 | path = test/qunit
6 | url = git://github.com/jquery/qunit.git
7 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/MIT-LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2011 John Resig, http://jquery.com/
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/build/jslint-check.js:
--------------------------------------------------------------------------------
1 | var JSLINT = require("./lib/jslint").JSLINT,
2 | print = require("sys").print,
3 | src = require("fs").readFileSync("dist/jquery.js", "utf8");
4 |
5 | JSLINT(src, { evil: true, forin: true, maxerr: 100 });
6 |
7 | // All of the following are known issues that we think are 'ok'
8 | // (in contradiction with JSLint) more information here:
9 | // http://docs.jquery.com/JQuery_Core_Style_Guidelines
10 | var ok = {
11 | "Expected an identifier and instead saw 'undefined' (a reserved word).": true,
12 | "Use '===' to compare with 'null'.": true,
13 | "Use '!==' to compare with 'null'.": true,
14 | "Expected an assignment or function call and instead saw an expression.": true,
15 | "Expected a 'break' statement before 'case'.": true,
16 | "'e' is already defined.": true
17 | };
18 |
19 | var e = JSLINT.errors, found = 0, w;
20 |
21 | for ( var i = 0; i < e.length; i++ ) {
22 | w = e[i];
23 |
24 | if ( !ok[ w.reason ] ) {
25 | found++;
26 | print( "\n" + w.evidence + "\n" );
27 | print( " Problem at line " + w.line + " character " + w.character + ": " + w.reason );
28 | }
29 | }
30 |
31 | if ( found > 0 ) {
32 | print( "\n" + found + " Error(s) found.\n" );
33 |
34 | } else {
35 | print( "JSLint check passed.\n" );
36 | }
37 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/build/lib/squeeze-more.js:
--------------------------------------------------------------------------------
1 | var jsp = require("./parse-js"),
2 | pro = require("./process"),
3 | slice = jsp.slice,
4 | member = jsp.member,
5 | PRECEDENCE = jsp.PRECEDENCE,
6 | OPERATORS = jsp.OPERATORS;
7 |
8 | function ast_squeeze_more(ast) {
9 | var w = pro.ast_walker(), walk = w.walk;
10 | return w.with_walkers({
11 | "call": function(expr, args) {
12 | if (expr[0] == "dot" && expr[2] == "toString" && args.length == 0) {
13 | // foo.toString() ==> foo+""
14 | return [ "binary", "+", expr[1], [ "string", "" ]];
15 | }
16 | }
17 | }, function() {
18 | return walk(ast);
19 | });
20 | };
21 |
22 | exports.ast_squeeze_more = ast_squeeze_more;
23 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/build/post-compile.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | var print = require( "sys" ).print,
4 | fs = require( "fs" ),
5 | src = fs.readFileSync( process.argv[2], "utf8" ),
6 | version = fs.readFileSync( "version.txt", "utf8" ),
7 | // License Template
8 | license = "/*! jQuery v@VERSION jquery.com | jquery.org/license */";
9 |
10 |
11 | // Previously done in sed but reimplemented here due to portability issues
12 | src = src.replace( /^(\s*\*\/)(.+)/m, "$1\n$2" ) + ";";
13 |
14 | // Set minimal license block var
15 | license = license.replace( "@VERSION", version );
16 |
17 | // Replace license block with minimal license
18 | src = src.replace( /\/\/.*?\/?\*.+?(?=\n|\r|$)|\/\*[\s\S]*?\/\/[\s\S]*?\*\//, license );
19 |
20 | print( src );
21 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/build/sizer.js:
--------------------------------------------------------------------------------
1 | var fs = require( "fs" ),
2 | stdin = process.openStdin(),
3 | rsize = /(\d+).*?(jquery\S+)/g,
4 | oldsizes = {},
5 | sizes = {};
6 |
7 | try {
8 | oldsizes = JSON.parse( fs.readFileSync( __dirname + "/.sizecache.json", "utf8" ) );
9 | } catch(e) {
10 | oldsizes = {};
11 | };
12 |
13 | stdin.on( "data" , function( chunk ) {
14 | var match;
15 |
16 | while ( match = rsize.exec( chunk ) ) {
17 | sizes[ match[2] ] = parseInt( match[1], 10 );
18 | }
19 | });
20 |
21 | function lpad( str, len, chr ) {
22 | return ( Array(len+1).join( chr || " ") + str ).substr( -len );
23 | }
24 |
25 | stdin.on( "end", function() {
26 | console.log( "jQuery Size - compared to last make" );
27 | fs.writeFileSync( __dirname + "/.sizecache.json", JSON.stringify( sizes, true ), "utf8" );
28 | for ( var key in sizes ) {
29 | var diff = oldsizes[ key ] && ( sizes[ key ] - oldsizes[ key ] );
30 | if ( diff > 0 ) {
31 | diff = "+" + diff;
32 | }
33 | console.log( "%s %s %s", lpad( sizes[ key ], 8 ), lpad( diff ? "(" + diff + ")" : "(-)", 8 ), key );
34 | }
35 | process.exit();
36 | });
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name" : "jquery",
3 | "version" : "1.7.0",
4 | "main" : "./jquery.js",
5 | "dependencies": {
6 | }
7 | }
8 |
9 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/speed/benchmark.js:
--------------------------------------------------------------------------------
1 | // Runs a function many times without the function call overhead
2 | function benchmark(fn, times, name){
3 | fn = fn.toString();
4 | var s = fn.indexOf('{')+1,
5 | e = fn.lastIndexOf('}');
6 | fn = fn.substring(s,e);
7 |
8 | return benchmarkString(fn, times, name);
9 | }
10 |
11 | function benchmarkString(fn, times, name) {
12 | var fn = new Function("i", "var t=new Date; while(i--) {" + fn + "}; return new Date - t")(times)
13 | fn.displayName = name || "benchmarked";
14 | return fn;
15 | }
16 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/speed/benchmarker.css:
--------------------------------------------------------------------------------
1 |
2 | .dialog {
3 | margin-bottom: 1em;
4 | }
5 | a.expand {
6 | background: #e3e3e3;
7 | }
8 |
9 | div#time-test {
10 | font-family: Arial, Helvetica, sans-serif;
11 | font-size: 62.5%;
12 | }
13 |
14 | td.test button {
15 | float: right;
16 | }
17 |
18 | table {
19 | border: 1px solid #000;
20 | }
21 |
22 | table td, table th {
23 | border: 1px solid #000;
24 | padding: 10px;
25 | }
26 |
27 | td.winner {
28 | background-color: #cfc;
29 | }
30 |
31 | td.tie {
32 | background-color: #ffc;
33 | }
34 |
35 | td.fail {
36 | background-color: #f99;
37 | font-weight: bold;
38 | text-align: center;
39 | }
40 |
41 | tfoot td {
42 | text-align: center;
43 | }
44 |
45 | #time-test {
46 | margin: 1em 0;
47 | padding: .5em;
48 | background: #e3e3e3;
49 | }
50 | #time-taken {
51 | font-weight: bold;
52 | }
53 |
54 | span.wins {
55 | color: #330;
56 | }
57 |
58 | span.fails {
59 | color: #900;
60 | }
61 |
62 | div.buttons {
63 | margin-top: 10px;
64 | margin-bottom: 10px;
65 | }
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/speed/closest.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Test .closest() Performance
5 |
6 |
7 |
8 |
9 |
25 |
26 |
27 |
28 |
Hello
29 |
30 |
31 |
lorem ipsum
32 |
dolor sit amet
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/speed/slice.vs.concat.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/src/intro.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery JavaScript Library v@VERSION
3 | * http://jquery.com/
4 | *
5 | * Copyright 2011, John Resig
6 | * Dual licensed under the MIT or GPL Version 2 licenses.
7 | * http://jquery.org/license
8 | *
9 | * Includes Sizzle.js
10 | * http://sizzlejs.com/
11 | * Copyright 2011, The Dojo Foundation
12 | * Released under the MIT, BSD, and GPL Licenses.
13 | *
14 | * Date: @DATE
15 | */
16 | (function( window, undefined ) {
17 |
18 | // Use the correct document accordingly with window argument (sandbox)
19 | var document = window.document,
20 | navigator = window.navigator,
21 | location = window.location;
22 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/src/outro.js:
--------------------------------------------------------------------------------
1 | // Expose jQuery to the global object
2 | window.jQuery = window.$ = jQuery;
3 | })( window );
4 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/src/sizzle-jquery.js:
--------------------------------------------------------------------------------
1 | // Override sizzle attribute retrieval
2 | Sizzle.attr = jQuery.attr;
3 | Sizzle.selectors.attrMap = {};
4 | jQuery.find = Sizzle;
5 | jQuery.expr = Sizzle.selectors;
6 | jQuery.expr[":"] = jQuery.expr.filters;
7 | jQuery.unique = Sizzle.uniqueSort;
8 | jQuery.text = Sizzle.getText;
9 | jQuery.isXMLDoc = Sizzle.isXML;
10 | jQuery.contains = Sizzle.contains;
11 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/csp.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | CSP Test Page
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | CSP Test Page
30 |
31 |
32 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/atom+xml.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/badjson.js:
--------------------------------------------------------------------------------
1 | {bad: 1}
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/dashboard.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/echoData.php:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/echoQuery.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/errorWithText.php:
--------------------------------------------------------------------------------
1 |
22 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/headers.php:
--------------------------------------------------------------------------------
1 | $value ) {
10 |
11 | $key = str_replace( "_" , "-" , substr( $key , 0 , 5 ) == "HTTP_" ? substr( $key , 5 ) : $key );
12 | $headers[ $key ] = $value;
13 |
14 | }
15 |
16 | foreach( explode( "_" , $_GET[ "keys" ] ) as $key ) {
17 | echo "$key: " . @$headers[ strtoupper( $key ) ] . "\n";
18 | }
19 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/if_modified_since.php:
--------------------------------------------------------------------------------
1 |
21 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/iframe.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | iframe
4 |
5 |
6 | span text
7 |
8 |
9 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/json.php:
--------------------------------------------------------------------------------
1 |
14 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/json_obj.js:
--------------------------------------------------------------------------------
1 | { "data": {"lang": "en", "length": 25} }
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/jsonp.php:
--------------------------------------------------------------------------------
1 |
15 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/name.html:
--------------------------------------------------------------------------------
1 | ERROR
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/name.php:
--------------------------------------------------------------------------------
1 | $xml$result";
12 | die();
13 | }
14 | $name = $_REQUEST['name'];
15 | if($name == 'foo') {
16 | echo "bar";
17 | die();
18 | } else if($name == 'peter') {
19 | echo "pan";
20 | die();
21 | }
22 |
23 | echo 'ERROR ';
24 | ?>
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/params_html.php:
--------------------------------------------------------------------------------
1 |
2 | $value )
4 | echo "$value";
5 | ?>
6 |
7 |
8 | $value )
10 | echo "$value";
11 | ?>
12 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/readywaitasset.js:
--------------------------------------------------------------------------------
1 | var delayedMessage = "It worked!";
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/readywaitloader.js:
--------------------------------------------------------------------------------
1 | // Simple script loader that uses jQuery.readyWait via jQuery.holdReady()
2 |
3 | //Hold on jQuery!
4 | jQuery.holdReady(true);
5 |
6 | var readyRegExp = /^(complete|loaded)$/;
7 |
8 | function assetLoaded( evt ){
9 | var node = evt.currentTarget || evt.srcElement;
10 | if ( evt.type === "load" || readyRegExp.test(node.readyState) ) {
11 | jQuery.holdReady(false);
12 | }
13 | }
14 |
15 | setTimeout( function() {
16 | var script = document.createElement("script");
17 | script.type = "text/javascript";
18 | if ( script.addEventListener ) {
19 | script.addEventListener( "load", assetLoaded, false );
20 | } else {
21 | script.attachEvent( "onreadystatechange", assetLoaded );
22 | }
23 | script.src = "data/readywaitasset.js";
24 | document.getElementsByTagName("head")[0].appendChild(script);
25 | }, 2000 );
26 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/script.php:
--------------------------------------------------------------------------------
1 |
11 | ok( true, "Script executed correctly." );
12 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/statusText.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/support/boxModelIE.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/support/hiddenIFrameFF.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/support/testElementCrash.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/test.html:
--------------------------------------------------------------------------------
1 | html text
2 |
6 |
7 | blabla
8 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/test.js:
--------------------------------------------------------------------------------
1 | var foobar = "bar";
2 | jQuery('#ap').html('bar');
3 | ok( true, "test.js executed");
4 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/test.php:
--------------------------------------------------------------------------------
1 | html text
2 |
6 |
7 | blabla
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/test2.html:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/test3.html:
--------------------------------------------------------------------------------
1 | This is a user
2 | This is a user
3 | This is a teacher
4 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/testrunner.js:
--------------------------------------------------------------------------------
1 | jQuery.noConflict(); // Allow the test to run with other libs or jQuery's.
2 |
3 | // jQuery-specific QUnit.reset
4 | (function() {
5 | var reset = QUnit.reset,
6 | ajaxSettings = jQuery.ajaxSettings;
7 |
8 | QUnit.reset = function() {
9 | reset.apply(this, arguments);
10 | jQuery.event.global = {};
11 | jQuery.ajaxSettings = jQuery.extend({}, ajaxSettings);
12 | };
13 | })();
14 |
15 | // load testswarm agent
16 | (function() {
17 | var url = window.location.search;
18 | url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
19 | if ( !url || url.indexOf("http") !== 0 ) {
20 | return;
21 | }
22 |
23 | // (Temporarily) Disable Ajax tests to reduce network strain
24 | // isLocal = QUnit.isLocal = true;
25 |
26 | document.write("");
27 | })();
28 |
29 | // QUnit Aliases
30 | (function() {
31 | window.equals = window.equal;
32 | window.same = window.deepEqual;
33 | })();
34 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/text.php:
--------------------------------------------------------------------------------
1 | Lorem ipsum dolor sit amet
2 | consectetuer adipiscing elit
3 | Sed lorem leo
4 | lorem leo consectetuer adipiscing elit
5 | Sed lorem leo
6 | rhoncus sit amet
7 | elementum at
8 | bibendum at, eros
9 | Cras at mi et tortor egestas vestibulum
10 | sed Cras at mi vestibulum
11 | Phasellus sed felis sit amet
12 | orci dapibus semper.
13 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/versioncheck.js:
--------------------------------------------------------------------------------
1 | // Run minified source from dist (do make first)
2 | // Should be loaded before QUnit but after src
3 | (function() {
4 | if ( /jquery\=min/.test( window.location.search ) ) {
5 | jQuery.noConflict( true );
6 | document.write(unescape("%3Cscript%20src%3D%27../dist/jquery.min.js%27%3E%3C/script%3E"));
7 | }
8 | })();
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/with_fries.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | 1
14 |
15 |
16 |
17 |
18 | foo
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/data/with_fries_over_jsonp.php:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/test/xhtml.php:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.7/jquery-1.7.0/version.txt:
--------------------------------------------------------------------------------
1 | 1.7
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/.editorconfig:
--------------------------------------------------------------------------------
1 | ; This file is for unifying the coding style for different editors and IDEs.
2 | ; More information at http://EditorConfig.org
3 |
4 | root = true
5 |
6 | ; All JavaScript files should use tabs unless specified otherwise
7 | [**.js]
8 | indent_style = tab
9 |
10 | [Makefile]
11 | indent_style = tab
12 |
13 |
14 | [speed/**.html]
15 | indent_style = tab
16 |
17 | [speed/**.css]
18 | indent_style = tab
19 |
20 | [speed/benchmarker.js]
21 | indent_style = space
22 | indent_size = 2
23 |
24 |
25 | [test/**.xml]
26 | indent_style = tab
27 |
28 | [test/**.php]
29 | indent_style = tab
30 |
31 | [test/**.html]
32 | indent_style = tab
33 |
34 | [test/**.css]
35 | indent_style = space
36 | indent_size = 8
37 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/.gitattributes:
--------------------------------------------------------------------------------
1 | * eol=lf
2 | *.jar binary
3 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/.gitignore:
--------------------------------------------------------------------------------
1 | src/selector.js
2 | dist
3 | .project
4 | .settings
5 | *~
6 | *.diff
7 | *.patch
8 | /*.html
9 | .DS_Store
10 | dist/.destination.json
11 | dist/.sizecache.json
12 | build/.sizecache.json
13 | node_modules
14 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "src/sizzle"]
2 | path = src/sizzle
3 | url = git://github.com/jquery/sizzle.git
4 | [submodule "test/qunit"]
5 | path = test/qunit
6 | url = git://github.com/jquery/qunit.git
7 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "curly": true,
3 | "eqnull": true,
4 | "eqeqeq": true,
5 | "expr": true,
6 | "latedef": true,
7 | "noarg": true,
8 | "smarttabs": true,
9 | "trailing": true,
10 | "undef": true
11 | }
12 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/MIT-LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2012 jQuery Foundation and other contributors
2 | http://jquery.com/
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining
5 | a copy of this software and associated documentation files (the
6 | "Software"), to deal in the Software without restriction, including
7 | without limitation the rights to use, copy, modify, merge, publish,
8 | distribute, sublicense, and/or sell copies of the Software, and to
9 | permit persons to whom the Software is furnished to do so, subject to
10 | the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be
13 | included in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/Makefile:
--------------------------------------------------------------------------------
1 |
2 | all: update_submodules
3 |
4 | submoduleclean: clean
5 | @@echo "Removing submodules"
6 | @@rm -rf test/qunit src/sizzle
7 |
8 | # change pointers for submodules and update them to what is specified in jQuery
9 | # --merge doesn't work when doing an initial clone, thus test if we have non-existing
10 | # submodules, then do an real update
11 | update_submodules:
12 | @@if [ -d .git ]; then \
13 | if git submodule status | grep -q -E '^-'; then \
14 | git submodule update --init --recursive; \
15 | else \
16 | git submodule update --init --recursive --merge; \
17 | fi; \
18 | fi;
19 |
20 | # update the submodules to the latest at the most logical branch
21 | pull_submodules:
22 | @@git submodule foreach "git pull \$$(git config remote.origin.url)"
23 | #@@git submodule summary
24 |
25 | .PHONY: all submoduleclean update_submodules pull_submodules
26 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name" : "jquery",
3 | "version" : "1.8.0",
4 | "main" : "./jquery.js",
5 | "dependencies": {
6 | }
7 | }
8 |
9 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "jquery",
3 | "title": "jQuery",
4 | "description": "JavaScript library for DOM operations",
5 | "version": "1.8.0",
6 | "homepage": "http://jquery.com",
7 | "author": {
8 | "name": "jQuery Foundation and other contributors",
9 | "url": "https://github.com/jquery/jquery/blob/master/AUTHORS.txt"
10 | },
11 | "repository": {
12 | "type": "git",
13 | "url": "https://github.com/jquery/jquery.git"
14 | },
15 | "bugs": {
16 | "url": "http://bugs.jquery.com"
17 | },
18 | "licenses": [
19 | {
20 | "type": "MIT",
21 | "url": "https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt"
22 | }
23 | ],
24 | "dependencies": {},
25 | "devDependencies": {
26 | "grunt-compare-size": ">=0.1.0",
27 | "grunt-git-authors": ">=1.0.0",
28 | "grunt": "~0.3.9",
29 | "testswarm": "0.2.2"
30 | },
31 | "keywords": []
32 | }
33 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/speed/benchmark.js:
--------------------------------------------------------------------------------
1 | // Runs a function many times without the function call overhead
2 | function benchmark(fn, times, name){
3 | fn = fn.toString();
4 | var s = fn.indexOf('{')+1,
5 | e = fn.lastIndexOf('}');
6 | fn = fn.substring(s,e);
7 |
8 | return benchmarkString(fn, times, name);
9 | }
10 |
11 | function benchmarkString(fn, times, name) {
12 | var fn = new Function("i", "var t=new Date; while(i--) {" + fn + "}; return new Date - t")(times)
13 | fn.displayName = name || "benchmarked";
14 | return fn;
15 | }
16 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/speed/benchmarker.css:
--------------------------------------------------------------------------------
1 |
2 | .dialog {
3 | margin-bottom: 1em;
4 | }
5 | a.expand {
6 | background: #e3e3e3;
7 | }
8 |
9 | div#time-test {
10 | font-family: Arial, Helvetica, sans-serif;
11 | font-size: 62.5%;
12 | }
13 |
14 | td.test button {
15 | float: right;
16 | }
17 |
18 | table {
19 | border: 1px solid #000;
20 | }
21 |
22 | table td, table th {
23 | border: 1px solid #000;
24 | padding: 10px;
25 | }
26 |
27 | td.winner {
28 | background-color: #cfc;
29 | }
30 |
31 | td.tie {
32 | background-color: #ffc;
33 | }
34 |
35 | td.fail {
36 | background-color: #f99;
37 | font-weight: bold;
38 | text-align: center;
39 | }
40 |
41 | tfoot td {
42 | text-align: center;
43 | }
44 |
45 | #time-test {
46 | margin: 1em 0;
47 | padding: .5em;
48 | background: #e3e3e3;
49 | }
50 | #time-taken {
51 | font-weight: bold;
52 | }
53 |
54 | span.wins {
55 | color: #330;
56 | }
57 |
58 | span.fails {
59 | color: #900;
60 | }
61 |
62 | div.buttons {
63 | margin-top: 10px;
64 | margin-bottom: 10px;
65 | }
66 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/speed/closest.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Test .closest() Performance
5 |
6 |
7 |
8 |
9 |
25 |
26 |
27 |
28 |
Hello
29 |
30 |
31 |
lorem ipsum
32 |
dolor sit amet
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/speed/slice.vs.concat.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/src/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "options": {
3 | "evil": true,
4 | "browser": true,
5 | "wsh": true,
6 | "eqnull": true,
7 | "expr": true,
8 | "curly": true,
9 | "trailing": true,
10 | "undef": true,
11 | "smarttabs": true,
12 | "sub": true,
13 | "maxerr": 100
14 | },
15 | "globals": {
16 | "define": true,
17 | "DOMParser": true,
18 | "__dirname": true,
19 | "jQuery": true,
20 | "global": true,
21 | "module": true,
22 | "exports": true,
23 | "require": true,
24 | "file": true,
25 | "log": true,
26 | "console": true
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/src/exports.js:
--------------------------------------------------------------------------------
1 | // Expose jQuery to the global object
2 | window.jQuery = window.$ = jQuery;
3 |
4 | // Expose jQuery as an AMD module, but only for AMD loaders that
5 | // understand the issues with loading multiple versions of jQuery
6 | // in a page that all might call define(). The loader will indicate
7 | // they have special allowances for multiple jQuery versions by
8 | // specifying define.amd.jQuery = true. Register as a named module,
9 | // since jQuery can be concatenated with other files that may use define,
10 | // but not use a proper concatenation script that understands anonymous
11 | // AMD modules. A named AMD is safest and most robust way to register.
12 | // Lowercase jquery is used because AMD module names are derived from
13 | // file names, and jQuery is normally delivered in a lowercase file name.
14 | // Do this after creating the global so that if an AMD module wants to call
15 | // noConflict to hide this version of jQuery, it will work.
16 | if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
17 | define( "jquery", [], function () { return jQuery; } );
18 | }
19 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/src/intro.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery JavaScript Library v@VERSION
3 | * http://jquery.com/
4 | *
5 | * Includes Sizzle.js
6 | * http://sizzlejs.com/
7 | *
8 | * Copyright 2012 jQuery Foundation and other contributors
9 | * Released under the MIT license
10 | * http://jquery.org/license
11 | *
12 | * Date: @DATE
13 | */
14 | (function( window, undefined ) {
15 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/src/outro.js:
--------------------------------------------------------------------------------
1 |
2 | })( window );
3 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/src/sizzle-jquery.js:
--------------------------------------------------------------------------------
1 | // Override sizzle attribute retrieval
2 | Sizzle.attr = jQuery.attr;
3 | jQuery.find = Sizzle;
4 | jQuery.expr = Sizzle.selectors;
5 | jQuery.expr[":"] = jQuery.expr.pseudos;
6 | jQuery.unique = Sizzle.uniqueSort;
7 | jQuery.text = Sizzle.getText;
8 | jQuery.isXMLDoc = Sizzle.isXML;
9 | jQuery.contains = Sizzle.contains;
10 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/csp.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | CSP Test Page
7 |
8 |
9 |
10 |
11 | CSP Test Page
12 |
13 |
14 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/1x1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fsjohnhuang/iPromise/b00e331f6e2492733e03e26576e7498c0462d32a/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/1x1.jpg
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/atom+xml.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/badcall.js:
--------------------------------------------------------------------------------
1 | undefined();
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/badjson.js:
--------------------------------------------------------------------------------
1 | {bad: toTheBone}
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/cleanScript.html:
--------------------------------------------------------------------------------
1 |
6 |
11 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/dashboard.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/dimensions/documentLarge.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/dimensions/documentSmall.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/echoData.php:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/echoQuery.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/errorWithText.php:
--------------------------------------------------------------------------------
1 |
22 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/evalScript.php:
--------------------------------------------------------------------------------
1 | ok( "" === "GET", "request method is " );
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/event/asyncReady.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Test case for jQuery ticket #10067
6 |
19 |
20 |
21 |
22 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/event/longLoad.php:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/event/longLoadScript.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/event/promiseReady.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Test case for jQuery ticket #11470
6 |
7 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/event/syncReady.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Test case for jQuery ticket #10067
6 |
7 |
8 |
9 |
10 |
15 |
16 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/event/syncReadyLongLoad.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Test case for jQuery ticket #10067
6 |
7 |
8 |
9 |
10 |
15 |
16 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/headers.php:
--------------------------------------------------------------------------------
1 | $value ) {
10 |
11 | $key = str_replace( "_" , "-" , substr( $key , 0 , 5 ) == "HTTP_" ? substr( $key , 5 ) : $key );
12 | $headers[ $key ] = $value;
13 |
14 | }
15 |
16 | foreach( explode( "_" , $_GET[ "keys" ] ) as $key ) {
17 | echo "$key: " . @$headers[ strtoupper( $key ) ] . "\n";
18 | }
19 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/if_modified_since.php:
--------------------------------------------------------------------------------
1 |
21 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/iframe.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | iframe
4 |
5 |
6 | span text
7 |
8 |
9 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/json.php:
--------------------------------------------------------------------------------
1 |
14 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/json_obj.js:
--------------------------------------------------------------------------------
1 | { "data": {"lang": "en", "length": 25} }
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/jsonp.php:
--------------------------------------------------------------------------------
1 |
15 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/name.html:
--------------------------------------------------------------------------------
1 | ERROR
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/name.php:
--------------------------------------------------------------------------------
1 | $xml$result";
12 | die();
13 | }
14 | $name = $_REQUEST['name'];
15 | if($name == 'foo') {
16 | echo "bar";
17 | die();
18 | } else if($name == 'peter') {
19 | echo "pan";
20 | die();
21 | }
22 |
23 | echo 'ERROR ';
24 | ?>
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/offset/body.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 | body
7 |
11 |
12 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/params_html.php:
--------------------------------------------------------------------------------
1 |
2 | $value )
4 | echo "$value";
5 | ?>
6 |
7 |
8 | $value )
10 | echo "$value";
11 | ?>
12 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/readywaitasset.js:
--------------------------------------------------------------------------------
1 | var delayedMessage = "It worked!";
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/readywaitloader.js:
--------------------------------------------------------------------------------
1 | // Simple script loader that uses jQuery.readyWait via jQuery.holdReady()
2 |
3 | //Hold on jQuery!
4 | jQuery.holdReady(true);
5 |
6 | var readyRegExp = /^(complete|loaded)$/;
7 |
8 | function assetLoaded( evt ){
9 | var node = evt.currentTarget || evt.srcElement;
10 | if ( evt.type === "load" || readyRegExp.test(node.readyState) ) {
11 | jQuery.holdReady(false);
12 | }
13 | }
14 |
15 | setTimeout( function() {
16 | var script = document.createElement("script");
17 | script.type = "text/javascript";
18 | if ( script.addEventListener ) {
19 | script.addEventListener( "load", assetLoaded, false );
20 | } else {
21 | script.attachEvent( "onreadystatechange", assetLoaded );
22 | }
23 | script.src = "data/readywaitasset.js";
24 | document.getElementsByTagName("head")[0].appendChild(script);
25 | }, 2000 );
26 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/script.php:
--------------------------------------------------------------------------------
1 |
11 | ok( true, "Script executed correctly." );
12 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/selector/sizzle_cache.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery selector - sizzle cache
6 |
7 |
8 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/statusText.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/support/bodyBackground.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
17 |
18 |
19 |
20 |
21 |
22 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/support/testElementCrash.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
10 |
11 |
12 |
13 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/test.html:
--------------------------------------------------------------------------------
1 | html text
2 |
6 |
7 | blabla
8 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/test.js:
--------------------------------------------------------------------------------
1 | var foobar = "bar";
2 | jQuery('#ap').html('bar');
3 | ok( true, "test.js executed");
4 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/test.php:
--------------------------------------------------------------------------------
1 | html text
2 |
6 |
7 | blabla
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/test2.html:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/test3.html:
--------------------------------------------------------------------------------
1 | This is a user
2 | This is a user
3 | This is a teacher
4 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/text.php:
--------------------------------------------------------------------------------
1 | Lorem ipsum dolor sit amet
2 | consectetuer adipiscing elit
3 | Sed lorem leo
4 | lorem leo consectetuer adipiscing elit
5 | Sed lorem leo
6 | rhoncus sit amet
7 | elementum at
8 | bibendum at, eros
9 | Cras at mi et tortor egestas vestibulum
10 | sed Cras at mi vestibulum
11 | Phasellus sed felis sit amet
12 | orci dapibus semper.
13 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/with_fries.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | 1
14 |
15 |
16 |
17 |
18 | foo
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/data/with_fries_over_jsonp.php:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/unit/deprecated.js:
--------------------------------------------------------------------------------
1 | module("deprecated");
2 |
3 | // Start jQuery.browser tests
4 | if ( jQuery.browser && jQuery.uaMatch ) {
5 | if ( jQuery.get && !isLocal ) {
6 | asyncTest( "browser", function() {
7 | jQuery.get( "data/ua.txt", function( data ) {
8 | var uas = data.split( "\n" );
9 | expect( (uas.length - 1) * 2 );
10 |
11 | jQuery.each(uas, function() {
12 | var parts = this.split( "\t" ),
13 | agent = parts[2],
14 | ua;
15 |
16 | if ( agent ) {
17 | ua = jQuery.uaMatch( agent );
18 | equal( ua.browser, parts[0], "browser (" + agent + ")" );
19 | equal( ua.version, parts[1], "version (" + agent + ")" );
20 | }
21 | });
22 |
23 | start();
24 | });
25 | });
26 | }
27 | }
28 | // End of jQuery.browser tests
29 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/unit/exports.js:
--------------------------------------------------------------------------------
1 | module("exports", { teardown: moduleTeardown });
2 |
3 | test("amdModule", function() {
4 | expect(1);
5 |
6 | equal( jQuery, amdDefined, "Make sure defined module matches jQuery" );
7 | });
8 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.8/jquery-1.8.0/test/xhtml.php:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/.editorconfig:
--------------------------------------------------------------------------------
1 | # This file is for unifying the coding style for different editors and IDEs
2 | # editorconfig.org
3 |
4 | root = true
5 |
6 |
7 | [*]
8 | end_of_line = lf
9 | charset = utf-8
10 | trim_trailing_whitespace = true
11 | insert_final_newline = true
12 |
13 | # Tabs in JS unless otherwise specified
14 | [**.js]
15 | indent_style = tab
16 |
17 | [Makefile]
18 | indent_style = tab
19 |
20 |
21 | [speed/**.html]
22 | indent_style = tab
23 |
24 | [speed/**.css]
25 | indent_style = tab
26 |
27 | [speed/benchmarker.js]
28 | indent_style = space
29 | indent_size = 2
30 |
31 |
32 | [test/**.xml]
33 | indent_style = tab
34 |
35 | [test/**.php]
36 | indent_style = tab
37 |
38 | [test/**.html]
39 | indent_style = tab
40 |
41 | [test/**.css]
42 | indent_style = space
43 | indent_size = 8
44 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/.gitattributes:
--------------------------------------------------------------------------------
1 | * eol=lf
2 | *.jar binary
3 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/.gitignore:
--------------------------------------------------------------------------------
1 | src/selector-sizzle.js
2 | src/selector.js
3 | dist
4 | .project
5 | .settings
6 | *~
7 | *.diff
8 | *.patch
9 | /*.html
10 | .DS_Store
11 | dist/.destination.json
12 | dist/.sizecache.json
13 | build/.sizecache.json
14 | node_modules
15 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "src/sizzle"]
2 | path = src/sizzle
3 | url = git://github.com/jquery/sizzle.git
4 | [submodule "test/qunit"]
5 | path = test/qunit
6 | url = git://github.com/jquery/qunit.git
7 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "curly": true,
3 | "eqeqeq": true,
4 | "latedef": true,
5 | "noarg": true,
6 | "noempty": true,
7 | "quotmark": "double",
8 | "undef": true,
9 | "unused": true,
10 | "strict": true,
11 | "trailing": true,
12 |
13 | "node": true
14 | }
15 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/MIT-LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2013 jQuery Foundation and other contributors
2 | http://jquery.com/
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining
5 | a copy of this software and associated documentation files (the
6 | "Software"), to deal in the Software without restriction, including
7 | without limitation the rights to use, copy, modify, merge, publish,
8 | distribute, sublicense, and/or sell copies of the Software, and to
9 | permit persons to whom the Software is furnished to do so, subject to
10 | the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be
13 | included in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "jquery",
3 | "title": "jQuery",
4 | "description": "JavaScript library for DOM operations",
5 | "version": "1.9.2-pre",
6 | "homepage": "http://jquery.com",
7 | "author": {
8 | "name": "jQuery Foundation and other contributors",
9 | "url": "https://github.com/jquery/jquery/blob/master/AUTHORS.txt"
10 | },
11 | "repository": {
12 | "type": "git",
13 | "url": "https://github.com/jquery/jquery.git"
14 | },
15 | "bugs": {
16 | "url": "http://bugs.jquery.com"
17 | },
18 | "licenses": [
19 | {
20 | "type": "MIT",
21 | "url": "https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt"
22 | }
23 | ],
24 | "dependencies": {},
25 | "devDependencies": {
26 | "grunt-compare-size": "~0.4.0",
27 | "grunt-git-authors": "1.2.0",
28 | "grunt-update-submodules": "0.2.0",
29 | "grunt-contrib-watch": "0.3.1",
30 | "grunt-contrib-jshint": "0.1.1rc6",
31 | "grunt-contrib-uglify": "0.1.2",
32 | "grunt": "0.4.1",
33 | "gzip-js": "0.3.1",
34 | "testswarm": "0.2.2"
35 | },
36 | "keywords": []
37 | }
38 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/speed/benchmark.js:
--------------------------------------------------------------------------------
1 | // Runs a function many times without the function call overhead
2 | function benchmark(fn, times, name){
3 | fn = fn.toString();
4 | var s = fn.indexOf('{')+1,
5 | e = fn.lastIndexOf('}');
6 | fn = fn.substring(s,e);
7 |
8 | return benchmarkString(fn, times, name);
9 | }
10 |
11 | function benchmarkString(fn, times, name) {
12 | var fn = new Function("i", "var t=new Date; while(i--) {" + fn + "}; return new Date - t")(times)
13 | fn.displayName = name || "benchmarked";
14 | return fn;
15 | }
16 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/speed/benchmarker.css:
--------------------------------------------------------------------------------
1 |
2 | .dialog {
3 | margin-bottom: 1em;
4 | }
5 | a.expand {
6 | background: #e3e3e3;
7 | }
8 |
9 | div#time-test {
10 | font-family: Arial, Helvetica, sans-serif;
11 | font-size: 62.5%;
12 | }
13 |
14 | td.test button {
15 | float: right;
16 | }
17 |
18 | table {
19 | border: 1px solid #000;
20 | }
21 |
22 | table td, table th {
23 | border: 1px solid #000;
24 | padding: 10px;
25 | }
26 |
27 | td.winner {
28 | background-color: #cfc;
29 | }
30 |
31 | td.tie {
32 | background-color: #ffc;
33 | }
34 |
35 | td.fail {
36 | background-color: #f99;
37 | font-weight: bold;
38 | text-align: center;
39 | }
40 |
41 | tfoot td {
42 | text-align: center;
43 | }
44 |
45 | #time-test {
46 | margin: 1em 0;
47 | padding: .5em;
48 | background: #e3e3e3;
49 | }
50 | #time-taken {
51 | font-weight: bold;
52 | }
53 |
54 | span.wins {
55 | color: #330;
56 | }
57 |
58 | span.fails {
59 | color: #900;
60 | }
61 |
62 | div.buttons {
63 | margin-top: 10px;
64 | margin-bottom: 10px;
65 | }
66 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/speed/closest.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Test .closest() Performance
5 |
6 |
7 |
8 |
9 |
25 |
26 |
27 |
28 |
Hello
29 |
30 |
31 |
lorem ipsum
32 |
dolor sit amet
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/speed/slice.vs.concat.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/src/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "curly": true,
3 | "expr": true,
4 | "newcap": false,
5 | "quotmark": "double",
6 | "regexdash": true,
7 | "trailing": true,
8 | "undef": true,
9 | "unused": true,
10 | "maxerr": 100,
11 |
12 | "eqnull": true,
13 | "evil": true,
14 | "sub": true,
15 |
16 | "browser": true,
17 | "wsh": true,
18 |
19 | "predef": [
20 | "define",
21 | "jQuery"
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/src/deprecated.js:
--------------------------------------------------------------------------------
1 | // Limit scope pollution from any deprecated API
2 | // (function() {
3 |
4 | // })();
5 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/src/event-alias.js:
--------------------------------------------------------------------------------
1 | jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
2 | "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
3 | "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
4 |
5 | // Handle event binding
6 | jQuery.fn[ name ] = function( data, fn ) {
7 | return arguments.length > 0 ?
8 | this.on( name, null, data, fn ) :
9 | this.trigger( name );
10 | };
11 | });
12 |
13 | jQuery.fn.hover = function( fnOver, fnOut ) {
14 | return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
15 | };
16 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/src/exports.js:
--------------------------------------------------------------------------------
1 | // Expose jQuery to the global object
2 | window.jQuery = window.$ = jQuery;
3 |
4 | // Expose jQuery as an AMD module, but only for AMD loaders that
5 | // understand the issues with loading multiple versions of jQuery
6 | // in a page that all might call define(). The loader will indicate
7 | // they have special allowances for multiple jQuery versions by
8 | // specifying define.amd.jQuery = true. Register as a named module,
9 | // since jQuery can be concatenated with other files that may use define,
10 | // but not use a proper concatenation script that understands anonymous
11 | // AMD modules. A named AMD is safest and most robust way to register.
12 | // Lowercase jquery is used because AMD module names are derived from
13 | // file names, and jQuery is normally delivered in a lowercase file name.
14 | // Do this after creating the global so that if an AMD module wants to call
15 | // noConflict to hide this version of jQuery, it will work.
16 | if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
17 | define( "jquery", [], function () { return jQuery; } );
18 | }
19 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/src/intro.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery JavaScript Library v@VERSION
3 | * http://jquery.com/
4 | *
5 | * Includes Sizzle.js
6 | * http://sizzlejs.com/
7 | *
8 | * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
9 | * Released under the MIT license
10 | * http://jquery.org/license
11 | *
12 | * Date: @DATE
13 | */
14 | (function( window, undefined ) {
15 |
16 | // Can't do this because several apps including ASP.NET trace
17 | // the stack via arguments.caller.callee and Firefox dies if
18 | // you try to trace through "use strict" call chains. (#13335)
19 | // Support: Firefox 18+
20 | //"use strict";
21 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/src/outro.js:
--------------------------------------------------------------------------------
1 |
2 | })( window );
3 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/src/sizzle-jquery.js:
--------------------------------------------------------------------------------
1 | // Override sizzle attribute retrieval
2 | Sizzle.attr = jQuery.attr;
3 | jQuery.find = Sizzle;
4 | jQuery.expr = Sizzle.selectors;
5 | jQuery.expr[":"] = jQuery.expr.pseudos;
6 | jQuery.unique = Sizzle.uniqueSort;
7 | jQuery.text = Sizzle.getText;
8 | jQuery.isXMLDoc = Sizzle.isXML;
9 | jQuery.contains = Sizzle.contains;
10 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/.jshintignore:
--------------------------------------------------------------------------------
1 | qunit/
2 | data/badjson.js
3 | data/jquery-1.8.2.ajax_xhr.min.js
4 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "curly": true,
3 | "expr": true,
4 | "quotmark": "double",
5 | "trailing": true,
6 | "undef": true,
7 | "maxerr": 100,
8 |
9 | "eqnull": true,
10 | "evil": true,
11 | "smarttabs": true,
12 | "sub": true,
13 |
14 | "browser": true,
15 | "devel": true,
16 | "wsh": true,
17 |
18 | "predef": [
19 | "DOMParser",
20 | "jQuery",
21 | "QUnit",
22 | "module",
23 | "ok",
24 | "equal",
25 | "test",
26 | "asyncTest",
27 | "notEqual",
28 | "deepEqual",
29 | "strictEqual",
30 | "notStrictEqual",
31 | "start",
32 | "stop",
33 | "expect",
34 | "raises",
35 | "ajaxTest",
36 | "testIframe",
37 | "testIframeWithCallback",
38 | "createDashboardXML",
39 | "createXMLFragment",
40 | "moduleTeardown",
41 | "testFoo",
42 | "url",
43 | "t",
44 | "q",
45 | "amdDefined",
46 | "fireNative",
47 | "Globals",
48 | "hasPHP",
49 | "isLocal",
50 | "originaljQuery",
51 | "$",
52 | "original$",
53 | "externalHost"
54 | ]
55 | }
56 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/1x1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fsjohnhuang/iPromise/b00e331f6e2492733e03e26576e7498c0462d32a/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/1x1.jpg
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/ajax/unreleasedXHR.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Attempt to block tests because of dangling XHR requests (IE)
6 |
7 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/atom+xml.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/badcall.js:
--------------------------------------------------------------------------------
1 | undefined();
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/badjson.js:
--------------------------------------------------------------------------------
1 | {bad: toTheBone}
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/cleanScript.html:
--------------------------------------------------------------------------------
1 |
6 |
11 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/core/cc_on.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
15 |
16 |
17 |
18 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/dashboard.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/dimensions/documentLarge.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/dimensions/documentSmall.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/echoData.php:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/echoQuery.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/errorWithJSON.php:
--------------------------------------------------------------------------------
1 |
22 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/evalScript.php:
--------------------------------------------------------------------------------
1 | ok( "" === "GET", "request method is " );
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/event/longLoadScript.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/event/promiseReady.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Test case for jQuery ticket #11470
6 |
7 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/event/syncReady.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Test case for jQuery ticket #10067
6 |
7 |
8 |
9 |
10 |
15 |
16 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/headers.php:
--------------------------------------------------------------------------------
1 | $value ) {
10 |
11 | $key = str_replace( "_" , "-" , substr( $key , 0 , 5 ) == "HTTP_" ? substr( $key , 5 ) : $key );
12 | $headers[ $key ] = $value;
13 |
14 | }
15 |
16 | foreach( explode( "_" , $_GET[ "keys" ] ) as $key ) {
17 | echo "$key: " . @$headers[ strtoupper( $key ) ] . "\n";
18 | }
19 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/if_modified_since.php:
--------------------------------------------------------------------------------
1 |
21 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/iframe.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | iframe
4 |
5 |
6 | span text
7 |
8 |
9 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/json.php:
--------------------------------------------------------------------------------
1 |
14 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/json_obj.js:
--------------------------------------------------------------------------------
1 | { "data": {"lang": "en", "length": 25} }
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/jsonp.php:
--------------------------------------------------------------------------------
1 |
15 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/manipulation/iframe-denied.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | body
6 |
7 |
8 |
9 |
10 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/name.html:
--------------------------------------------------------------------------------
1 | ERROR
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/name.php:
--------------------------------------------------------------------------------
1 | $xml$result";
12 | die();
13 | }
14 | $name = $_REQUEST['name'];
15 | if($name == 'foo') {
16 | echo "bar";
17 | die();
18 | } else if($name == 'peter') {
19 | echo "pan";
20 | die();
21 | }
22 |
23 | echo 'ERROR ';
24 | ?>
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/nocontent.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/offset/body.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 | body
7 |
12 |
13 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/params_html.php:
--------------------------------------------------------------------------------
1 |
2 | $value )
4 | echo "$value";
5 | ?>
6 |
7 |
8 | $value )
10 | echo "$value";
11 | ?>
12 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/readywaitasset.js:
--------------------------------------------------------------------------------
1 | var delayedMessage = "It worked!";
2 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/readywaitloader.js:
--------------------------------------------------------------------------------
1 | // Simple script loader that uses jQuery.readyWait via jQuery.holdReady()
2 |
3 | //Hold on jQuery!
4 | jQuery.holdReady(true);
5 |
6 | var readyRegExp = /^(complete|loaded)$/;
7 |
8 | function assetLoaded( evt ){
9 | var node = evt.currentTarget || evt.srcElement;
10 | if ( evt.type === "load" || readyRegExp.test(node.readyState) ) {
11 | jQuery.holdReady(false);
12 | }
13 | }
14 |
15 | setTimeout( function() {
16 | var script = document.createElement("script");
17 | script.type = "text/javascript";
18 | if ( script.addEventListener ) {
19 | script.addEventListener( "load", assetLoaded, false );
20 | } else {
21 | script.attachEvent( "onreadystatechange", assetLoaded );
22 | }
23 | script.src = "data/readywaitasset.js";
24 | document.getElementsByTagName("head")[0].appendChild(script);
25 | }, 2000 );
26 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/script.php:
--------------------------------------------------------------------------------
1 |
11 | ok( true, "Script executed correctly." );
12 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/selector/sizzle_cache.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | jQuery selector - sizzle cache
6 |
7 |
8 |
14 |
15 |
16 |
17 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/statusText.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/support/bodyBackground.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
17 |
18 |
19 |
20 |
21 |
22 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/support/csp.js:
--------------------------------------------------------------------------------
1 | jQuery(function() {
2 | parent.iframeCallback( jQuery.support );
3 | });
4 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/support/csp.php:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 |
15 | CSP Test Page
16 |
17 |
18 |
19 |
20 | CSP Test Page
21 |
22 |
23 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/support/shrinkWrapBlocks.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
12 |
13 |
14 |
15 |
16 |
17 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/support/testElementCrash.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
10 |
11 |
12 |
13 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/test.html:
--------------------------------------------------------------------------------
1 | html text
2 |
6 |
7 | blabla
8 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/test.js:
--------------------------------------------------------------------------------
1 | var testBar = "bar";
2 | jQuery("#ap").html("bar");
3 | ok( true, "test.js executed");
4 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/test.php:
--------------------------------------------------------------------------------
1 | html text
2 |
6 |
7 | blabla
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/test2.html:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/test3.html:
--------------------------------------------------------------------------------
1 | This is a user
2 | This is a user
3 | This is a teacher
4 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/text.php:
--------------------------------------------------------------------------------
1 | Lorem ipsum dolor sit amet
2 | consectetuer adipiscing elit
3 | Sed lorem leo
4 | lorem leo consectetuer adipiscing elit
5 | Sed lorem leo
6 | rhoncus sit amet
7 | elementum at
8 | bibendum at, eros
9 | Cras at mi et tortor egestas vestibulum
10 | sed Cras at mi vestibulum
11 | Phasellus sed felis sit amet
12 | orci dapibus semper.
13 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/with_fries.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | 1
14 |
15 |
16 |
17 |
18 | foo
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/data/with_fries_over_jsonp.php:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/theory/jQuery.deferred/1.9/jquery-1.9-stable/test/jquery.js:
--------------------------------------------------------------------------------
1 | // Use the right jQuery source in iframe tests
2 | document.write( "
6 |
7 |
8 |
9 |
10 |
21 |
22 |