Skip to content

Commit 7a4679c

Browse files
knownasilyarwjblue
authored andcommitted
Cleanup (rust-lang#214)
* Cleanup * More
1 parent 38e84ab commit 7a4679c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

text/0000-custom-components.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Since those proposals, we have rewritten Ember's rendering engine from the groun
4848
up (the "Glimmer 2" project). One of the goals of the Glimmer 2 effort was to
4949
build first-class primitives for our view-layer features in the rendering engine.
5050
As part of the process, we worked to rationalize these features and to re-think
51-
the role of components in Ember.js. This execrise has brought plenty of new ideas
51+
the role of components in Ember.js. This exercise has brought plenty of new ideas
5252
and constraints to the table.
5353

5454
The initial Glimmer 2 integration was completed in [November](http://emberjs.com/blog/2016/11/30/ember-2-10-released.html).
@@ -330,7 +330,7 @@ class MyManager implements ComponentManager<MyStateBucket> {
330330

331331
instance.setProperties(args.named);
332332

333-
return { secret, instance };
333+
return { immutable, instance };
334334
}
335335

336336
// expose the component instance (but not the internal details) as
@@ -383,7 +383,7 @@ class PooledManager implements ComponentManager<Object> {
383383
return instance;
384384
}
385385

386-
...
386+
//...
387387

388388
}
389389
```
@@ -398,7 +398,7 @@ with individual features PAYGO (pay-as-you-go). The Glimmer architecture makes
398398
it possible to break down the work of component invocation into small pieces.
399399

400400
For example, a "template-only component" doesn't need Glimmer to invoke any
401-
the hooks related to lifecycle management of the *component instance*.
401+
of the hooks related to the lifecycle management of the *component instance*.
402402
Therefore, in an ideal world, they should not pay the cost associated with
403403
invoking those hooks.
404404

@@ -427,7 +427,7 @@ const { capabilities, definition } from Ember.Component;
427427
export default definition({
428428
name: "foo-bar",
429429
capabilities: capabilities("2.13"),
430-
...
430+
//...
431431
});
432432
```
433433

@@ -474,7 +474,7 @@ export default definition({
474474
someFeature: true,
475475
anotherFeature: true
476476
}),
477-
...
477+
//...
478478
});
479479
```
480480

0 commit comments

Comments
 (0)