All pastes #72474 Raw Edit

Unnamed

public javascript v1 · immutable
#72474 ·published 2006-06-26 21:35 UTC
rendered paste body
constructStory: function (stuff) {	var voteContainer = this.createHTML("div", "", "voteContainer");	var voteYes = this.createHTML("div", "", "voteYes");	var voteNo = this.createHTML("div", "", "voteNo");	voteContainer.appendChild(voteYes);	voteContainer.appendChild(voteNo);		disableVoteContainer = function() {		this.sendJS('localhost');		Event.stopObserving(voteYes, 'click', disableVoteContainerListener);		Event.stopObserving(voteNo, 'click', disableVoteContainerListener);	} ;		disableVoteContainerListener = disableVoteContainer.bindAsEventListener(this);		Event.observe(voteYes, 'click', disableVoteContainerListener);	Event.observe(voteNo, 'click', disableVoteContainerListener);	this.content.appendChild(voteContainer);}