interface() calls now push/pop rather than shift/unshift (performance)
parent
0f9454b79b
commit
8749228764
|
@ -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,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue