Skip to content

Instantly share code, notes, and snippets.

@atnan
Created September 11, 2008 14:54
Show Gist options
  • Save atnan/10237 to your computer and use it in GitHub Desktop.
Save atnan/10237 to your computer and use it in GitHub Desktop.
// http://jqueryjs.googlecode.com/svn/trunk/jquery/build/runtest/env.js
load('env.js');
// Could do window.location = 'http://...', but I'm lazy
window.document = new DOMDocument(new java.io.ByteArrayInputStream((new java.lang.String('<pewp />')).getBytes("UTF8")));
//Bring forth the convenience
load('prototype-1.6.0.2.js');
var Person = Class.create({
initialize: function(name) {
this.name = name;
},
say: function(message) {
return this.name + ': ' + message;
}
});
var nathan = new Person('Nathan');
print(nathan.say("I'm in your prototypes, currying your Rhinos."));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment