Skip to content

Commit

Permalink
Remove assertion to on-load
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Sep 12, 2017
1 parent af1b0b0 commit 08af0e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## 6.4.1 - 2017-09-11
- Fixed `afterreorder` hook typo.
- Update `on-load` to handle `<head>` loading.
- Assert `on-load` hooks to run only when `document.body` is available.
- Update `on-load` to handle `<head>` loading and for addded assertions.

## 6.4.0 - 2017-09-04

Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ Nanocomponent.prototype.render = function () {
el = this._handleRender(args)
if (this.beforerender) this.beforerender(el)
if (this.load || this.unload || this.afterreorder) {
assert(document.body, 'nanocomponent: on-load will not work before DOMContentLoaded')
onload(el, self._handleLoad, self._handleUnload, self)
}
timing()
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,21 @@
"nanoassert": "^1.1.0",
"nanomorph": "^5.1.2",
"nanotiming": "^6.1.3",
"on-load": "^3.2.1"
"on-load": "^3.2.3"
},
"devDependencies": {
"@tap-format/spec": "^0.2.0",
"bankai": "^8.1.1",
"bel": "^5.0.0",
"bel": "^5.1.1",
"browserify": "^14.4.0",
"choo": "^5.6.2",
"choo": "^6.0.1",
"choo-log": "^7.0.1",
"dependency-check": "^2.6.0",
"envify": "^4.0.0",
"leaflet": "^1.1.0",
"microbounce": "^1.0.0",
"nanobus": "^4.2.0",
"nanologger": "^1.2.0",
"nanologger": "^1.3.1",
"npm-run-all": "^4.0.2",
"on-idle": "^3.1.0",
"standard": "^10.0.0",
Expand Down

0 comments on commit 08af0e7

Please sign in to comment.