Changeset 2593


Ignore:
Timestamp:
02/14/13 20:22:08 (11 years ago)
Author:
olhsha
Message:

correcting comments. As for "_itemDescription gets null" issue, this seems to be because delete comments also dispatches DELETE_ITEM evend that causes total rfersh of the info-panels. This seems to be an old story, see DeleteService? class, deleteComments method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/CommentsPanel.as

    r2592 r2593  
    3333                public static const COMMENTS_LOADED:String = "commentsLoaded";
    3434               
     35               
    3536                [Bindable]
    3637                private var _itemDescription:ItemDescription;
     
    6061                        // this is for responding to the deletion of comments. At this point there is no way to distinghuish between item and component deletion
    6162                        // and that probably is fine since they mostly require the same response. It does mean that this component will also reload when a
    62                         // component gets deleted, which is a bit superfluous.
     63                        // commment gets deleted, which is a bit superfluous.
    6364                        DeleteService.instance.addEventListener(DeleteService.ITEM_DELETED, commentDeletedHandler);
    6465                }
     
    8889                                addChild(commentsBox);
    8990                               
    90                                 // A panel for posting a comment (or a message 'login to post');
    91                                 // duplication addPostPanel();
    9291                               
    9392                                // Do actual loading
Note: See TracChangeset for help on using the changeset viewer.