Skip to content
This repository has been archived by the owner on Mar 14, 2020. It is now read-only.

[Widget View] Implemented recent widgets feature. #301

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

[Widget View] Implemented recent widgets feature. #301

wants to merge 1 commit into from

Conversation

xuqingkuang
Copy link
Contributor

No description provided.

@xuqingkuang
Copy link
Contributor Author

The code is updated, please review.

Thx a lot! @zhizhangchen

@@ -110,7 +112,7 @@

// First unbind our ADMDesign modelUpdated handler, if any...
if (d && o.modelUpdated) {
d.designRoot.unbind("modelUpdated", o.modelUpdated, this);
d.unbind("modelUpdated", o.modelUpdated, this);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are you removing the "designRoot" when unbinding modelUpdated?

@xuqingkuang
Copy link
Contributor Author

@zhizhangchen The code is updated by your comments, please review.

@@ -109,7 +111,7 @@
d = this.designRoot;

// First unbind our ADMDesign modelUpdated handler, if any...
if (d && o.modelUpdated) {
if (d && d.designRoot && o.modelUpdated) {
Copy link
Contributor

Choose a reason for hiding this comment

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

d.designRoot should be this.designRoot

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Please see line 114 - d = this.designRoot.

@xuqingkuang
Copy link
Contributor Author

@zhizhangchen The code updated by your comments, please review.

@xuqingkuang
Copy link
Contributor Author

The code updated by your comments, please review. @zhizhangchen

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants