From 874922876406be1baef7dcde6672d1f6094f68b7 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sat, 5 Mar 2011 03:03:50 -0500 Subject: [PATCH] interface() calls now push/pop rather than shift/unshift (performance) --- lib/class.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/class.js b/lib/class.js index 33b8ccf..effbdb5 100644 --- a/lib/class.js +++ b/lib/class.js @@ -327,7 +327,7 @@ function createStaging( cname ) */ function createImplement( base, ifaces ) { - ifaces.unshift( base ); + ifaces.push( base ); // Defer processing until after extend(). This also ensures that implement() // returns nothing usable. @@ -602,7 +602,7 @@ var implement = function() { var args = Array.prototype.slice.call( arguments ), dest = {}, - base = args.shift(), + base = args.pop(), len = args.length, arg = null,