Functions | Variables

/home/ivan/src/sit/branches/3.x/scripts/dojo/src/io/RepubsubIO.js File Reference

Go to the source code of this file.

Functions

dojo require ("dojo.event.*")
dojo provide ("dojo.io.RepubsubIO")
 for (var x=0;x< dojo.io.repubsubEvent.prototype.properties.length;x++)

Variables

dojo io repubsubTranport
dojo io repubsub
dojo io repubsubEvent
dojo io repubsubEvent prototype properties = "kn_response_format"]]
dojo io repubsubEvent prototype forwardPropertiesMap = {}
dojo io repubsubEvent prototype reversePropertiesMap = {}
dojo io repubsubEvent initFromProperties

Function Documentation

for (  ) 

Definition at line 327 of file RepubsubIO.js.

                                                                            {
    var tp = dojo.io.repubsubEvent.prototype.properties[x];
    dojo.io.repubsubEvent.prototype.reversePropertiesMap[tp[0]] = tp[1];
    dojo.io.repubsubEvent.prototype.forwardPropertiesMap[tp[1]] = tp[0];
}

dojo provide ( "dojo.io.RepubsubIO"   ) 
dojo require ( "dojo.event.*"   ) 

Variable Documentation

Definition at line 325 of file RepubsubIO.js.

Initial value:
 function (evt) {
    var eventObj = new dojo.io.repubsubEvent();
    eventObj.initFromProperties(evt);
    return eventObj;
}

Definition at line 332 of file RepubsubIO.js.

dojo io repubsubEvent prototype properties = "kn_response_format"]]

Definition at line 324 of file RepubsubIO.js.

dojo io repubsub

Definition at line 41 of file RepubsubIO.js.

dojo io repubsubEvent

Definition at line 288 of file RepubsubIO.js.

Initial value:
 new function () {
    var rps = dojo.io.repubsub;
    this.canHandle = function (kwArgs) {
        if ((kwArgs["mimetype"] == "text/javascript") && (kwArgs["method"] == "repubsub")) {
            return true;
        }
        return false;
    };
    this.bind = function (kwArgs) {
        if (!rps.isInitialized) {
            rps.init();
        }
        if (!rps.topics[kwArgs.url]) {
            kwArgs.rpsLoad = function (evt) {
                kwArgs.load("load", evt);
            };
            rps.subscribe(kwArgs.url, kwArgs, "rpsLoad");
        }
        if (kwArgs["content"]) {
            var cEvt = dojo.io.repubsubEvent.initFromProperties(kwArgs.content);
            rps.publish(kwArgs.url, cEvt);
        }
    };
    dojo.io.transports.addTransport("repubsubTranport");
}

Definition at line 16 of file RepubsubIO.js.

Definition at line 326 of file RepubsubIO.js.

For more help developing with SiT! see http://sitracker.org/wiki/DevelopmentHowTo

© 2008-2011 Support Incident Tracker

Tsohost Logo