Browse files

Corrections to widget templates.

  • Loading branch information...
douglascrockford committed Feb 6, 2011
1 parent 2f889fa commit ffcb2deba135ac17f34683169e875d04f0d66741
Showing with 5 additions and 6 deletions.
  1. +3 −4 template.html
  2. +1 −1 template.js
  3. +1 −1 widget.html
@@ -24,7 +24,6 @@
is required only if the widget will load library modules.
-"use strict";"TEMPLATE_");
@@ -35,16 +34,16 @@
ADSAFE.go starts the execution of the widget.
-"use strict";
ADSAFE.go("TEMPLATE_", function (dom, lib) {
+ "use strict";
// This is where the code for the widget is placed. It can access
// the document through the dom parameter, allowing it indirect
// access to html elements, allowing it to change content, styling,
// and behavior.
-// Each library file can give itself a name. This script can access
-// the library file as
+// Each library file can give itself a NAME. This program can access
+// the library file as lib.NAME.
@@ -13,7 +13,7 @@ ADSAFE.lib("template", function () {
return {
// Return an object containing the library module's privileged methods.
-// The script can get access to this object at
+// The program can get access to this object at lib.template.
@@ -183,7 +183,7 @@ <h1>ADsafe Widget Structure</h1>
<p>A page could allow inter-widget communication by providing communication
methods to the <var>lib</var> object. A page could allow a method
to change the <code>src</code> of a node.</p>
- <p>The file <a href="adsafe.js"><code>adsafe.js</code></a> contains the
+ <p>The file <a href=""><code>adsafe.js</code></a> contains the
runtime component that provides the <code>ADSAFE</code> object, and should be loaded before all interceptors and widgets. The
file <a href="template.html">template.html</a> contains the template
for a widget. The file <a href="template.js">template.js</a> contains

0 comments on commit ffcb2de

Please sign in to comment.