-
Notifications
You must be signed in to change notification settings - Fork 74
[Widget View] Implemented recent widgets feature. #301
base: master
Are you sure you want to change the base?
Conversation
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); |
There was a problem hiding this comment.
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?
@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) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
@zhizhangchen The code updated by your comments, please review. |
The code updated by your comments, please review. @zhizhangchen |
No description provided.