Skip to content

Commit

Permalink
upgrade foundation to 5.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
anselmdk committed Jul 9, 2015
1 parent d68d654 commit d2cbfe8
Show file tree
Hide file tree
Showing 130 changed files with 8,600 additions and 6,774 deletions.
8 changes: 4 additions & 4 deletions bower_components/fastclick/.bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "fastclick",
"version": "1.0.3",
"main": "lib/fastclick.js",
"ignore": [
"**/.*",
Expand All @@ -11,11 +10,12 @@
"examples"
],
"homepage": "https://github.com/ftlabs/fastclick",
"_release": "1.0.3",
"version": "1.0.6",
"_release": "1.0.6",
"_resolution": {
"type": "version",
"tag": "v1.0.3",
"commit": "0ea8330a63019a07c8ccc86deca866bb31189b66"
"tag": "v1.0.6",
"commit": "2ac7258407619398005ca720596f0d36ce66a6c8"
},
"_source": "git://github.com/ftlabs/fastclick.git",
"_target": ">=0.6.11",
Expand Down
23 changes: 15 additions & 8 deletions bower_components/fastclick/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Chrome 32+ on Android with `width=device-width` in the [viewport meta tag](https

Same goes for Chrome on Android (all versions) with `user-scalable=no` in the viewport meta tag. But be aware that `user-scalable=no` also disables pinch zooming, which may be an accessibility concern.

For IE10, you can use `-ms-touch-action: none` to disable double-tap-to-zoom on certain elements (like links and buttons) as described in [this MSDN blog post](http://blogs.msdn.com/b/askie/archive/2013/01/06/how-to-implement-the-ms-touch-action-none-property-to-disable-double-tap-zoom-on-touch-devices.aspx).
For IE11+, you can use `touch-action: manipulation;` to disable double-tap-to-zoom on certain elements (like links and buttons). For IE10 use `-ms-touch-action: manipulation`.

## Usage ##

Expand All @@ -52,14 +52,14 @@ The script must be loaded prior to instantiating FastClick on any element of the
To instantiate FastClick on the `body`, which is the recommended method of use:

```js
window.addEventListener('load', function() {
FastClick.attach(document.body);
}, false);
if ('addEventListener' in document) {
document.addEventListener('DOMContentLoaded', function() {
FastClick.attach(document.body);
}, false);
}
```

Don't forget to add a [shim](https://developer.mozilla.org/en-US/docs/DOM/EventTarget.removeEventListener#Compatibility) for `addEventListener` if you want to support IE8 and below.

Otherwise, if you're using jQuery:
Or, if you're using jQuery:

```js
$(function() {
Expand All @@ -78,13 +78,20 @@ attachFastClick(document.body);

Run `make` to build a minified version of FastClick using the Closure Compiler REST API. The minified file is saved to `build/fastclick.min.js` or you can [download a pre-minified version](http://build.origami.ft.com/bundles/js?modules=fastclick).

Note: the pre-minified version is built using [our build service](http://origami.ft.com/docs/developer-guide/build-service/) which exposes the `FastClick` object through `Origami.fastclick` and will have the Browserify/CommonJS API (see above).

```js
var attachFastClick = Origami.fastclick;
attachFastClick(document.body);
```

### AMD ###

FastClick has AMD (Asynchronous Module Definition) support. This allows it to be lazy-loaded with an AMD loader, such as [RequireJS](http://requirejs.org/). Note that when using the AMD style require, the full `FastClick` object will be returned, _not_ `FastClick.attach`

```js
var FastClick = require('fastclick');
FastClick.attach(document.body);
FastClick.attach(document.body, options);
```

### Package managers ###
Expand Down
1 change: 0 additions & 1 deletion bower_components/fastclick/bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "fastclick",
"version": "1.0.3",
"main": "lib/fastclick.js",
"ignore": [
"**/.*",
Expand Down
Loading

0 comments on commit d2cbfe8

Please sign in to comment.