1
0
Fork 0

interface() calls now push/pop rather than shift/unshift (performance)

closure/master
Mike Gerwitz 2011-03-05 03:03:50 -05:00
parent 0f9454b79b
commit 8749228764
1 changed files with 2 additions and 2 deletions

View File

@ -327,7 +327,7 @@ function createStaging( cname )
*/ */
function createImplement( base, ifaces ) function createImplement( base, ifaces )
{ {
ifaces.unshift( base ); ifaces.push( base );
// Defer processing until after extend(). This also ensures that implement() // Defer processing until after extend(). This also ensures that implement()
// returns nothing usable. // returns nothing usable.
@ -602,7 +602,7 @@ var implement = function()
{ {
var args = Array.prototype.slice.call( arguments ), var args = Array.prototype.slice.call( arguments ),
dest = {}, dest = {},
base = args.shift(), base = args.pop(),
len = args.length, len = args.length,
arg = null, arg = null,