Skip to content

Instantly share code, notes, and snippets.

@aristidb
Created December 1, 2008 21:59
Show Gist options
  • Save aristidb/30864 to your computer and use it in GitHub Desktop.
Save aristidb/30864 to your computer and use it in GitHub Desktop.
assert(this === $container);
assert($container.$importer.container === $container);
this.XML.Document.prototype.print = function print() { print(this.dump()); }
var my_global = {};
var importer = new Importer(my_global);
assert(importer.container === my_global);
importer.load('XML')
var doc = my_global.XML.Document();
doc.print();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment