Skip to content
This repository
  • 170 commits
  • 58 files changed
  • 27 comments
  • 31 contributors
Aug 21, 2011
Gobhi Theivendran When there's a tap the swipe event is fired on Nokia Symbian and Play…
…book tablet devices (this should not be the case since this is just a tap and not a swipe). Instead of checking if x2 and y2 are > 0, just checking to see if they are defined fixes this issue. Also re-factored the code a bit by moving the delta comparison in the conditional check. This has been tested on Playbook, Nokia Symbian, iPad and iPhone devices.
7d4f016
Gobhi Theivendran When there's a tap, the swipe event is fired on Nokia Symbian and Pla…
…ybook tablet devices (this should not be the case since this is just a tap and not a swipe). It seems that there is a slight move when tap event is fired on these devices, so touch.x2 and touch.y2 get set. But because the delta comparison Math.abs(touch.x1 - touch.x2) > 30) and Math.abs(touch.y1 - touch.y2) > 30) are inside the conditional block that checks if touch.x2 or touch.y2 > 0, the last conditional else if ('last' in touch) is never reached. Moving the delta comparison in the conditional check fixes this issue. This has been tested on Playbook, Nokia Symbian, iPad and iPhone devices
b2e75d2
Sep 23, 2011
Lindsey Simon Edited src/ajax.js via GitHub f192bd0
Lindsey Simon Edited README.rdoc via GitHub 940e2ba
Oct 31, 2011
Lindsey Simon Update test/ajax.html 6acd08d
Nov 26, 2011
Tristan Dunn correct ajaxComplete argument order for JSONP abort and timeout 3436b3f
Pamela Fox remove misleading "you need to include touch.js"
"touch.js" is included in the default distribution
423b753
Pamela Fox add eq() to docs 51748e7
Pamela Fox docs: width() is equivalent to jQuery outerWidth() 6e563ed
Pamela Fox document recently added on/off() to README a92b7a4
Pamela Fox docs: extend() can be used with multiple objects e6d7962
Mislav Marohnić it's not WebKit-only anymore 71182cf
Mislav Marohnić remove confusing note about "extension development" 3d3ccb3
Aeron Glemann Fixes fragment func f16459a
Mislav Marohnić fix $.each context
Closes #295
e796f30
Mislav Marohnić exclude FIELDSET elements from serializeArray()
This affected Google Chrome.

Closes #340
4da02ac
Nov 27, 2011
Thomas Fuchs for functional tests, show the userAgent to make it easier to compare…
… cross-platform/version results
6a110b7
Thomas Fuchs Add BlackBerry Tablet OS as a primary supported platform 14c31af
Nov 30, 2011
David Kaneda Add new singleTap event, modify behavior for firing tap.
Allows devs to use either "tap" or "singleTap," depending on whether they want to use the 250ms "buffer" for a doubleTap.

Also cache the element for performance, and avoid the target keyword.
664aa8f
Thomas Fuchs Merge pull request #346 from davidkaneda/master
Modification to tap behavior
92c8c6d
Dec 04, 2011
Thomas Fuchs Merge pull request #282 from elsigh/zepto
---

Conflicts:
	README.rdoc
c2580e3
Dec 05, 2011
Léo Renaud-Allaire Correct misleading instructions in README f7aac74
Dec 20, 2011
Thomas Fuchs new example for the holidays 9028de5
Thomas Fuchs whitespace 5c54c97
Thomas Fuchs garbage collect 8840a02
Dec 27, 2011
Edward Tsech add $.inArray() 9e0be09
Jan 15, 2012
Thomas Fuchs Merge pull request #354 from renaudleo/master
Correct misleading instructions in README
8db66e2
Thomas Fuchs adjust copyright years 5eaef37
Feb 08, 2012
David Brockman Smoliansky Calling get() without an index return array of all elements found (ac…
…cording to documentation). The problem was that it returned the zepto object (not a real array).
ffd144b
Feb 09, 2012
Drew Stokes return empty array when querying invalid node type 5179f9b
Feb 12, 2012
Thomas Fuchs Merge pull request #393 from dstokes/master
Return an empty array when querying an invalid nodeType
9d08034
Feb 13, 2012
David Brockman Smoliansky added tests for method get b932aa4
Feb 14, 2012
Thomas Fuchs Merge pull request #391 from dbrockman/patch-1
Calling get() without an index return array of all elements found
a8a656f
Feb 15, 2012
Thomas Fuchs snow example fix 83ce326
Thomas Fuchs Merge branch 'master' of github.com:madrobby/zepto ec97396
Thomas Fuchs JSONP requests that hit a 404 will now correctly invoke the error cal…
…lback. Fixes #388. (thanks @thijs for the patch)
0c7be15
Thomas Fuchs JSONP requests that hit a 404 will now correctly invoke the error cal…
…lback. Fixes #388.

