Author: jmorliaguet
Date: Sat Feb 18 11:15:30 2006
New Revision: 2411

Modified:
   cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
Log:

- removed all "back-references". With the event model they are no longer needed
  and they can lead to circular references and memory leaks.



Modified: cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js (original)
+++ cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js Sat Feb 18 
11:15:30 2006
@@ -273,9 +273,6 @@
                 var controller = event.publisher;
                 controller.view = view;
                 controller.register(view);
-                // add a back-reference
-                view.controller = controller;
-
               });
               CPSSkins.subscribe(evt_id, {'subscriber': view});
             });
@@ -885,8 +882,6 @@
       event.subscriber.display(data);
     });
     CPSSkins.subscribe('modified', {'subscriber': view, 'publisher': model});
-    // create a back-reference
-    view.model = model;
   },
 
   removeObserver: function(view) {
@@ -1197,9 +1192,6 @@
     this.hide_effect = def.hide_effect || {};
 
     this.setup();
-
-    // create a back-reference
-    this.widget.view = this;
   },
 
   /* Public API */
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to