Commit 5df6c4a9 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

add new to cError create (files not build)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60829 954022d7-b5bf-4e40-9824-e11837661b57
parent f61f9a2c
......@@ -2608,7 +2608,7 @@ cMEDIAN.prototype.Calculate = function ( arg ) {
medArr.sort(fSortAscending);
if ( medArr.length < 1 )
return cError( cErrorType.wrong_value_type );
return new cError( cErrorType.wrong_value_type );
else {
if ( medArr.length % 2 )
return new cNumber( medArr[(medArr.length - 1) / 2] );
......@@ -2875,7 +2875,7 @@ cMODE.prototype.Calculate = function ( arg ) {
medArr.sort(fSortDescending);
if ( medArr.length < 1 )
return cError( cErrorType.wrong_value_type );
return new cError( cErrorType.wrong_value_type );
else {
var nMaxIndex = 0, nMax = 1, nCount = 1, nOldVal = medArr[0], i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment