Changeset 15097


Ignore:
Timestamp:
03/18/13 14:44:23 (12 years ago)
Author:
tbretz
Message:
Added how to look for an already open Subscription.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/doc/Subscription.js

    r15077 r15097  
    2323 * too much.
    2424 *
     25 * Each subscription must exist only once, therefore the function-call
     26 * can be used to check for an open subscription. 
     27 *
    2528 * @param {String} service
    2629 *    Name of the DIM service to which a subscription should be made.
     
    3841 *
    3942 * @example
    40  *    var handle1 = new Subscription("MAGIC_WEATHER/DATA");
     43 *    var handle1 = Subscription("MAGIC_WEATHER/DATA");
     44 *    if (!handle1)
     45 *        handle1 = new Subscription("MAGIC_WEATHER/DATA");
    4146 *    var handle2 = new Subscription("TNG_WEATHER/DATA", function(evt) { console.out(JSON.stringify(evt)); });
    4247 *    ...
Note: See TracChangeset for help on using the changeset viewer.