aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisko Hevery2011-09-06 12:04:47 -0700
committerIgor Minar2011-10-11 10:53:07 -0700
commitdf6d2ba3266de405ad6c2f270f24569355706e76 (patch)
treec5bab26312f82088b69e888079348bb43743a6d8
parentccda436f94945f617461e5925c451737156bd337 (diff)
downloadangular.js-df6d2ba3266de405ad6c2f270f24569355706e76.tar.bz2
style(examples): clean up dead examples
-rw-r--r--example/calculator-bootstrap.html21
-rw-r--r--example/calculator-minified_init.html21
-rw-r--r--example/calculator.html21
-rw-r--r--example/memoryLeak.html55
-rw-r--r--regression/issue-170.html28
-rw-r--r--regression/jqLite_after_NPE.html24
6 files changed, 0 insertions, 170 deletions
diff --git a/example/calculator-bootstrap.html b/example/calculator-bootstrap.html
deleted file mode 100644
index 913d5b08..00000000
--- a/example/calculator-bootstrap.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <script type="text/javascript" src="../lib/jquery/jquery.js"></script>
- <script type="text/javascript" src="../src/angular-bootstrap.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- scope = angular.compile(document);
- scope.$init();
- scope.a = 3;
- scope.$eval();
- });
- </script>
- </head>
- <body>
- Quantity: <input type="text" name="a" value="2">
- *
- Cost: <input type="text" name="b" value="3.4">
- = {{a * b | currency}}
- </body>
-</html>
diff --git a/example/calculator-minified_init.html b/example/calculator-minified_init.html
deleted file mode 100644
index 922aabb8..00000000
--- a/example/calculator-minified_init.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <script type="text/javascript" src="../lib/jquery/jquery.js"></script>
- <script type="text/javascript" src="../angular-minified.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- scope = angular.compile(document);
- scope.$init();
- scope.a = 3;
- scope.$eval();
- });
- </script>
- </head>
- <body>
- Quantity: <input type="text" name="a" value="2">
- *
- Cost: <input type="text" name="b" value="3.4">
- = {{a * b | currency}}
- </body>
-</html>
diff --git a/example/calculator.html b/example/calculator.html
deleted file mode 100644
index bd80eb9d..00000000
--- a/example/calculator.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <script type="text/javascript" src="../lib/jquery/jquery.js"></script>
- <script type="text/javascript" src="../angular-debug.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- var scope = angular.compile(document);
- scope.a = 3;
- scope.$init();
- scope.$eval();
- });
- </script>
- </head>
- <body>
- Quantity: <input type="text" name="a" value="2">
- *
- Cost: <input type="text" name="b" value="3.4">
- = {{a * b | currency}}
- </body>
-</html>
diff --git a/example/memoryLeak.html b/example/memoryLeak.html
deleted file mode 100644
index 19b0d45d..00000000
--- a/example/memoryLeak.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <script type="text/javascript" src="../lib/underscore/underscore.js"></script>
- <script type="text/javascript" src="../lib/jquery/jquery-1.3.2.js"></script>
- <script type="text/javascript" src="../src/angular-bootstrap.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- var scope = angular.compile(document);
- scope.init();
- scope.set("add", function(){
- var partial = $("#partial");
- //id++;
- partial.html('<div>{{ error() }}<br/></div>');
- var scope = angular.compile(partial);
- scope.set("hello", function (){
- return 'who dat?';
- });
- scope.set("error", function (){
- this.misko.length;
- });
- function XXXXXXXXX(){};
- scope.set('xxx', new XXXXXXXXX());
- scope.set("names", ["adam", "misko", "shyam"]);
- scope.init();
- });
- scope.set("remove", function(){
- var partial = $("#partial");
- /*
- partial.find('*').andSelf().each(function(){
- var scope = $(this).data('scope');
- if (scope) {
- delete scope.state;
- delete scope.widgets;
- }
- var cntl = $(this).data('controller');
- if (cntl) {
- delete cntl.view;
- }
- $(this).removeData();
- });
- */
- partial.removeData('scope');
- partial.children().remove();
- });
- });
- </script>
- <link rel="StyleSheet" type="text/css" href="../css/angular.css"/>
- </head>
- <body>
- <input type="button" value="add" ng:click="add()"/>
- <input type="button" value="remove" ng:click="remove()"/>
- <div id="partial"></div>
- </body>
-</html>
diff --git a/regression/issue-170.html b/regression/issue-170.html
deleted file mode 100644
index 392abf81..00000000
--- a/regression/issue-170.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE HTML>
-<html xmlns:ng="http://angularjs.org">
-<head>
- <script type="text/javascript" src="../lib/jquery/jquery-1.4.2.js"></script>
- <script type="text/javascript" src="../src/angular-bootstrap.js" ng:autobind></script>
-<head>
-<body>
- <select name='selection0' style="display:block;">
- <option ng:repeat='value in ["FOO","BAR"]'">{{value}}</option>
- </select>
- {{selection0}} &lt;-- FOO should be shown here
-
- <hr/>
-
- <select ng:init="selection1='ignore'" name='selection1' style="display:block;">
- <option ng:repeat='value in ["FOO","BAR"]' ng:bind-attr="{selected:'{{value==\'BAR\'}}'}">{{value}}</option>
- </select>
- {{selection1}} &lt;-- BAR should be shown here
-
- <hr/>
-
- <select ng:init="selection2=1" name="selection2" style="display:block;">
- <option value="{{$index}}" ng:repeat="opt in ['zero', 'one']">{{opt}}</option>
- </select>
- {{selection2}} &lt;-- 1 should be shown here
-
-</body>
-</html> \ No newline at end of file
diff --git a/regression/jqLite_after_NPE.html b/regression/jqLite_after_NPE.html
deleted file mode 100644
index a914e953..00000000
--- a/regression/jqLite_after_NPE.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
-<html xmlns:ng="http://angularjs.org">
-<head>
- <script type="text/javascript" src="../src/angular-bootstrap.js" ng:autobind></script>
- <script type="text/javascript">
- angular.markup('-'+'--', function(text, textNode, parentElement) {
- var compiler = this;
- var index = text.indexOf('-'+'--');
- if (index > -1) {
- textNode.after(text.substring(index + 3));
- textNode.after('<hr/>');
- textNode.after(compiler.text(text.substring(0, index)));
- textNode.remove();
- }
- });
- </script>
-</head>
-<body>
-{{1+3}}
-xxx
----
-xxx
-<select name="something"><option selected="true">{{'a'}}</option><option value="">{{'b'}}</option><option>C</option></select></body>
-</html> \ No newline at end of file