All pastes #491848 Raw Edit

Someone

public text v1 · immutable
·published 2007-05-16 21:38 UTC
rendered paste body
var Workflow = new Class({
	
	options: {},
	
	initialize: function(el, options) {
		this.setOptions(options);
		this.container = $(el);
		console.log('created new workflow object');
		
		this.addEvents({
			'drop': this.drop,
			'over': this.over,
			'leave': this.leave
		});
	},
	
	drop: function() {
		console.log('drop event handler called');
	},
	
	over: function() {
		console.log('over event handler called');
	},
	
	leave: function() {
		console.log('leave event handler called');
	}
});
Workflow.implement(new Events, new Options);