Skip to content

Commit e42df13

Browse files
committed
feat(rename): rename View to Element
1 parent 57deceb commit e42df13

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

examples/fast-blur/fast-blur.html

+1-9
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
return {
1717
Blur: {type: lng.components.FastBlurComponent, amount: 2, w: 900, h: 900, content: {
1818
Sub: {
19-
type: Sub,
20-
signals: {yes: true}
19+
type: Sub
2120
},
2221
Texture: {
2322
src: "../rockies.jpeg"
@@ -32,25 +31,18 @@
3231
$getApi() {
3332
return 123;
3433
}
35-
36-
yes(msg) {
37-
console.log('hello', msg);
38-
return 123;
39-
}
4034
}
4135

4236
class Sub extends lng.Component {
4337
static _template() {
4438
return {
45-
passSignals: {yes: true},
4639
SubSub: {type: SubSub}
4740
}
4841
}
4942
}
5043

5144
class SubSub extends lng.Component {
5245
_firstActive(){
53-
console.log(this.signal('yes', 'bla'));
5446
const api = this.fireAncestors('$getApi');
5547
}
5648
}

src/tree/Stage.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ export default class Stage extends EventEmitter {
290290

291291
createElement(settings) {
292292
if (settings) {
293-
return this.elements(settings);
293+
return this.element(settings);
294294
} else {
295295
return new Element(this);
296296
}

src/tree/core/ElementCore.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,7 @@ export default class ElementCore {
16561656
}
16571657

16581658
if (this._onAfterUpdate) {
1659-
this._onAfterUpdate(this.elements);
1659+
this._onAfterUpdate(this.element);
16601660
}
16611661
} else {
16621662
if (this.ctx.updateTreeOrder === -1 || this._updateTreeOrder >= this.ctx.updateTreeOrder) {

0 commit comments

Comments
 (0)