Thanks @tvandervossen for the patch.
896014d
Thomas Fuchs Merge branch 'master' of github.com:madrobby/zepto 6f80dae
Feb 21, 2012
Joe Lambert Added support for `blur` & `focus` in `delegate()`
Manipulated `blur` & `focus` into `focusout` & `focusin` so that the events bubble and can be caught.
8738892
Joe Lambert Added support for `blur` and `focus` in `delegate` for Firefox ab2a3ef
Ron Derksen made $.fn.load more compatible with jQuery
in jQuery, $.fn.load doesn't execute scripts when a selector is used.
This commit adds that behaviour to Zepto.js
ad2cde9
Feb 22, 2012
Drazen Mokic added 'singleTap' event to README db4d4b6
Drazen Mokic added 'singleTap' event to README d209312
Drazen Mokic added 'singleTap' event to README ef8c73f
Drazen Mokic added 'singleTap' event to README 4b81fef
Drazen Mokic added 'singleTap' event to README 6133eab
Ron Derksen added tests for updated load method 1f59e42
Feb 27, 2012
Ramin B. Update README to include some basic instructions to edit/run the unit…
… tests.
5e7efdd
Feb 28, 2012
Thomas Fuchs ignore some more dirs 0a96d17
Thomas Fuchs Merge pull request #411 from i8ramin/zepto
---

The current README file lacks any documentation on how to run the unit tests. There seem to be two different set of tests as well. I am not sure if I have covered everything here, but please update the docs with better information on how to run the tests and how to determine if they all pass.
672bf5a
Thomas Fuchs update readme 0d3a799
Thomas Fuchs Merge pull request #403 from chevalric/zepto
---

The jQuery load() function strips out scripts when a selector is used, i.e. 
$(".page").load("/some/path/to/page.html #page") wont execute any scripts in the loaded url, but 
$(".page").load("/some/path/to/page.html") will execute the script.

The attached pull request copies this behaviour to Zepto.js
a3d20bf
Thomas Fuchs whitespace 433df87
Feb 29, 2012
Ben Gourley Set relevant transition props instead of 'all' 6fe39a0
Mar 05, 2012
Dan Jordan Cancelled longTap timeout if touchmove is detected ea9759c
Mar 07, 2012
John Boxall Expect $(domElement1, domElement2) to return [domElement1] like jQuery. 62a192c
Mar 13, 2012
Leonardo Dutra Smaller assets (removed unneccessary diff test). 47dd29d
Leonardo Dutra Smaller dectect.js. Inline optimizations. 90b36ca
Mar 17, 2012
Thomas Fuchs Merge pull request #405 from drale2k/master
Added documentation for the "singleTap" event to README
b5b9b41
Thomas Fuchs Update README.md b7795fd
Thomas Fuchs Merge pull request #402 from joelambert/master
Added support for `blur` and `focus` when used with the `delegate()` function
1e036fc
Thomas Fuchs show number of assertions when running unit tests 8f1834f
Thomas Fuchs Merge pull request #434 from LeoDutra/patch-2
Smaller assets.js (removed unneccessary diff test).
0d73393
Thomas Fuchs Merge pull request #435 from LeoDutra/patch-3
Smaller dectect.js. Inline optimizations.
ab055cc
Mar 19, 2012
Claudius Coenen Fixing transitionEnd-Event Bubble-Error Issue #305 a1daca6
Mar 20, 2012
Claudius Coenen Adding a test and a minor fix to fx, bubbling-fix now doesn't break
0-duration anim.
8aaeff1
Thomas Fuchs Merge pull request #444 from meso-unimpressed/anim-bubble-issue305
Fixing transitionEnd-Event Bubble-Error Issue #305
43dccd7
Mar 28, 2012
Thomas Fuchs remove trailing semicolons in core 4624c71
Thomas Fuchs more purging 0366f9a
Thomas Fuchs no one escapes the austrian inquisition 68cbe1f
Thomas Fuchs add semicolon-less rules d499e2a
Thomas Fuchs be nice 415f88a
Thomas Fuchs remove closure compiler and yui compressor, go uglifyjs 18f8a47
Thomas Fuchs remove semicolons in tests 3a8e945
Thomas Fuchs remove semicolons from examples 4826dc6
Thomas Fuchs stylistic fixes 8c22096
Thomas Fuchs more cleanups to make code more delectable 96a0ef4
Thomas Fuchs some more little cleanups 87bd3ba
Ramin B. calling val() on non existent element should return undefined 27f33dc
Ramin B. extend should not copy over undefined values df87f78
Mar 29, 2012
Thomas Fuchs Merge pull request #457 from i8ramin/val-undefined
calling val() on non existent element should return undefined
c30b800
Thomas Fuchs Merge pull request #458 from i8ramin/extend-undefined
extend should not copy over undefined values
876eaa1
Thomas Fuchs Merge branch 'master' into semicolon-purge
Conflicts:
	src/zepto.js
	test/zepto.html
