www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

port.js (628B)


      1 function MPort(mListePorts) {
      2     makeUid(this);
      3     makeField(this, 'mListePorts', mListePorts);
      4     //makeField(this, 'connexionEntrante', null); // Oui mais… quand on a plusieurs définitions
      5     //makeCollection(this, 'connexionsSortantes');
      6 }
      7 
      8 function VPort(mPort, emplacement) {
      9     makeView(this, 'vPort', emplacement);
     10     
     11     this.mPort = mPort;
     12     var that = this;
     13     
     14     this.cbClick = [];
     15     
     16     this.vue.click(function() {
     17         singleton.portClickA.mPort = mPort;
     18         faireCallbacks(that.cbClick, mPort);
     19     });
     20 
     21     this.onClick = function(callback) {
     22         that.cbClick.push(callback);
     23     };
     24 }