Skip to content

Instantly share code, notes, and snippets.

@divoxx
Created March 4, 2009 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save divoxx/73946 to your computer and use it in GitHub Desktop.
Save divoxx/73946 to your computer and use it in GitHub Desktop.
$each([Request, Request.HTML, Request.JSON], function(klass) {
klass.prototype = Class.refactor(klass, {
Extends: klass,
initialize: function(options) {
this.parent(options)
this.addEvent('complete', function() { alert('foo') })
}
}).prototype
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment