diff options
author | Barak Korren <[email protected]> | 2013-04-02 20:38:07 +0300 |
---|---|---|
committer | Barak Korren <[email protected]> | 2013-04-02 20:38:07 +0300 |
commit | 58a2577d48790c79adfd44bcfd662c980ce6cfe4 (patch) | |
tree | 523d814ea0b7b6f617fe515b186099c6e83fed72 /lib/dojo/topic.js.uncompressed.js | |
parent | e470a273cf09562fb2f9c0c899002303f19c8d16 (diff) | |
parent | cc332603431102a682feda22b9cf0093a29f0176 (diff) |
Merge branch 'master' of https://github.com/gothfox/Tiny-Tiny-RSS.git
Diffstat (limited to 'lib/dojo/topic.js.uncompressed.js')
-rw-r--r-- | lib/dojo/topic.js.uncompressed.js | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/dojo/topic.js.uncompressed.js b/lib/dojo/topic.js.uncompressed.js deleted file mode 100644 index 35e193739..000000000 --- a/lib/dojo/topic.js.uncompressed.js +++ /dev/null @@ -1,38 +0,0 @@ -define("dojo/topic", ["./Evented"], function(Evented){ - - // module: - // dojo/topic - - var hub = new Evented; - return { - // summary: - // Pubsub hub. - // example: - // | topic.subscribe("some/topic", function(event){ - // | ... do something with event - // | }); - // | topic.publish("some/topic", {name:"some event", ...}); - - publish: function(topic, event){ - // summary: - // Publishes a message to a topic on the pub/sub hub. All arguments after - // the first will be passed to the subscribers, so any number of arguments - // can be provided (not just event). - // topic: String - // The name of the topic to publish to - // event: Object - // An event to distribute to the topic listeners - return hub.emit.apply(hub, arguments); - }, - - subscribe: function(topic, listener){ - // summary: - // Subscribes to a topic on the pub/sub hub - // topic: String - // The topic to subscribe to - // listener: Function - // A function to call when a message is published to the given topic - return hub.on.apply(hub, arguments); - } - }; -}); |