353e9db
Thomas Fuchs fix semicolons in README 41fe2cd
Thomas Fuchs move end() and andSelf() are now in the stack.js plugin 9e03f25
Mar 30, 2012
Thomas Fuchs add public/ to .gitignore b3547a8
Thomas Fuchs make $() wrap JS objects, only trigger events on DOM elements; fixes #… b25065c
Mar 31, 2012
Thomas Fuchs add $.isPlainObject; closes #443 4bb0332
Thomas Fuchs add tests for and fix isFunction on Chrome; fixes #461 61230f5
Thomas Fuchs clean up semicolons in zepto.html unit test file d10a88d
Apr 01, 2012
Thomas Fuchs remove jasmine-based tests (we will add this back later) a889a8f
Thomas Fuchs Update the README to point to the new documentation site. 8b96474
Apr 02, 2012
Thomas Fuchs add example of falling back to jQuery 5050523
Thomas Fuchs fix whitespace cd00805
Thomas Fuchs shorter 9c95803
Mike Kelly Use isFunction not typeof within isPlainObject c9215ff
Thomas Fuchs detect the silk browser (needs more cleanup work, see the todo in det…
…ect.js)
e97d100
Apr 03, 2012
Tom Melamed Updating 'data' method to return undefined when there is no data asso…
…ciated with that key. This is consistent with jQuery documentation and also flows through to cause the same result when using the data extension.
ef08167
Tom Melamed Update src/data.js to allow the storing of functions as data. This is…
… consistent with the JQuery documentation.
850342f
Tom Melamed Update tests to correct behaviour when setting functions and to test …
…for an atribute that doesn't exist.
3016827
Apr 04, 2012
Thomas Fuchs return a new array from $() calls with no nodes returned, as mentione…
…d in #448
4a0c619
Thomas Fuchs Expose an API for extending/overriding Zepto internals as $.zepto.ini…
…t, $.zepto.fragment, $.zepto.Z and $.zepto.isZ, which make it possible to extend/patch Zepto via plugins to support more environments
39c073c
Thomas Fuchs Start to document the source with docco. 09f21d3
Thomas Fuchs more docco docs 3242a48
Thomas Fuchs fix $.each logic; fix $.zepto.qsa reference in event.js 0a8a589
Thomas Fuchs Merge pull request #463 from mikekelly/master
Use isFunction not typeof within isPlainObject
9eaa28a
Thomas Fuchs Merge pull request #426 from johnboxall/zepto
---

Sometimes we anchor Zepto to a particular DOM element to make querying easier eg:

    function anchor(context) {
        return function(selector) {
            return Zepto(selector, context)
        }
    }

    var $ = anchor(domElement)
    $(h1)
    $(otherDomElement)

Currently passing a DOM element and a context results in an error.

Conflicts:
	src/zepto.js
	test/zepto.html
5f52009
gregorymostizky css(property,'') removes the style as in jquery - both usage cases c711f8d
Thomas Fuchs Merge pull request #467 from hardbap/zepto
---

