Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: madrobby/zepto
...
head fork: madrobby/zepto
Checking mergeability… Don't worry, you can still create the pull request.
Commits on Jan 26, 2011
@joaodubas joaodubas added swipe up/down and gestures for iphone aef3f41
@joaodubas joaodubas added gestures.js to Rakefile 50eff2f
Commits on Feb 15, 2011
@joaodubas joaodubas Merge remote branch 'origin/master' into local 45194b6
Commits on Feb 24, 2011
@joaodubas joaodubas Merge branch 'master' into local 5213585
Commits on Mar 01, 2011
@joaodubas joaodubas Merge remote branch 'origin/master' into local 00cdc7d
@madrobby remove old test 83c5626
@mislav mislav ability to select the document node with $(document)
enables usage like `$(document).delegate(...)`
7cf0d71
Commits on Mar 02, 2011
@mislav mislav $.ajax(): "beforeSend", "complete" callbacks, custom headers
 - "beforeSend" callback can abort the request by returning false
 - refactor ajax settings so a `settings` object can be provided to beforeSend
 - "complete" callback runs after "success" or "error"
 - define custom headers with the "headers" parameter
 - `$.ajax.mimeTypes` are now `$.ajaxSettings.accepts`
1012a9a
@madrobby Merge pull request #113 from mislav/zepto
---

★★★★★ A bucketful of awesomesauce
24019c0
Commits on Mar 05, 2011
@ekhaled ekhaled shorter version of flatten(array) 82fd6b0
@madrobby Merge pull request #116 from ekhaled/zepto
---
0df258a
Commits on Mar 11, 2011
Arne Martin Aurlien Added support for 'data'-parameter for GET-type ajax requests 3e6c1bd
Arne Martin Aurlien Now using $.param for object serialization instead of custom code be20b3c
Commits on Mar 15, 2011
@lvivski lvivski Modified addClass()/removeClass() to work with multiple classnames; c…
…hanged show()/hide() to work correctly with overrided default display types and inline elements
ea3d061
@skue skue fragmentRE now recognizes HTML tags that wrap multiple lines 7699b71
@madrobby Merge pull request #124 from skue/zepto
---

If you pass HTML into Zepto and the first HTML tag includes a linebreak, fragmentRE fails to recognize it (because . doesnt match newline by default). So the HTML fragment gets passed to qsa, producing a DOM error.

Example:
    $(<div id="myid"\ndata-item="val">)

This regex change fixes that.
30bc455
@madrobby add test for newlines in fragments 68f7b7f
@arnemart arnemart - No longer uses 'typeof' to check type of data parameter
- More robust handling of query string, will now insert ? or & as needed
e31e3e5
@arnemart arnemart Added unit tests for using data with GET-requests aa6173a
@lvivski lvivski optimized .show()/.hide() 3877085
Commits on Mar 16, 2011
@lvivski lvivski Merge remote branch 'upstream/master' 6bbae1a
@madrobby Merge pull request #122 from arnemart/zepto
---

Added this, since jQuery supports it. Data can be a query string (foo=bar&baz=qux) or a key-value object ({foo: bar, baz: qux}). Objects are serialized into query strings, and the query string is appended to settings.url.
efeedfc
Commits on Mar 19, 2011
@madrobby Revert "Smaller 1px gif."
This reverts commit 2e7b461.

Conflicts:

	src/assets.js
