Evan You 12 лет назад
Родитель
Сommit
91ba244300

+ 0 - 1
examples/todomvc/index.html

@@ -72,7 +72,6 @@
         </footer>
         </footer>
 
 
         <!-- for PhantomJS/CasperJS testing only -->
         <!-- for PhantomJS/CasperJS testing only -->
-        <script src="../../test/functional/fixtures/bind.js"></script>
         <script>
         <script>
             if (navigator.userAgent.indexOf('PhantomJS') > -1) {
             if (navigator.userAgent.indexOf('PhantomJS') > -1) {
                 localStorage.clear()
                 localStorage.clear()

+ 0 - 26
test/functional/fixtures/bind.js

@@ -1,26 +0,0 @@
-// PhantomJS doesn't have fn.bind()
-// - WAT?
-
-if (!Function.prototype.bind) {
-  Function.prototype.bind = function (oThis) {
-    if (typeof this !== "function") {
-      // closest thing possible to the ECMAScript 5 internal IsCallable function
-      throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
-    }
-
-    var aArgs = Array.prototype.slice.call(arguments, 1), 
-        fToBind = this, 
-        fNOP = function () {},
-        fBound = function () {
-          return fToBind.apply(this instanceof fNOP && oThis
-                                 ? this
-                                 : oThis,
-                               aArgs.concat(Array.prototype.slice.call(arguments)));
-        };
-
-    fNOP.prototype = this.prototype;
-    fBound.prototype = new fNOP();
-
-    return fBound;
-  };
-}

+ 0 - 1
test/functional/fixtures/encapsulation.html

@@ -3,7 +3,6 @@
     <head>
     <head>
         <title></title>
         <title></title>
         <meta charset="utf-8">
         <meta charset="utf-8">
-        <script src="bind.js"></script>
         <script src="../../../dist/seed.js"></script>
         <script src="../../../dist/seed.js"></script>
     </head>
     </head>
     <body>
     <body>

+ 0 - 1
test/functional/fixtures/expression.html

@@ -3,7 +3,6 @@
     <head>
     <head>
         <title></title>
         <title></title>
         <meta charset="utf-8">
         <meta charset="utf-8">
-        <script src="bind.js"></script>
         <script src="../../../dist/seed.js"></script>
         <script src="../../../dist/seed.js"></script>
     </head>
     </head>
     <body>
     <body>

+ 0 - 1
test/functional/fixtures/forms.html

@@ -3,7 +3,6 @@
     <head>
     <head>
         <title>Forms test</title>
         <title>Forms test</title>
         <meta charset="utf-8">
         <meta charset="utf-8">
-        <script src="bind.js"></script>
         <script src="../../../dist/seed.js"></script>
         <script src="../../../dist/seed.js"></script>
     </head>
     </head>
     <body>
     <body>

+ 0 - 1
test/functional/fixtures/nested-props.html

@@ -3,7 +3,6 @@
     <head>
     <head>
         <title></title>
         <title></title>
         <meta charset="utf-8">
         <meta charset="utf-8">
-        <script src="bind.js"></script>
         <script src="../../../dist/seed.js"></script>
         <script src="../../../dist/seed.js"></script>
     </head>
     </head>
     <body>
     <body>

+ 0 - 1
test/functional/fixtures/nested-viewmodels.html

@@ -17,7 +17,6 @@
             color: #F00;
             color: #F00;
         }
         }
     </style>
     </style>
-    <script src="bind.js"></script>
     <script src="../../../dist/seed.js"></script>
     <script src="../../../dist/seed.js"></script>
 </head>
 </head>
 <body>
 <body>

+ 0 - 1
test/functional/fixtures/repeated-items.html

@@ -3,7 +3,6 @@
     <head>
     <head>
         <title>SEED repeated items</title>
         <title>SEED repeated items</title>
         <meta charset="utf-8">
         <meta charset="utf-8">
-        <script src="bind.js"></script>
         <script src="../../../dist/seed.js"></script>
         <script src="../../../dist/seed.js"></script>
     </head>
     </head>
     <body>
     <body>

+ 0 - 1
test/functional/fixtures/repeated-vms.html

@@ -3,7 +3,6 @@
     <head>
     <head>
         <title></title>
         <title></title>
         <meta charset="utf-8">
         <meta charset="utf-8">
-        <script src="bind.js"></script>
         <script src="../../../dist/seed.js"></script>
         <script src="../../../dist/seed.js"></script>
     </head>
     </head>
     <body>
     <body>

+ 0 - 1
test/functional/fixtures/routing.html

@@ -3,7 +3,6 @@
     <head>
     <head>
         <title>route</title>
         <title>route</title>
         <meta charset="utf-8">
         <meta charset="utf-8">
-        <script src="bind.js"></script>
         <script src="../../../dist/seed.js"></script>
         <script src="../../../dist/seed.js"></script>
     </head>
     </head>
     <body>
     <body>

+ 0 - 1
test/functional/fixtures/share-data.html

@@ -3,7 +3,6 @@
     <head>
     <head>
         <title>SEED share data</title>
         <title>SEED share data</title>
         <meta charset="utf-8">
         <meta charset="utf-8">
-        <script src="bind.js"></script>
         <script src="../../../dist/seed.js"></script>
         <script src="../../../dist/seed.js"></script>
     </head>
     </head>
     <body>
     <body>

+ 0 - 1
test/functional/fixtures/simple-dir.html

@@ -3,7 +3,6 @@
     <head>
     <head>
         <title></title>
         <title></title>
         <meta charset="utf-8">
         <meta charset="utf-8">
-        <script src="bind.js"></script>
         <script src="../../../dist/seed.js"></script>
         <script src="../../../dist/seed.js"></script>
     </head>
     </head>
     <body>
     <body>

+ 0 - 1
test/functional/fixtures/template.html

@@ -3,7 +3,6 @@
     <head>
     <head>
         <title></title>
         <title></title>
         <meta charset="utf-8">
         <meta charset="utf-8">
-        <script src="bind.js"></script>
         <script src="../../../dist/seed.js"></script>
         <script src="../../../dist/seed.js"></script>
     </head>
     </head>
     <body>
     <body>

+ 0 - 1
test/functional/fixtures/transition.html

@@ -3,7 +3,6 @@
     <head>
     <head>
         <title></title>
         <title></title>
         <meta charset="utf-8">
         <meta charset="utf-8">
-        <script src="bind.js"></script>
         <script src="../../../dist/seed.js"></script>
         <script src="../../../dist/seed.js"></script>
         <style type="text/css">
         <style type="text/css">
             .test {
             .test {

+ 0 - 1
test/functional/fixtures/validation.html

@@ -3,7 +3,6 @@
     <head>
     <head>
         <title></title>
         <title></title>
         <meta charset="utf-8">
         <meta charset="utf-8">
-        <script src="bind.js"></script>
         <script src="../../../dist/seed.js"></script>
         <script src="../../../dist/seed.js"></script>
         <style type="text/css">
         <style type="text/css">
             input:not(.valid) {
             input:not(.valid) {