mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-20 14:30:23 +00:00
At the moment to make dynamic top offset calculator on multiple elements, one would write:
``` javascript
$('.my-affix').each(function () {
var $el = $(this);
$el.affix({
offset: {
top: function () { return $el.offset().top; }
}
});
})
```
This patch will allow to:
``` javascript
$('.my-affix').affix({
offset: {
top: function ($el) { return $el.offset().top; }
}
});
```
|
||
|---|---|---|
| .. | ||
| tests | ||
| .jshintrc | ||
| affix.js | ||
| alert.js | ||
| button.js | ||
| carousel.js | ||
| collapse.js | ||
| dropdown.js | ||
| modal.js | ||
| popover.js | ||
| scrollspy.js | ||
| tab.js | ||
| tooltip.js | ||
| transition.js | ||