Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
update application.rb
Commit Description:
update application.rb
'use strict' ;
var slice = Array . prototype . slice ;
var isArgs = require ( './isArguments' );
var origKeys = Object . keys ;
var keysShim = origKeys ? function keys ( o ) { return origKeys ( o ); } : require ( './implementation' );
var originalKeys = Object . keys ;
keysShim . shim = function shimObjectKeys () {
if ( Object . keys ) {
var keysWorksWithArguments = ( function () {
// Safari 5.0 bug
var args = Object . keys ( arguments );
return args && args . length === arguments . length ;
}( 1 , 2 ));
if ( ! keysWorksWithArguments ) {
Object . keys = function keys ( object ) { // eslint-disable-line func-name-matching
if ( isArgs ( object )) {
return originalKeys ( slice . call ( object ));
}
return originalKeys ( object );
};
}
} else {
Object . keys = keysShim ;
}
return Object . keys || keysShim ;
};
module . exports = keysShim ;
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings