Permalink
Commits on Aug 16, 2016
  1. Merge pull request #1218 from ohcibi/fix-events-for-ios-safari

    Catch exception while assigning `event.timeStamp`
    mislav committed on GitHub Aug 16, 2016
  2. Catch exception while assigning `event.timeStamp`

    The `event.timeStamp` property is considered readonly by safari on iOS
    (iOS 9.3.4, Safari 9) and assigning it throws an error which effectively
    disables at least `.on()` and `.click()` listeners. This fixes #1209.
    ohcibi committed Aug 16, 2016
Commits on Jul 13, 2016
  1. Zepto.js 1.2.0

    mislav committed Jul 13, 2016
  2. Add `$.isNumeric()`

    Fixes #847
    mislav committed Jul 13, 2016
  3. Fix `fn.closest()` on collections of multiple elements

    The lookup needs to start on all elements of the collection
    simultaneously and eliminate duplicated results as it traverses up the
    DOM tree. Previously, the lookup only started at the 1st element of the
    collection.
    
    Fixes #1104
    mislav committed Jul 13, 2016
  4. Stop falling back to reading properties in `fn.attr()`

    That's what `prop()` is for. This breaking change is for jQuery 1.6
    compatibility. Also, missing properties now return `undefined` instead
    of `null`.
    
    Fixes #1080
    mislav committed Jul 13, 2016
  5. Add `fn.removeProp()`

    Fixes #1126
    mislav committed Jul 13, 2016
  6. Populate `event.timeStamp` if it's 0 or missing

    Works around an iOS bug (which I couldn't reproduce).
    
    Fixes #1160
    mislav committed Jul 13, 2016
  7. Merge pull request #1200 from madrobby/amd

    Enable AMD-compatible module output
    mislav committed on GitHub Jul 13, 2016
  8. Merge pull request #1201 from madrobby/npm

    Add `make publish` target for npm
    mislav committed on GitHub Jul 13, 2016
  9. Merge branch 'no-warnings'

    Silence warnings that are expected in test mode.
    mislav committed Jul 13, 2016
  10. Silence JSONP reference errors after timeout/abort

    Otherwise errors such as "ReferenceError: Zepto<id> is not defined"
    bubble up to the global error handler and appear in error output.
    mislav committed Jul 13, 2016
  11. Add `make publish` target for npm

    mislav committed Jul 13, 2016
  12. Add `main` field to package.json

    mislav committed Jul 13, 2016
  13. Ignore most files when publishing to npm

    References #1167
    mislav committed Jul 13, 2016
  14. Enable AMD-compatible module output

    When a module loader is present at runtime, this wraps Zepto as an
    anonymous module. It still exports `Zepto` and `$` to the global
    namespace when imported, though, to keep compatibility with plugins
    that expect it there.
    
    With no module loader, zepto.js executes normally.
    
    Opt out of this AMD shim by setting `NOAMD=1` environment variable.
    mislav committed Jul 13, 2016
  15. Fix README links

    mislav committed Jul 13, 2016
  16. Ignore `_zid` when it appears as a leaked global

    That only means that someone has attached an event handler to `window`.
    mislav committed Jul 13, 2016
  17. Fix cleaning up JSONP callbacks in tests

    Follow-up to 4e60179
    mislav committed Jul 13, 2016
  18. Merge branch 'linting'

    mislav committed Jul 13, 2016
  19. Convert few tabs back to spaces

    mislav committed Jul 13, 2016
Commits on Jul 12, 2016
  1. Improve detection of array-like objects

    Previously, a hash with `length: 1` property would be falsely detected
    as array-like object. Adopt the implementation from jQuery for more
    robust "array-like" detection.
    
    Authors: Timmy Willison, Rick Waldron, Richard Gibson.
    
    This approach is still deterred by a hash such as `{ length: 0, a: "b" }`.
    jQuery 3.0.0 seems to suffer from the same problem.
    
    Fixes #918
    mislav committed Jul 12, 2016
  2. Sufficiently randomize JSONP callback names

    Before it was:
    
        window.jsonp1
        window.jsonp2
        ...
    
    Now it's:
    
        window.Zepto<timestamp>
        window.Zepto<timestamp+1>
        ...
    
    References #1154
    mislav committed Jul 12, 2016
  3. Merge branch 'dollar-data'

    Closes #1129
    mislav committed Jul 12, 2016
  4. Add `$.data()`, `$.hasData()`

    Fixes #987
    tomkwok committed with mislav Aug 27, 2015