Skip to content
Permalink
Browse files

Removed re-usability from jXHR object (no more open, send & onreadyst…

…atechange support). Streamlined the implementation and put it back into ajax.js (removed xhr.js in the process). Went back to a more simple & direct approach to options handling (keeping much room to further minification-related optimizations). Code is cleaner, smaller & faster. Removed & edited unit tests accordingly. All build files have had xhr.js removed.
  • Loading branch information
jaubourg committed Dec 25, 2010
1 parent 00fb8a9 commit f7ed2aca562620f9424b1667170352e798e99ef3
Showing with 581 additions and 904 deletions.
  1. +0 −1 Makefile
  2. +1 −1 Rakefile
  3. +0 −1 build.xml
  4. +574 −8 src/ajax.js
  5. +1 −1 src/transports/jsonp.js
  6. +1 −1 src/transports/script.js
  7. +1 −1 src/transports/xhr.js
  8. +0 −728 src/xhr.js
  9. +0 −1 test/index.html
  10. +3 −161 test/unit/ajax.js
@@ -24,7 +24,6 @@ BASE_FILES = ${SRC_DIR}/core.js\
${SRC_DIR}/manipulation.js\
${SRC_DIR}/css.js\
${SRC_DIR}/ajax.js\
${SRC_DIR}/xhr.js\
${SRC_DIR}/transports/jsonp.js\
${SRC_DIR}/transports/script.js\
${SRC_DIR}/transports/xhr.js\
@@ -9,7 +9,7 @@ test_dir = File.join( prefix, 'test' )
# setting DIST_DIR before calling rake
dist_dir = ENV['DIST_DIR'] || File.join( prefix, 'dist' )

base_files = %w{intro core support data queue attributes event selector traversing manipulation css ajax xhr transports/jsonp transports/script transports/xhr effects offset dimensions outro}.map { |js| File.join( src_dir, "#{js}.js" ) }
base_files = %w{intro core support data queue attributes event selector traversing manipulation css ajax transports/jsonp transports/script transports/xhr effects offset dimensions outro}.map { |js| File.join( src_dir, "#{js}.js" ) }

# Sizzle, QUnit and jQuery files/dirs
sizzle_dir = File.join( src_dir, "sizzle" )
@@ -63,7 +63,6 @@
<fileset file="src/manipulation.js" />
<fileset file="src/css.js" />
<fileset file="src/ajax.js" />
<fileset file="src/xhr.js" />
<fileset file="src/transports/jsonp.js" />
<fileset file="src/transports/script.js" />
<fileset file="src/transports/xhr.js" />

0 comments on commit f7ed2ac

Please sign in to comment.
You can’t perform that action at this time.