Skip to content

Conversation

@cherifGsoul
Copy link
Member

For example:

class Person extends ObservableArray{
		greetings = 'Hello';
}

const cherif = new Person();

cherif.on('greetings', function (ev, newVal, oldVal) {
	    // it should be observable, handle change here
});

// Property change trigger the handler
cherif.greetings = 'Hola';

For canjs/can-observable-mixin#79

Copy link
Contributor

@phillipskevin phillipskevin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @cherifGsoul, I still don't see the docs. Maybe you forgot to push them?

@cherifGsoul
Copy link
Member Author

Hi @cherifGsoul, I still don't see the docs. Maybe you forgot to push them?

Yeah I found the commit waiting to be pushed :/

@cherifGsoul cherifGsoul requested a review from phillipskevin June 4, 2020 18:07
@cherifGsoul
Copy link
Member Author

@phillipskevin The docs are updated, can you review one more time?

Copy link
Contributor

@phillipskevin phillipskevin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job!

@cherifGsoul cherifGsoul merged commit 138cbe9 into master Jun 11, 2020
@cherifGsoul cherifGsoul deleted the observable-class-field-support branch June 11, 2020 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants