From 3ed462685a542d3a9625d8fa24a5755a283530ae Mon Sep 17 00:00:00 2001 From: "arv@chromium.org" Date: Mon, 13 Sep 2010 23:47:06 +0000 Subject: DOMUI etc. Use the built in bind method of Function now that V8 supports it. BUG=None TEST=None Review URL: http://codereview.chromium.org/3308030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59303 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/resources/ntp/util.js | 9 --------- 1 file changed, 9 deletions(-) (limited to 'chrome/browser/resources/ntp/util.js') diff --git a/chrome/browser/resources/ntp/util.js b/chrome/browser/resources/ntp/util.js index b759356..ebd1e4d 100644 --- a/chrome/browser/resources/ntp/util.js +++ b/chrome/browser/resources/ntp/util.js @@ -11,15 +11,6 @@ function $(id) { return document.getElementById(id); } -function bind(fn, selfObj, var_args) { - var boundArgs = Array.prototype.slice.call(arguments, 2); - return function() { - var args = Array.prototype.slice.call(arguments); - args.unshift.apply(args, boundArgs); - return fn.apply(selfObj, args); - } -} - function url(s) { // http://www.w3.org/TR/css3-values/#uris // Parentheses, commas, whitespace characters, single quotes (') and double -- cgit v1.1