Skip to content

Commit

Permalink
Merge pull request #5 from loranallensmith/default-component-update
Browse files Browse the repository at this point in the history
Default component update
  • Loading branch information
Allen Smith authored Nov 4, 2016
2 parents b3d62c5 + 1454059 commit eec87dd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $ npm install --save brightwheel

Include Photon styles in your HTML file's `<head>`.
```html
<script src="path/to/photon.css" charset="utf-8"></script>
<link rel="stylesheet" href="path/to/photon.css" media="screen" title="no title">
```

Import Brightwheel components into your project.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "brightwheel",
"version": "0.1.3",
"version": "0.1.5",
"description": "Build beautiful Electron user interfaces with Photon and Etch",
"repository": "loranallensmith/brightwheel",
"author": "Allen Smith &lt;[email protected]&gt;",
Expand Down
2 changes: 2 additions & 0 deletions src/brightwheel-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class BrightwheelComponent {
update (properties, children) {

// perform custom update logic here...
this.properties = properties;
this.children = children;

// then call `etch.update`, which is async and returns a promise
return etch.update(this)
Expand Down
5 changes: 0 additions & 5 deletions src/icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ class Icon extends BrightwheelComponent {
return (<span {...this.properties.attributes} className={classes}></span>);
}

update(properties, children) {
this.properties = properties;
this.children = children;
return etch.update(this);
}

}

Expand Down

0 comments on commit eec87dd

Please sign in to comment.