Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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
Commits on Mar 30, 2011
@tomger tomger Let css() add "px" when appropriate. 9e72507
Commits on May 08, 2011
@ffdead ffdead Added support for triggering Event objects - increased compability wi…
…th jQuery interface
6c115a6
@ffdead ffdead Added $.Event() constructor with jQuery 1.6 interface
Added tests for $.Event() and .trigger(eventObj)
3b60d77
Commits on May 15, 2011
@deepsweet deepsweet $(document.createDocumentFragment()) fix. c2a3f2b
@deepsweet deepsweet add a test for documentFragment. cf0cc6a
Commits on May 16, 2011
@aglemann aglemann Implement wrap/wrapAll e641fd5
@aglemann aglemann Optimization + tests for wrap/wrapAll e75d7cf
Commits on May 17, 2011
@romac romac Fixes a typo in the Zepto test suite. 038d0f0
@madrobby Merge pull request #168 from romac/038d0f05
Fixes a typo in the "testLive" test.
943afb1
Commits on May 20, 2011
@aglemann aglemann Fixed replaceWith for case where target had no previousSibling c6e0d57
Commits on May 23, 2011
@madrobby Merge pull request #167 from Backcountry/master
wrap/wrapAll + tests
65afc38
@madrobby whitespace 5105da9
@madrobby merge 448f126
@madrobby fix some formatting 2202bea
Commits on May 24, 2011
@madrobby fix misdetections of early WebOS devices, and iPads that think that t…
…hey are just big iPhones, fixes #173
2b6487b
@ekhaled ekhaled Fix .replaceWith to allow more than 1 node as replacement -- with tests 65a1c1d
@ekhaled ekhaled Added support for .unwrap with tests dd7cbd0
Commits on May 26, 2011
@ekhaled ekhaled Set element as context `this` on bound event handlers, with tests 725b1a8
Commits on May 27, 2011
@madrobby Merge pull request #179 from ekhaled/event_contexts
Set element as context `this` on bound event handlers, with tests
5a081a7
@ekhaled ekhaled Fix .replaceWith to allow more than 1 node as replacement -- with tests 8c28a47
@ekhaled ekhaled Added support for .unwrap with tests b193d1a
@ekhaled ekhaled Merge branch 'master' of github.com:ekhaled/zepto 7f66996
Commits on May 28, 2011
@madrobby Merge pull request #175 from ekhaled/master
.replaceWith() fixes and support for .unwrap() with tests
e606a9a
Commits on May 29, 2011
@johnboxall johnboxall Add $.slice w/ tests. 93c426b
Commits on May 30, 2011
@johnboxall johnboxall Add negative indexing support for eq. ccd9455
@johanbrook johanbrook Separated append/prepend and before/after in Readme for clarity. dff5e6e
@johanbrook johanbrook Small fixes. a7c8abb
@johanbrook johanbrook Added info about 'filter'. 12739ba
@johanbrook johanbrook Added info about 'removeAttr' a65338b
@johanbrook johanbrook Added info about 'val' d88b6fd
@johanbrook johanbrook Added info about $.isFunction. $.isObject and $.isArray. 3427eea
@johanbrook johanbrook Added info about 'extend'. 8c37015
@johanbrook johanbrook Added info about 'data' 9f916c8
Commits on May 31, 2011
@madrobby Merge pull request #184 from johanbrook/newreadme
Updates to ReadMe
7b75663
Commits on Jun 01, 2011
Yuri Buyanov replaced insertAdjacentElement with appendChild to make it work in FF 89d8fb0
Commits on Jun 02, 2011
@philnash philnash One event binder callback now receives events in callback c36efa9
@madrobby Merge pull request #188 from philnash/fix-one-event-binder
One event binder callback now receives events in callback
83e5f44
@ekhaled ekhaled fix .one() did not have the element as context `this` 3bb9966
Commits on Jun 03, 2011
@johnboxall johnboxall Add end() support to Zepto by wrapping methods that change the workin…
…g elements.
ca6f41d
Commits on Jun 06, 2011
@fgnass fgnass appendTo() and prependTo() now accept a selector as parameter
for better jQuery compatibility
1253837
@fgnass fgnass Clear selector when called with fragment 25408ec
Commits on Jun 07, 2011
@fdiotalevi fdiotalevi added note to remind users to install the uglifier gem before buildin…
…g zepto
e850034
@madrobby Merge pull request #193 from fdiotalevi/master
Documentation patch
bbe7f0e
@madrobby Merge pull request #192 from fgnass/selector
Clear selector when called with fragment
ff513a2
@madrobby Merge pull request #182 from johnboxall/master
Add $.fn.slice with tests.
ab1dfa5
@madrobby Merge pull request #189 from ekhaled/one_fixes
fix .one() did not have the element as context `this` -- with tests
55b686d
@madrobby Merge pull request #186 from digal/master
Removal of another "insertAdjacentElement" to fix zepto in FF
a8103c7
@johnboxall johnboxall Extend extends. Useful for plugins patterns: var opts = $.extend({}, …
…default, argOptions)
2b55a40
Commits on Jun 14, 2011
@kossnocorp kossnocorp Added failing spec (issue #200) 0f0c652
@kossnocorp kossnocorp Call callback if anim duration is 0 (closes #200) 8d9ee92
@madrobby Merge pull request #201 from kossnocorp/200_zero_anim_duration_bug
Fix "When animation duration is 0 callback never will be called"
c03bef9
Commits on Jun 16, 2011
@johnboxall johnboxall If no argument is passed to the .index() method, the return value is …
…an integer indicating the position of the first element within the Zepto object relative to its sibling elements.
1fa2586
Commits on Jun 17, 2011
@kossnocorp kossnocorp Added failing assertion (issue #206) 5ba4219
@kossnocorp kossnocorp Set transition to none after webkitTransitionEnd event (closes #206) 4101400
Commits on Jun 27, 2011
@madrobby Merge pull request #207 from kossnocorp/206_disable_transition_after_…
…transition_end_event

Disable transition after webkitTransitionEnd event
01e5098
@marioestrada marioestrada text method uses textContent instead of innerText for Firefox compati…
…bility
31fb51b
@madrobby Merge pull request #214 from marioestrada/master
Use textContent instead of innerText to support FF
b33bf64
Commits on Jul 01, 2011
@madrobby Merge pull request #190 from johnboxall/zepto
---

Add end() support to Zepto by wrapping methods that change the working elements.

Conflicts:
	test/zepto.html
ce072be
@madrobby Merge pull request #204 from johnboxall/index
.index() w/ no arg returns position of first element relative siblings
869e453
@madrobby Merge pull request #163 from ffdead/master
Added support for triggering Event objects
01591f2
@madrobby Merge pull request #191 from fgnass/master
Support passing a selector to appendTo/prependTo
c45d67f
@madrobby Merge pull request #194 from johnboxall/extends
Extend extend. Useful for plugins patterns: var opts = $.extend({}, defa
3572c6f
@madrobby Merge pull request #166 from deepsweet/upstream
$(document.createDocumentFragment()) fix.
c4cd3c0
@kossnocorp kossnocorp Added failing assertion (issue #203) 4cdaf27
@kossnocorp kossnocorp Allow to use css properties in anim function (related to issue #203) 1daf83c
@kossnocorp kossnocorp Convert RGB color to HEX in assertion (closes #203) b928798
Commits on Jul 02, 2011
@kossnocorp kossnocorp Added info about Zepto.js Convore group d05c462
@kossnocorp kossnocorp Merge pull request #221 from kossnocorp/203_allow_to_use_css_properti…
…es_in_anim_function

Allow to use css properties in anim function
5aad724
Commits on Jul 03, 2011
@kossnocorp kossnocorp Merge branch 'master' of https://github.com/tomger/zepto into tomger-…
…master

Conflicts:
	src/zepto.js
479a8c9
@kossnocorp kossnocorp Added assertions to pull request #138 50f44bb
@madrobby cleanup fx.js 4058d56
@madrobby cleanup fx.js 788c597
@madrobby cleanup use of var in zepto.js 8a0c798
@madrobby detect hp touchpad 40b93af
@madrobby cleanups 1586b94
@edtsech edtsech Added failing test for number css values #138 c2579fa
@edtsech edtsech Added fix 0f53bd9
@madrobby detect HP TouchPad 6c877b6
@madrobby Merge pull request #222 from edtsech/138_pull_request
138 pull request
ec5e96e
@madrobby support setting camelCased css property names 27b45c0
@edtsech edtsech Support setting camelCased css property with number values 1a4cced
@edtsech edtsech Define css variable locally 411dc73
@edtsech edtsech Added css3 properties to cssNumber & sort it alphabetically 5c3cfd8
@madrobby Merge pull request #224 from edtsech/camelCased_properties_with_numbe…
…r_values

Support setting camelCased css property with number values
31e68ba
@madrobby Merge pull request #226 from edtsech/css_number
Added css3 properties to cssNumber & sort it alphabetically
f12c5cb
@madrobby don't freak out on empty json returns (like on status code 204) 6da1f0a
Commits on Jul 04, 2011
@kossnocorp kossnocorp Merge pull request #225 from edtsech/var_css
Prevent css variable exports into global scope
d870f7b
@kossnocorp kossnocorp Added rake task "rake docs" which generates documentation from source…
… code
676f0e5
@kossnocorp kossnocorp Added copyright notes to top of each source file d36e4f8
@kossnocorp kossnocorp Added doc comments to $.get and $.post functions 0148977
@kossnocorp kossnocorp Added doc comments for $.getJSON, $.fn.load, $.param 8c091a0
@kossnocorp kossnocorp Success argument is optional for $.fn.load a4478c5
Commits on Jul 05, 2011
@madrobby make removeClass() without parameters remove all classes 6795f86
@madrobby tabs: you can't live with them and you can't live with them 43b379f
@madrobby support forcing true/false on .toggle 53e606f
@kossnocorp kossnocorp Added docs comments to $.ajax fd141e9
@kossnocorp kossnocorp Added docs comments to $.ajaxSettings 67fd7bd
@kossnocorp kossnocorp Added docs comments to $.ajaxJSONP e98f69d
@kossnocorp kossnocorp Fix copy-paste victim 22c685f
@kossnocorp kossnocorp Added docs comment to $.fn.remove 884609c
@kossnocorp kossnocorp Added docs comments to $.os 51a304c
@paulmillr paulmillr fix wrap() for Firefox ebef756
@paulmillr paulmillr provide an alternative for outerHTML in tests ad08d2a
@mislav mislav improve NodeList detection in not()
A NodeList is detected by having a `length` property and an `items()`
method. This fixes the method for Firefox, whose NodeList objects don't
pass the `instanceof NodeList` test.

This also optimizes the `not()` method a little by reducing the
unnecessary number of cloned arrays.
8c5df63
@mislav mislav wrap the test input element with a value in a form
It seems that Firefox will completely ignore the "value" attribute if
the input element is not nested inside a form.
d3b798b
Commits on Jul 06, 2011
@kossnocorp kossnocorp Added basic assertion to $.fn.remove() 1e27a67
@kossnocorp kossnocorp Added failing assertion to bug with removing already removed element 8a33348
@kossnocorp kossnocorp Check parentNode exists in $.fn.remove daef1f1
Commits on Jul 07, 2011
Hunter Loftis Fixed html fragment creation $('<th>fragment</th>') by creating a map…
… of special node types to their DOM containers, since <div> cannot contain all elements (th for example).
a67b28a
Hunter Loftis Wrote test for special html fragments. 0753f50
@kossnocorp kossnocorp Merge branch 'hunterloftis-original'
Conflicts:
	src/zepto.js
	test/zepto.html
b06b8b8
@kossnocorp kossnocorp Added failing assertion for #232 2bada65
@kossnocorp kossnocorp Added one more assertion for #232 abde019
@kossnocorp kossnocorp Prevent dom variable exports to global scope e9f99b4
@kossnocorp kossnocorp Added test to node creation via dollar 67e09d0
@kossnocorp kossnocorp Added failing assertion for #233 53a68a3
@madrobby remove failing test for #233 ef8150e
@mislav mislav fix usage of outerHTML in tests 5b47811
@mislav mislav refactor fragments handling to fix edge cases
Two bugs fixed:
 - fragment() method would trim whitespace, which is unwanted behavior
   for text nodes
 - adding some HTML to more than one element (e.g. via the append()
   method) didn't work; it would only add HTML to the last element in
   the collection

Closes #232, references #229
ecb3c70
@mislav mislav avoid testing nodeType with regex 92d30f7
@mislav mislav fix hasClass() on empty collection
closes #211
a5407a1
Commits on Jul 09, 2011
@mislav mislav consistently use "doesnotexist" selector to return no results 8082738
@mislav mislav make width() & height() methods also setters
closes #235
10adad4
@mislav mislav add $.map() and make $.fn.map() same as jQuery's
Method signatures are:

  $.map(object, function(item, index) { ... })
  $(...).map(function(index, item) { ... })

The callback for $.fn.map() is executed with `item` as the value of
`this`, making the method similar to $.fn.each().

Closes #216
869a45d
@mislav mislav enable creating all table elements with $('<...>')
closes #234
858c64b
@madrobby shave a few bytes 87aaf7e
@mislav mislav test $.map() with hash argument 043e1c8
@madrobby one more byte 20956d9
Commits on Jul 13, 2011
@kossnocorp kossnocorp Added form.js 27b6449
@kossnocorp kossnocorp Added failing assertions for $.fn.serializeArray 23b79bb
@kossnocorp kossnocorp Added $.fn.serializeArray function 5998890
@kossnocorp kossnocorp Added failing assertions for $.fn.serialize 6c5fe95
@kossnocorp kossnocorp Use encoded string in $.fn.serialize assertion a291e78
@kossnocorp kossnocorp Added $.fn.serialize function 2945368
@kossnocorp kossnocorp Move $.fn.submit to form.js a29196e
@kossnocorp kossnocorp Added failing assertion for bind via $.fn.submit (related to #150) 80e78f8
@kossnocorp kossnocorp Allow to bind submit event via $.fn.submit (closes #150) 5c0d076
@kossnocorp kossnocorp Added form.js to ZEPTO_FILES in Rakefile 7407d06
@madrobby add info about how to run docco 132d764
@kossnocorp kossnocorp Added failing assertion for #187 31bdaf2
@kossnocorp kossnocorp Allow to return false in events to prevent default (closes #187) 492b36d
@kossnocorp kossnocorp Added failing assertions for #171 and #185 d764290
@kossnocorp kossnocorp Split append and html eval tests 1e6bbf8
@kossnocorp kossnocorp Execute embeded js on $.fn.html and $.fn.append (and friends) — closes
…#171, closes #185
e99a257
Commits on Jul 14, 2011
@max-power max-power add rotate3d to supportedTransforms 48126e0
@kossnocorp kossnocorp Merge pull request #238 from max-power/patch-1
add rotate3d to supportedTransforms
d158a83
@kossnocorp kossnocorp Use setTimeout with 0 delay in $.fn.anim (because just inserted nodes…
… doesn't playback CSS animation without delay)
272513b
@kossnocorp kossnocorp Refactor usage cssProperties in $.fn.anim ec559a4
Commits on Jul 17, 2011
@karolk karolk Edited src/event.js via GitHub a84bb26
Commits on Jul 24, 2011
Sébastien Gruhier fix scale transformation 6f76a87
Commits on Jul 28, 2011
@bjrn bjrn $.fn.serializeArray() now ignores unchecked checkboxes with a value ee38ea5
@mislav mislav Merge pull request #248 from bjrn/master
fix for $.fn.serializeArray() returning values for unchecked checkboxes
a71c62b
Commits on Jul 29, 2011
@madrobby Merge pull request #244 from sgruhier/master
scale transformation fixed
da3a132
@madrobby Merge pull request #240 from karolk/zepto
---

This adds around 300b to the library size but provides support for $.click and other popular events. This is based on jQuery but simplify because Zepto isnt trying to pass data with events.
50f802b
@madrobby merge dom event wrappers patch and add tests f52541d
@mattheworiordan mattheworiordan Support for long tap event 7241894
@mislav mislav disable selecting text in touch functional tests 093474e
Commits on Jul 31, 2011
@madrobby add $.each 6e3e9b6
Commits on Aug 01, 2011
@mislav mislav implement focus() & blur() methods
closes #178
a6144a0
@mislav mislav ability to create events with $.Event() that don't bubble 5f611ef
@mislav mislav fix $.fn.submit() triggerring DOM event handlers
closes #236
5a682f9
@mislav mislav we don't support mouseenter/mouseleave yet 0e572ea
@mislav mislav implement $.fn.triggerHandler() e1bca2d
@mislav mislav remove stray console.log c37694f
@mislav mislav don't expect submit() method to be defined in zepto.js 90a0ec1
@johnboxall johnboxall event handlers now receive custom data in multiple arguments
For jQuery compatibility.

closes #183
11de4dc
@mislav mislav fix submit() test in form.html bbca54c
@madrobby party like it's 0.7 3858eed
@mislav mislav prevent endless submit on test failure in form.html eae1af3