Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
fix wrong merge
Commit Description:
fix wrong merge
// Generated by CoffeeScript 1.7.1
( function () {
var Enum ;
Enum = ( function () {
function Enum ( type , options ) {
this . type = type ;
this . options = options != null ? options : [];
}
Enum . prototype . decode = function ( stream ) {
var index ;
index = this . type . decode ( stream );
return this . options [ index ] || index ;
};
Enum . prototype . size = function () {
return this . type . size ();
};
Enum . prototype . encode = function ( stream , val ) {
var index ;
index = this . options . indexOf ( val );
if ( index === - 1 ) {
throw new Error ( "Unknown option in enum: " + val );
}
return this . type . encode ( stream , index );
};
return Enum ;
})();
module . exports = Enum ;
}). call ( this );
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