summaryrefslogtreecommitdiff
path: root/lib/dojo/Evented.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/Evented.js.uncompressed.js
parent973c4a649fd8f83ed85004f3365f10f9c24d8349 (diff)
dojo: remove uncompressed files
Diffstat (limited to 'lib/dojo/Evented.js.uncompressed.js')
-rw-r--r--lib/dojo/Evented.js.uncompressed.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/lib/dojo/Evented.js.uncompressed.js b/lib/dojo/Evented.js.uncompressed.js
deleted file mode 100644
index c39c9e71a..000000000
--- a/lib/dojo/Evented.js.uncompressed.js
+++ /dev/null
@@ -1,32 +0,0 @@
-define("dojo/Evented", ["./aspect", "./on"], function(aspect, on){
- // summary:
- // The export of this module is 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 emiting 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", ...});
-
- "use strict";
- var after = aspect.after;
- function Evented(){
- }
- 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;
-});