- commit
- 5d9a97b5e137288f1336bc663ab0227ee8e3d514
- parent
- 4c0aec5330764b18cc599aa46dd11ab8ea83a9a5
- Author
- leaf corcoran <leafot@gmail.com>
- Date
- 2013-11-16 05:36
docs for detach
Diffstat
| M | site/index.html | 17 | ++++++++++++++++- |
1 files changed, 16 insertions, 1 deletions
diff --git a/site/index.html b/site/index.html
@@ -187,11 +187,26 @@ $("#sticky_item").stick_in_parent()
187 187 });
188 188 ```
189 189
190 -1 Sticky kit listens to one event on `document.body`.
-1 190 Sticky Kit listens to one event on `document.body`.
191 191
192 192 * `sticky_kit:recalc` -- trigger this event to cause all sticky elements to be
193 193 recalculated. More information below.
194 194
-1 195
-1 196 If you want to remove sticky kit from an element after applying it you can send
-1 197 that element a `sticky_kit:detach` event.
-1 198
-1 199 Sticky Kit also listens to an event on the sticky elements:
-1 200
-1 201 * `sticky_kit:detach` -- remove sticky kit and restore element to original
-1 202 position
-1 203
-1 204 For example:
-1 205
-1 206 ```js
-1 207 $("#sticky_item").trigger("sticky_kit:detach");
-1 208 ```
-1 209
195 210 ### Recalculating Sticky Elements
196 211
197 212 If you're changing the markup of your page on the fly by removing, adding or