Skip to content

Commit

Permalink
README copy edits; bower ignore; MIT lic in js header
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Jan 24, 2014
1 parent d0e8335 commit 68d49c7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ Contains movement to the bounds of the element. If `true`, the container will be

**Type:** _Array_

**Values:** `[ x, y ]`

``` js
grid: [ 20, 20 ]
```

Snaps the element to a grid, every x and y pixels `[ x, y ]`.
Snaps the element to a grid, every x and y pixels.

### handle

Expand All @@ -74,7 +76,7 @@ handle: '.handle'

Specifies on what element the drag interaction starts.

`handle` is useful for when you want not all inner elements to be used for dragging, like inputs and forms. See [back handle example on CodePen](http://codepen.io/desandro/pen/znAuH).
`handle` is useful for when you do not want all inner elements to be used for dragging, like inputs and forms. See [back handle example on CodePen](http://codepen.io/desandro/pen/znAuH).

## Events

Expand All @@ -93,9 +95,8 @@ draggie.on( 'dragMove', onDragMove );
// un-bind event listener
draggie.off( 'dragMove', onDragMove );
// return true to trigger an event listener just once
draggie.on( 'dragMove', function() {
draggie.once( 'dragMove', function() {
console.log('Draggabilly did move, just once');
return true;
});
```

Expand Down
6 changes: 5 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@
"eventie": "desandro/eventie",
"get-size": "desandro/get-size#>=1.1.4 <2",
"get-style-property": "desandro/get-style-property"
}
},
"ignore": [
"**/.*",
"index.html"
]
}
1 change: 1 addition & 0 deletions draggabilly.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* Draggabilly v1.0.9
* Make that shiz draggable
* http://draggabilly.desandro.com
* MIT license
*/

( function( window ) {
Expand Down

0 comments on commit 68d49c7

Please sign in to comment.