[pypy-svn] r36095 - pypy/dist/pypy/translator/js/modules

fijal at codespeak.net fijal at codespeak.net
Mon Jan 1 15:50:34 CET 2007


Author: fijal
Date: Mon Jan  1 15:50:33 2007
New Revision: 36095

Added:
   pypy/dist/pypy/translator/js/modules/browser.py   (contents, props changed)
Modified:
   pypy/dist/pypy/translator/js/modules/dom.py
Log:
Moved some stuff (one function for now) from dom to browser.


Added: pypy/dist/pypy/translator/js/modules/browser.py
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/translator/js/modules/browser.py	Mon Jan  1 15:50:33 2007
@@ -0,0 +1,9 @@
+
+"""
+Here are some functions which does not belong to dom, but rather
+to browser itself
+"""
+
+def alert(msg):
+    pass
+alert.suggested_primitive = True

Modified: pypy/dist/pypy/translator/js/modules/dom.py
==============================================================================
--- pypy/dist/pypy/translator/js/modules/dom.py	(original)
+++ pypy/dist/pypy/translator/js/modules/dom.py	Mon Jan  1 15:50:33 2007
@@ -303,9 +303,6 @@
         func()
     #pass
 
-def alert(msg):
-    pass
-
 # some helper functions (XXX imo these can go, but the code seems to use them
 # a lot... isn't it possible to just use dom.window and dom.document instead?)
 



More information about the Pypy-commit mailing list