summaryrefslogtreecommitdiff
path: root/lib/dojo/Evented.js.uncompressed.js
diff options
context:
space:
mode:
authorBarak Korren <[email protected]>2013-04-02 20:38:07 +0300
committerBarak Korren <[email protected]>2013-04-02 20:38:07 +0300
commit58a2577d48790c79adfd44bcfd662c980ce6cfe4 (patch)
tree523d814ea0b7b6f617fe515b186099c6e83fed72 /lib/dojo/Evented.js.uncompressed.js
parente470a273cf09562fb2f9c0c899002303f19c8d16 (diff)
parentcc332603431102a682feda22b9cf0093a29f0176 (diff)
Merge branch 'master' of https://github.com/gothfox/Tiny-Tiny-RSS.git
Diffstat (limited to 'lib/dojo/Evented.js.uncompressed.js')
-rw-r--r--lib/dojo/Evented.js.uncompressed.js35
1 files changed, 0 insertions, 35 deletions
diff --git a/lib/dojo/Evented.js.uncompressed.js b/lib/dojo/Evented.js.uncompressed.js
deleted file mode 100644
index 08a7fb7e4..000000000
--- a/lib/dojo/Evented.js.uncompressed.js
+++ /dev/null
@@ -1,35 +0,0 @@
-define("dojo/Evented", ["./aspect", "./on"], function(aspect, on){
- // module:
- // dojo/Evented
-
- "use strict";
- var after = aspect.after;
- function Evented(){
- // summary:
- // A class that can be used as a mixin or base class,
- // to add on() and emit() methods to a class
- // for listening for events and emitting events:
- //
- // | define(["dojo/Evented"], function(Evented){
- // | var EventedWidget = dojo.declare([Evented, dijit._Widget], {...});
- // | widget = new EventedWidget();
- // | widget.on("open", function(event){
- // | ... do something with event
- // | });
- // |
- // | widget.emit("open", {name:"some event", ...});
- }
- Evented.prototype = {
- on: function(type, listener){
- return on.parse(this, type, listener, function(target, type){
- return after(target, 'on' + type, listener, true);
- });
- },
- emit: function(type, event){
- var args = [this];
- args.push.apply(args, arguments);
- return on.emit.apply(on, args);
- }
- };
- return Evented;
-});