Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpvar committed Nov 17, 2010
1 parent 362962f commit 43a2f4a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions example/jquery/run.js
@@ -1,10 +1,9 @@
var sys = require("sys"),
jsdom = require("../../lib/jsdom"),
var jsdom = require("../../lib/jsdom"),
window = jsdom.jsdom().createWindow();

// this also works:
// jQueryTag.src = "http://code.jquery.com/jquery-1.4.2.js";
jsdom.jQueryify(window, "jquery.js", function() {
window.jQuery('body').append("<div class='testing'>Hello World, It works!</div>");
sys.puts(window.jQuery(".testing").text());
console.log(window.jQuery(".testing").text());
});

0 comments on commit 43a2f4a

Please sign in to comment.