Patch from @gregorymostizky for #327 with tests.
5f4eebd
Thomas Fuchs Describe how to build custom Zepto versions 1735732
Apr 05, 2012
Ben Gourley Merge https://github.com/madrobby/zepto
Conflicts:
	src/fx.js
	test/fx.html
1bf1e46
Ben Gourley Fully remove transition related properties rather than setting sensib…
…le defaults
6982ad7
Mislav Marohnić rewrite Readme to be more succinct & to the point 19895fa
Mislav Marohnić linkify modules to their source files 8f0298d
add ability to set data attributes via .data(obj) 134ea10
whitespace e15477b
Thomas Fuchs Merge pull request #465 from gingertom/zepto
---

Ive made two changes that make Zepto more like the documentation and functionality of jQuery as Zepto is designed to be a drop in replacement for the functions it supports I consider this to be a positive change.

1st Change. When getting $elem.data("missing") on a real element but for a piece of data that was never set the old return value was null. However jQuery returns undefined. This change means that with or without the data extension the retuned value is now undefined.

2nd Change. This one is more controversial but I feel that its the right thing to do. Currently when data is passed a function to store the function is immediately evaluated and the result of that function is stored, this is not what jQuery does and makes very inconvenient to store functions. This change allows for the storage of functions, in line with jQuery.

Ive included updated test that reflect both of these changes.
72b9513
Thomas Fuchs remove code to detect 3D CSS support on WebKit because of side effect…
…s; just use normal scale CSS instead. Fixes #377
a38473c
Thomas Fuchs Merge pull request #421 from danjordan/zepto
---

Im unsure whether longTap should fire when scrolling. To counteract this Ive cleared the longTap timeout if touchmove is detected.

Conflicts:
	src/touch.js
d4bd9e6
Thomas Fuchs fix #407 a96836d
Apr 06, 2012
Mislav Marohnić add $.proxy()
References #462
6e7a3e5
ajax: respect Content-Type of the response if `dataType` isn't set
So if dataType is not set, and the response type is "application/json",
the response text will now get parsed as JSON.

Fixes #331
7da082e
Mislav Marohnić ajax: clean up appending query string to URL 8aa6364
Mislav Marohnić ajax: improve response type handling
references #332
6529cc0
Mislav Marohnić refactor all rake tasks to be more rake-y 6b8fc41
Mislav Marohnić include edge revision in dist file, exclude copyright info 3eff37c
Mislav Marohnić ajax: add support for 'jsonp' dataType
Closes #367
7572f37
Leonid Bugaev ajax: add `data` support for JSONP
Appends data to the URL as query string, just as in normal `$.ajax()` calls.

Example:

  $.ajax({
    url: "http://example.com/api.json?callback=?",
    data: {
      "user": "Tod",
      "age": "26"
    }
  })
86a7881
Mislav Marohnić ajax: improve serializing GET query string data
References #356
1a62509
Mislav Marohnić ajax: work around Chrome CORS bug when data is empty
Fixes #319
08e1b7c
Mislav Marohnić it's zeptojs.com 877a5cc
Apr 07, 2012
Mislav Marohnić prove that one can create OPTION elements via `$()`
Issue exists in Firefox 3.6 but not in newer versions.

Closes #373
9f08cca
Alex Wilson have `filter()` and `is()` use `matchesSelector` if available
Fall back to performing `$$()` when not available.
5f68109
Mislav Marohnić cleanup `matches()` function, fix failing `is()` test 52ebf4a
Mislav Marohnić rewrite `closest()` to take advantage of `matches()` function
This fixes using `closest` on detached DOM fragments.

Fixes #378
cf9bbd3
Mislav Marohnić improve dealing with DOM fragments and orphans
When DOM elements are generated via `$()`, they are now immediately
orphaned (previously they belonged to a temporary internal element).

When trying to insert DOM nodes around an orphan via `before()` or
`after()`, they now become orphaned too (instead of the operation being
a no-op).

