0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-19 16:54:24 +01:00
Aleksey V. Zapparov 626cef9fa4 Pass $element to offset top/bottom calc funcs
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; }
  }
});
```
2013-09-02 03:24:27 +02:00
..
2013-07-25 12:24:13 -07:00
2013-08-02 15:13:12 -07:00
2013-08-11 15:41:06 -07:00
2013-08-12 23:36:25 -07:00
2013-08-17 16:18:26 -07:00
2013-08-17 15:05:59 -07:00
2013-08-10 14:09:05 -07:00
2013-07-25 12:24:13 -07:00