1. NexJ Open Source
  2. Untitled project
  3. njsdoc

Commits

John Peberdy  committed af40327

Fix #5

  • Participants
  • Parent commits 50de719
  • Branches default

Comments (0)

Files changed (1)

File src/com/nexj/njsdoc/NJSDoc.java

View file
  • Ignore whitespace
 import com.nexj.njsdoc.export.OutputCreator;
 import com.nexj.njsdoc.org.mozilla.javascript.Context;
 import com.nexj.njsdoc.org.mozilla.javascript.Kit;
+import com.nexj.njsdoc.org.mozilla.javascript.LazyNativeObject;
 import com.nexj.njsdoc.org.mozilla.javascript.NativeArray;
 import com.nexj.njsdoc.org.mozilla.javascript.Script;
 import com.nexj.njsdoc.org.mozilla.javascript.Scriptable;
         ScriptableObject scope = cx.initStandardObjects();
 
         ScriptableObject.putProperty(scope, "window", scope);
+        ScriptableObject.putProperty(scope, "addEventListener", new LazyNativeObject());
 
         return scope;
     }