Skip to content

Commit

Permalink
docs(readme): adding notes on events (viewport-units-buggyfill-style)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodneyrehm committed Aug 21, 2015
1 parent 811238f commit ee7c8bf
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,17 @@ In CSS you can declare fallbacks to be used by the buggyfill's hacks:
}
```

The buggyfill emits the event `viewport-unit-buggyfill-init` before initializing and `viewport-unit-buggyfill-style` after applying the fixed styles to the document. The events are dispatched on `window` and may be used as follows:

```js
window.addEventListener('viewport-unit-buggyfill-init', function() {
console.log('getting lost in CSSOM');
});
window.addEventListener('viewport-unit-buggyfill-style', function() {
console.log('updated rules using viewport unit');
});
```


## Cross Origin Stylesheets

Expand All @@ -124,6 +135,10 @@ In CSS you can declare fallbacks to be used by the buggyfill's hacks:

## Changelog

### 0.5.5 (August 21st 2015) ###

* adding events `viewport-unit-buggyfill-init` and `viewport-unit-buggyfill-style` ([#63](https://github.com/rodneyrehm/viewport-units-buggyfill/pull/63) by [redaxmedia](https://github.com/redaxmedia), [#62](https://github.com/rodneyrehm/viewport-units-buggyfill/issue/62))

### 0.5.4 (July 15th 2015) ###

* changing Internet Explorer detection from Conditional Comments to UA sniffing - ([#57](https://github.com/rodneyrehm/viewport-units-buggyfill/pull/57) by [dillonlucente](https://github.com/dillonlucente), [#43](https://github.com/rodneyrehm/viewport-units-buggyfill/pull/43), [#40](https://github.com/rodneyrehm/viewport-units-buggyfill/pull/40))
Expand Down

0 comments on commit ee7c8bf

Please sign in to comment.