Fixes #417
f680984
Alex Wilson more tests for `is()` on an orphan element
references #326
3fed3c1
Thomas Fuchs add a simple touch events example dc1a70e
Mislav Marohnić don't choke on HTML comments when creating DOM fragments
Fixes #427
cff4f0f
Mislav Marohnić slight cleanup of wrapping text nodes 2211954
Nick Moore `append()` & family can accept multiple arguments
fixes #413
3473f65
Mislav Marohnić add test for `append()` with multiple arguments 3f7331c
Apr 08, 2012
Mike Kelly allow Content-Type to be set for ajax requests via headers 4f37a06
Mislav Marohnić ajax: simplify setting Content-Type
references #472
ad7f4f9
Thomas Fuchs Merge pull request #416 from bengourley/zepto
---

If you want to instantaneously alter the CSS of an element while some of its properties are being animated with a call to zeptos `animate()` function, the alteration to the CSS is animated too. This is because the transition was set using the shorthand syntax where only one property can be applied and all was used, eg.: `transition: all 0.3s ease-in-out;`.

I have factored out the transition into the more explicit components, `transition-property`, `transition-duration` and `transition-timing-function` so that only the properties that are modified in the call to `animate()` are transitioned.

This fixes my use case where an element that had an animation sprite as its background (so no transition required on `background-position`), was animated across the screen (transition required on `transform`).

I have updated the test `fx.html` to reflect this change.
4d27333
Mislav Marohnić support camelized names in `data()` method
  - `data('fooBar')` reads from "data-foo-bar" attribute
  - data.js plugin is improved to store keys in camelCase form

Closes #471
2fb231b
Mislav Marohnić data module: have initial data hold "data-*" attribute values
closes #470
4cf3020
Mislav Marohnić add `removeData()` method to data module
closes #383
cfe8b33
Thomas Fuchs Merge pull request #259 from gobhi/zepto
---

When theres a tap, the swipe event is fired on Nokia Symbian and Playbook tablet devices (this should not be the case since this is just a tap and not a swipe).

It seems that there is a slight move when tap event is fired on these devices, so touch.x2 and touch.y2 get set.  But because the delta comparison Math.abs(touch.x1 - touch.x2) > 30) and Math.abs(touch.y1 - touch.y2) > 30) are inside the conditional block that checks if touch.x2 or touch.y2 > 0, the last conditional "else if (last in touch)" is never reached.  Moving the delta comparison in the conditional check fixes this issue.

This has been tested on Playbook, Nokia Symbian, iPad and iPhone devices.

Conflicts:
	src/touch.js
bda8af4
Thomas Fuchs add automated unit tests for touch module; missing longtap and specif…
…ic swipe directions
f315264
Thomas Fuchs Use simulated touch events to enable testing of touch events on devic…
…es that do not or not properly support generating touch events
1d3fa22
Thomas Fuchs remove debug code c0c8d8b
Mislav Marohnić add `fn.prop()` ade7931
Mislav Marohnić improve Ember.js compatibility
references #462
60c7919
Mislav Marohnić enable overriding internal core functions such as `$.zepto.qsa()`
Previously some of core functionality referenced them via local
variables, meaning overriding them on the `$.zepto` object wouldn't have
effect. This removes such local variables.
7f43ed1
Mislav Marohnić experimental support for jQuery CSS pseudo-selectors
fixes #323
f716bad
Thomas Fuchs start to refactor touch.js and add more tests (test for #454 is faili…
…ng for now)
ce2a4ea
Apr 09, 2012
Mislav Marohnić show how to build with "selector" module e8a5510
Mislav Marohnić expose "selector" module filters as `$.zepto.cssFilters` 76d324e
Mislav Marohnić add `fn.clone()` eb4808b
Alex Wilson don't try to manipulate attributes on non-element nodes
fixes #312
fba5d36
Mislav Marohnić add more tests for `attr()`, `removeAttr()`
references #473
98609c0
Mislav Marohnić trash legacy headless runner support code 7576bfc
Mislav Marohnić get Zepto version string from `git describe` 3f6172d
Mislav Marohnić `rake test` runs tests with PhantomJS 5f221a2
Mislav Marohnić fix `rake docco`
We can't generate individual files since that breaks docco's
jump-to-file feature.
4e2690f
Mike Breen Ajax: HTTP 304 status code should not be treated as error.
This adds a test for issue #386.
b8f4762
Mislav Marohnić handle null selector passed to `on()` & `off()`
fixes #400
ba883a7
Mislav Marohnić one more `on()` test 671a350
Mislav Marohnić framework ☞ library df641c3