mirror of https://github.com/vuejs/vue.git
no longer need bind.js shim
This commit is contained in:
parent
8e0eb0db6e
commit
91ba244300
|
|
@ -72,7 +72,6 @@
|
|||
</footer>
|
||||
|
||||
<!-- for PhantomJS/CasperJS testing only -->
|
||||
<script src="../../test/functional/fixtures/bind.js"></script>
|
||||
<script>
|
||||
if (navigator.userAgent.indexOf('PhantomJS') > -1) {
|
||||
localStorage.clear()
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
@ -3,7 +3,6 @@
|
|||
<head>
|
||||
<title></title>
|
||||
<meta charset="utf-8">
|
||||
<script src="bind.js"></script>
|
||||
<script src="../../../dist/seed.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
<head>
|
||||
<title></title>
|
||||
<meta charset="utf-8">
|
||||
<script src="bind.js"></script>
|
||||
<script src="../../../dist/seed.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
<head>
|
||||
<title>Forms test</title>
|
||||
<meta charset="utf-8">
|
||||
<script src="bind.js"></script>
|
||||
<script src="../../../dist/seed.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
<head>
|
||||
<title></title>
|
||||
<meta charset="utf-8">
|
||||
<script src="bind.js"></script>
|
||||
<script src="../../../dist/seed.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
color: #F00;
|
||||
}
|
||||
</style>
|
||||
<script src="bind.js"></script>
|
||||
<script src="../../../dist/seed.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
<head>
|
||||
<title>SEED repeated items</title>
|
||||
<meta charset="utf-8">
|
||||
<script src="bind.js"></script>
|
||||
<script src="../../../dist/seed.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
<head>
|
||||
<title></title>
|
||||
<meta charset="utf-8">
|
||||
<script src="bind.js"></script>
|
||||
<script src="../../../dist/seed.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
<head>
|
||||
<title>route</title>
|
||||
<meta charset="utf-8">
|
||||
<script src="bind.js"></script>
|
||||
<script src="../../../dist/seed.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
<head>
|
||||
<title>SEED share data</title>
|
||||
<meta charset="utf-8">
|
||||
<script src="bind.js"></script>
|
||||
<script src="../../../dist/seed.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
<head>
|
||||
<title></title>
|
||||
<meta charset="utf-8">
|
||||
<script src="bind.js"></script>
|
||||
<script src="../../../dist/seed.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
<head>
|
||||
<title></title>
|
||||
<meta charset="utf-8">
|
||||
<script src="bind.js"></script>
|
||||
<script src="../../../dist/seed.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
<head>
|
||||
<title></title>
|
||||
<meta charset="utf-8">
|
||||
<script src="bind.js"></script>
|
||||
<script src="../../../dist/seed.js"></script>
|
||||
<style type="text/css">
|
||||
.test {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
<head>
|
||||
<title></title>
|
||||
<meta charset="utf-8">
|
||||
<script src="bind.js"></script>
|
||||
<script src="../../../dist/seed.js"></script>
|
||||
<style type="text/css">
|
||||
input:not(.valid) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue