no longer need bind.js shim

This commit is contained in:
Evan You 2013-11-18 15:46:29 -05:00
parent 8e0eb0db6e
commit 91ba244300
15 changed files with 0 additions and 40 deletions

View File

@ -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()

View File

@ -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;
};
}

View File

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

View File

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

View File

@ -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>

View File

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

View File

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

View File

@ -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>

View File

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

View File

@ -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>

View File

@ -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>

View File

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

View File

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

View File

@ -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 {

View File

@ -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) {