Home | History | Annotate | Download | only in parse-only

Lines Matching defs:Events

1219 var Events = new Class({
1221 $events: {},
1224 type = Events.removeOn(type);
1226 this.$events[type] = this.$events[type] || [];
1227 this.$events[type].include(fn);
1233 addEvents: function(events){
1234 for (var type in events) this.addEvent(type, events[type]);
1239 type = Events.removeOn(type);
1240 if (!this.$events || !this.$events[type]) return this;
1241 this.$events[type].each(function(fn){
1248 type = Events.removeOn(type);
1249 if (!this.$events[type]) return this;
1250 if (!fn.internal) this.$events[type].erase(fn);
1254 removeEvents: function(events){
1256 if ($type(events) == 'object'){
1257 for (type in events) this.removeEvent(type, events[type]);
1260 if (events) events = Events.removeOn(events);
1261 for (type in this.$events){
1262 if (events && events != type) continue;
1263 var fns = this.$events[type];
1271 Events.removeOn = function(string){
1974 Contains Element methods for dealing with events, and custom Events.
1980 Element.Properties.events = {set: function(events){
1981 this.addEvents(events);
1987 var events = this.retrieve('events', {});
1988 events[type] = events[type] || {'keys': [], 'values': []};
1989 if (events[type].keys.contains(fn)) return this;
1990 events[type].keys.push(fn);
1991 var realType = type, custom = Element.Events.get(type), condition = fn, self = this;
2015 events[type].values.push(defn);
2020 var events = this.retrieve('events');
2021 if (!events || !events[type]) return this;
2022 var pos = events[type].keys.indexOf(fn);
2024 events[type].keys.splice(pos, 1);
2025 var value = events[type].values.splice(pos, 1)[0];
2026 var custom = Element.Events.get(type);
2034 addEvents: function(events){
2035 for (var event in eventsevents[event]);
2039 removeEvents: function(events){
2041 if ($type(events) == 'object'){
2042 for (type in events) this.removeEvent(type, events[type]);
2045 var attached = this.retrieve('events');
2047 if (!events){
2049 this.eliminate('events');
2050 } else if (attached[events]){
2051 while (attached[events].keys[0]) this.removeEvent(events, attached[events].keys[0]);
2052 attached[events] = null;
2058 var events = this.retrieve('events');
2059 if (!events || !events[type]) return this;
2060 events[type].keys.each(function(fn){
2068 var fevents = from.retrieve('events');
2101 Element.Events = new Hash({
2868 Element.Events.domready = {
3139 Implements: [Chain, Events, Options],
3672 Implements: [Chain, Events, Options],