Robin Herbots 10 years ago
parent
commit
6c015c534f
1 changed files with 0 additions and 33 deletions
  1. 0 33
      test2.html

+ 0 - 33
test2.html

@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
-  <!--<meta http-equiv="Content-Security-Policy" content="script-src 'self'">-->
-  <!--<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/base/jquery-ui.css" />
-    <link rel="stylesheet" type="text/css" href="http://trirand.com/blog/jqgrid/themes/ui.jqgrid.css" />-->
-</head>
-
-<body>
-  <input type="text" id="test1" />
-  <input id="button1" type="button" value="Add" />
-  <input id="button2" type="button" value="Remove" />
-  <script>
-    var el = document.getElementById("test1");
-    var button1 = document.getElementById("button1");
-    var button2 = document.getElementById("button2");
-
-    function maskscope() {
-      return function() {
-        alert("test");
-      }
-    }
-    button1.addEventListener("click", function(e) {
-      el.addEventListener("click", new maskscope(), false);
-    });
-    button2.addEventListener("click", function(e) {
-      el.removeEventListener("click", new maskscope(), false);
-    });
-  </script>
-</body>
-
-</html>