6909ee7
@madrobby Merge branch 'master' of github.com:madrobby/zepto 4497f4f
@madrobby whitespace fix 97c4fe2
Commits on Mar 21, 2011
@lvivski lvivski use only native methods in defaultDisplay() c3dd785
Commits on Mar 25, 2011
@joaodubas joaodubas Merge remote branch 'origin/master' into local 96e7dc2
Commits on Mar 27, 2011
@andrew andrew Fixed a typo in the readme 147c0fc
Commits on Mar 29, 2011
@madrobby Merge pull request #130 from andrew/zepto
---
e2e46d3
slavic All string use ' instead of " a1c01b7
slavic typeof always return string so there is no need for strong equality, …
…simple equality enough (economy of one symbol, but we want Zepto to be small as possible)
1fe9f96
slavic Shorter way to express Object.prototype
Removed unnecessary RegExp
dcd4804
slavic refactoring of $.param function
refactoring of settings.data handling
add iObject and isArray function
fix delete window.jsonpString;
2ffb3eb
slavic add isFunction and isArray jQuery functions
refactoring isArray and isObject - move from ajax.js to zepto.js
b99f046
slavic add isFunction and isArray jQuery functions
refactoring isArray and isObject - move from ajax.js to zepto.js
704879c
slavic [] instanceof Object => true 7d877cf
@madrobby whitespace 6dfd364
@madrobby Merge pull request #123 from lvivski/zepto
---

now Zepto works correctly with inline elements and elements that have overriden default display type. Also addClass and removeClass work with multiple classnames (coma separated)
79dd84c
Commits on Apr 04, 2011
@joaodubas joaodubas Merge remote branch 'origin/master' into local 8fa2a7f
@ajdavis ajdavis jQuery compatibility: if document is already loaded, $(document).load…
…(function) calls the function immediately.

Discussion: WebKit supports (since when?) document.readyState (originally an IE extension) and reports "complete" after firing DOMContentLoaded.  Under circumstances I don't fully understand it may also report "loaded", at least in Safari 5.

http://trac.webkit.org/browser/trunk/Source/WebCore/dom/Document.cpp#L1014
ad74718
Commits on Apr 05, 2011
@joaodubas joaodubas Correct reference to gesture script on Rakefile 0af7263
Commits on Apr 06, 2011
@joaodubas joaodubas Corrected direction for vertical swipe. c6c2a2a
@joaodubas joaodubas Added swipeUp and swipeDown to test pages. fbcefc2
Commits on Apr 12, 2011
Mauvis Ledford selector support for Text nodes
eg. Zepto(document.createTextNode('hi there'));
Additionally fix for issue #33
eea08ab
Commits on Apr 18, 2011
@madrobby return null for offset(), width(), and height() for empty sets. fixes #… 2ad719e
@madrobby update README with info on how to submit patches 3e6e82f
Mauvis Ledford selector support for Text nodes
eg. Zepto(document.createTextNode('hi there'));
Additionally fix for issue #33
67118cb
@hardbap hardbap Add a test case for commit eea08ab. Closes #141. 4d6dc98
@madrobby Merge pull request #141 from krunkosaurus/zepto
---

eg. Zepto(document.createTextNode(hi there));
More importantly it fixes issue #140
30e02e4
@madrobby Merge pull request #144 from hardbap/zepto
---

Thomas,

Heres the test case you asked for in issue #141.
f6bd11f
Commits on Apr 21, 2011
@ajdavis ajdavis Test: calling $(document).ready() after doc is loaded executes callba…
…ck immediately

Tests a bugfix in commit ad74718; before that a callback is *never* called in this case
e1b53e3
@andregoncalves andregoncalves Modified event.js to add support for custom event data. Should solve …
…issue #143
5325235
Commits on Apr 24, 2011
@madrobby fix compatibility of attr, fixes #148 a5bf760
@madrobby Merge pull request #145 from andregoncalves/zepto
---

Hey,

Just added support for custom event data + tests.
I added a proxy function to the event listener to make sure that the callback works with the custom data.
This should work with bind and delegate calls.
f5ac38e
@madrobby Merge pull request #137 from ajdavis/zepto
---

(Ignore my previous pull request, I needed to check for readyState loaded, not just complete.)

jQuery compatibility: if document is already loaded, $(document).load(function) calls the function immediately.

Discussion: WebKit supports (since when?) document.readyState (originally an IE extension) and reports "complete" after firing DOMContentLoaded.  Under circumstances I dont fully understand it may also report "loaded", at least in Safari 5.

