Author: jmorliaguet
Date: Sat Mar  4 00:23:48 2006
New Revision: 2519

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

- renamed 'modified' as 'changed'



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 Mar  4 
00:23:48 2006
@@ -1011,17 +1011,17 @@
   addObserver: function(view) {
     var model = this;
     // observers subscribes to events on the model
-    CPSSkins.registerEventHandler('modified', view, function(event) {
+    CPSSkins.registerEventHandler('changed', view, function(event) {
       var data = event.publisher.readData();
       event.subscriber.display(data);
     });
-    CPSSkins.subscribe('modified',
+    CPSSkins.subscribe('changed',
       {'subscriber': view.getId(), 'publisher': this.getId()}
     );
   },
 
   removeObserver: function(view) {
-    CPSSkins.unsubscribe('modified',
+    CPSSkins.unsubscribe('changed',
       {'subscriber': view.getId(), 'publisher': this.getId()}
     );
   },
@@ -1049,7 +1049,7 @@
 
     // the model reacts to events on the storage and notifies observers
     CPSSkins.registerEventHandler('stored', model, function(event) {
-      CPSSkins.notify('modified', {'publisher': model});
+      CPSSkins.notify('changed', {'publisher': model});
     });
 
     CPSSkins.subscribe('stored', {'subscriber': model, 'publisher': storage});
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to