From 8d66f01141702972e93f8bd64e0db00ec3135d5f Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Fri, 20 Mar 2015 17:49:11 -0700 Subject: [PATCH 1/2] Use function expressions when referring to 'arguments'. --- node-git/node-git-tests.ts | 2 +- should/should-tests.ts | 2 +- simple-cw-node/simple-cw-node-tests.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/node-git/node-git-tests.ts b/node-git/node-git-tests.ts index f1e5e969b..0924bedb9 100644 --- a/node-git/node-git-tests.ts +++ b/node-git/node-git-tests.ts @@ -3,7 +3,7 @@ import base = require("git"); var git = new base.Git("../.git"); -git.call_git("", "clone", "", {}, ["https://github.com/borisyankov/DefinitelyTyped.git", "d.ts"], (err, data) => { +git.call_git("", "clone", "", {}, ["https://github.com/borisyankov/DefinitelyTyped.git", "d.ts"], function (err, data) { console.log(arguments); }); diff --git a/should/should-tests.ts b/should/should-tests.ts index fafb1d7c7..c940f7c13 100644 --- a/should/should-tests.ts +++ b/should/should-tests.ts @@ -75,7 +75,7 @@ false false.should.be.false; (0).should.not.be.false; -var args = (a: string, b: string, c: string) => { return arguments; }; +var args = function (a: string, b: string, c: string) { return arguments; }; args.should.be.arguments; ['a'].should.not.be.arguments; diff --git a/simple-cw-node/simple-cw-node-tests.ts b/simple-cw-node/simple-cw-node-tests.ts index a46eb42c9..d25cc0399 100644 --- a/simple-cw-node/simple-cw-node-tests.ts +++ b/simple-cw-node/simple-cw-node-tests.ts @@ -10,7 +10,7 @@ var Deferred:any = client.Deferred; client.init({ token: 'YOUR_TOKEN' }); // get your info. -client.get('me', (err, res) => { +client.get('me', function (err, res) { console.log(arguments); }); From 4f5dfe0845471dc121a490e3fb13478871e79e05 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Fri, 20 Mar 2015 17:50:15 -0700 Subject: [PATCH 2/2] Target ES5 for the backgrid tests. --- backgrid/backgrid.d.ts.tscparams | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backgrid/backgrid.d.ts.tscparams b/backgrid/backgrid.d.ts.tscparams index d3f5a12fa..aa5e71c8a 100644 --- a/backgrid/backgrid.d.ts.tscparams +++ b/backgrid/backgrid.d.ts.tscparams @@ -1 +1 @@ - +--target es5