http://trac.webkit.org/browser/trunk/Source/WebCore/dom/Document.cpp#L1014
9418673
Commits on Apr 25, 2011
@kossnocorp kossnocorp Added failing assertion for form submit functional 8b11127
@kossnocorp kossnocorp Added submit function eec2112
@kossnocorp kossnocorp Added submit function to readme 8d8eec7
@kossnocorp kossnocorp Change code order in form submit assertion 8e412bf
Commits on May 02, 2011
errorhandler Added .empty() fa2ec7b
@madrobby Merge pull request #153 from errorhandler/zepto
---

Ive added a simple `.empty()` method that removes all the elements children.
c28aac5
@madrobby clear out with innerHTML, faster b6b8b6d
@madrobby fix whitespace b563f8b
@madrobby Merge pull request #151 from kossnocorp/zepto
---

This pull request related to #139
0d2eb8a
@madrobby return xhr object on $.ajax call, fixes #119 f3c6078
@madrobby Merge pull request #95 from joaodubas/zepto
---

Enabled vertical swipe, by defining which movement was greater (vertical or horizontal). Also added support to pinch gesture, via gesture events (only available on iOS).
Tests where also generated, on touch.html and gesture.html.
eac226f
@madrobby touch/gesture support is now optional f6f938e
errorhandler Added .replaceWith() 05bfe4d
errorhandler Add another test example 7b0e91e
@madrobby Merge pull request #154 from errorhandler/master.
Added .replaceWith
eb4f84a
Commits on May 03, 2011
@ekhaled ekhaled Add internal helper function for Zepto methods
that also accept functions as arguments
d73726a
@ekhaled ekhaled modify .addClass() to accept functions as argument 50ee09a
@ekhaled ekhaled modify .removeClass() to accept functions as argument 677054c
@ekhaled ekhaled modify .toggleClass() to accept functions as argument 4d6ff56
@ekhaled ekhaled modify .htl and .attr to use new funcArg internal
helper function
bd1903d
@ekhaled ekhaled fix whitespace to follow existing coding convention ba3bc18
@ekhaled ekhaled Documentation update adc14c9
@madrobby Merge pull request #157 from ekhaled/master.
Modify .addClass, .removeClass and .toggleClass to accept functions as arguments.
672767f
@madrobby whitespace d0e614b
Commits on May 04, 2011
@pcwalton pcwalton Remove uses of insertAdjacentElement() f23bcd0
@madrobby Merge pull request #158 from pcwalton/master.
Remove uses of insertAdjacentElement()
7d0b31f
Commits on May 05, 2011
@madrobby cleanups; fix accidental globals; optimize further for gzipping aec627c
@madrobby shorten uniq 742dbf2
@madrobby event.js cleanup; update iphone example; bump rakefile to 0.6 5dccd5b
@madrobby party like it's 2011 f80613b
Commits on May 06, 2011
@madrobby Merge branch 'master' of github.com:madrobby/zepto
Conflicts:
	src/zepto.js
54c9528
@madrobby slightly better final size 9bc1cd3
Joe Lambert Added .appendTo() & .prependTo() functions 2a4df72
Commits on May 07, 2011
Joe Lambert Added test for appendTo() and prependTo() 33ba3c8
Commits on May 08, 2011
@ekhaled ekhaled Added support for .add() with tests b566a9d
@madrobby Merge pull request #161 from joelambert/zepto
---

Added support for reverse operators for appending and prepending elements to the DOM. These functions should behave the same as the jQuery API.
d7c0b98
@madrobby fix formatting 22d442a
@madrobby Merge pull request #162 from ekhaled/zepto
---
e57d374
@madrobby fix test formatting eeff9f9
@madrobby README updates 05598be
Commits on May 14, 2011
@TomK32 TomK32 Just a little update of the current rake output 200c73e
@madrobby Merge pull request #165 from TomK32/master
update of example rake output in README
42f8d07
@madrobby fix detection test, add 4.3 simulator 332f558
@madrobby whitespace c102eaa