Created
September 11, 2008 14:54
-
-
Save atnan/10237 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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