summaryrefslogtreecommitdiff
path: root/lib/dojo/topic.js.uncompressed.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-08-14 19:04:32 +0400
committerAndrew Dolgov <[email protected]>2012-08-14 19:04:32 +0400
commit0181c0110985cfd2659e81c8cc1ef5a2f73bc697 (patch)
treee2250a345481fa63cfcf98d76830338ad7eb9818 /lib/dojo/topic.js.uncompressed.js
parent973c4a649fd8f83ed85004f3365f10f9c24d8349 (diff)
dojo: remove uncompressed files
Diffstat (limited to 'lib/dojo/topic.js.uncompressed.js')
-rw-r--r--lib/dojo/topic.js.uncompressed.js33
1 files changed, 0 insertions, 33 deletions
diff --git a/lib/dojo/topic.js.uncompressed.js b/lib/dojo/topic.js.uncompressed.js
deleted file mode 100644
index 7fc63c7d5..000000000
--- a/lib/dojo/topic.js.uncompressed.js
+++ /dev/null
@@ -1,33 +0,0 @@
-define("dojo/topic", ["./Evented"], function(Evented){
- // summary:
- // The export of this module is a pubsub hub
- // You can also use listen function itself as a pub/sub hub:
- // | topic.subscribe("some/topic", function(event){
- // | ... do something with event
- // | });
- // | topic.publish("some/topic", {name:"some event", ...});
-
- var hub = new Evented;
- return {
- 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:
- // Subcribes 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);
- }
- }
-});