Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Finishing up some docs - npm published

  • Loading branch information...
commit 8db703f89b3cf1bce87fa49479d1946500bcf8a9 1 parent 0cd688d
@davglass authored
Showing with 8 additions and 7 deletions.
  1. +6 −1 README.textile
  2. +2 −6 examples/general-dom.js
View
7 README.textile
@@ -22,9 +22,14 @@ h2. Installing - as a developer
<pre class="console">
git clone git://github.com/davglass/nodejs-yui3.git
make dev
-make link
+make install
</pre>
+h2. Using YUI3
+
+"This is the general-dom example":http://gist.github.com/541501
+
+
h2. Using the Y.Browser object
To comply with the "no-globals" CommonJS spec, there is no global document or window in this mode.
View
8 examples/general-dom.js
@@ -1,11 +1,7 @@
#!/usr/bin/env node
-var sys = require('sys');
-
-var YUI = require("yui3").YUI;
-
-require("assert").equal( global.YUI, undefined, "global yui created");
-
+var sys = require('sys'),
+ YUI = require("yui3").YUI;
YUI({
filter: 'debug',
Please sign in to comment.
Something went wrong with that request. Please try again.