Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block component and Block event adding is inconsistent #133

Merged
merged 3 commits into from
Sep 14, 2015

Conversation

calclavia
Copy link
Member

To add an event you use events.on() but to add components you don't use components.add() but add(). Small inconsistency, both things seem like a similar thing, but are done in a different way. Would be logical to have them both be add() and on() or like the first line.

@RX14
Copy link
Contributor

RX14 commented Jun 29, 2015

I would say there should be a component container for each block, which is called components instead of block extending components container...

@RX14 RX14 added the enhancement Nice to have features label Jun 29, 2015
@gjgfuj
Copy link
Contributor

gjgfuj commented Jul 2, 2015

Yeah. A components.add would make a lot more sense imo.

On Mon, 29 Jun 2015 11:24 pm Chris Hobbs [email protected] wrote:

I would say there should be a component container for each block, which is
called componets instead of block extending components container...


Reply to this email directly or view it on GitHub
#133 (comment)
.

@RX14 RX14 added the ready This is ready to be worked on label Jul 10, 2015
@calclavia calclavia modified the milestone: v0.2.0 Jul 28, 2015
@magik6k magik6k added the breaking change This is going to break stuff label Jul 29, 2015
@calclavia calclavia modified the milestones: v0.1.0, v0.2.0 Jul 30, 2015
@calclavia calclavia self-assigned this Jul 30, 2015
@calclavia
Copy link
Member

Should we do components.add or change block to have "on" function?

I can make ComponentProvider extend EventBus.

@RX14
Copy link
Contributor

RX14 commented Jul 31, 2015

What? Why would componentprovider extend event bus? There just needs to be a component provider named components as a field for each block.

@calclavia
Copy link
Member

@RX14 Agreed. Will work on this.

@calclavia
Copy link
Member

TODO: #196

@codecov-io
Copy link

Current coverage is 12.95%

Merging #133 into master will increase coverage by +0.13% as of 5828a90

@@            master    #133   diff @@
======================================
  Files          391     391       
  Stmts        10411   10413     +2
  Branches      1488    1488       
  Methods          0       0       
======================================
+ Hit           1335    1349    +14
+ Partial         76      75     -1
+ Missed        9000    8989    -11

Review entire Coverage Diff as of 5828a90

Powered by Codecov. Updated on successful CI builds.

calclavia added a commit that referenced this pull request Sep 14, 2015
Changed ComponentProvider to have component methods in the components instance variable
@calclavia calclavia merged commit e72e487 into master Sep 14, 2015
@calclavia calclavia removed the ready This is ready to be worked on label Sep 14, 2015
@calclavia calclavia deleted the refactor/component-provider branch September 14, 2015 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change This is going to break stuff enhancement Nice to have features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants