1
0
Fork 0

Revert CapturedUserResponse temporarily

This reverts CapturedUserResponse to the state it was in prior to
being extracted into liza.  The issue was supposed to have been
resolved by now, but I haven't wanted to make an ease.js release until
the company that bought the company I work for signs the copyright
waiver.  Which has been slow-going, to say the least.

The problem is that it is not recognizing a named trait extending a
class as a parameterized trait (it's not seeing __mixin).

* src/server/request/CapturedUserResponse.js: Use interface.
* src/server/request/IProtUserResponse.js: Add temporary interface.
master
Mike Gerwitz 2017-06-29 15:43:25 -04:00
parent e1458ce955
commit c0d0f4b463
2 changed files with 20 additions and 4 deletions

View File

@ -19,11 +19,17 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var Trait = require( 'easejs' ).Trait,
UserResponse = require( './UserResponse' );
const Trait = require( 'easejs' ).Trait;
const UserResponse = require( './UserResponse' );
const IProtUserResponse = require( './IProtUserResponse' );
/** XXX: IProtUserResponse is temporary until an easejs release
addresses a bug with recognizing named traits extending
classes as parameterized **/
module.exports = Trait( 'CapturedUserResponse' )
.extend( UserResponse,
.implement( IProtUserResponse )
.extend(
{
'private _callback': null,
@ -47,4 +53,3 @@ module.exports = Trait( 'CapturedUserResponse' )
this._callback( code, error, data );
}
} );

View File

@ -0,0 +1,11 @@
var Interface = require( 'easejs' ).Interface;
/** XXX: This is temporary; GNU ease.js 0.2.5 release pending to allow
Traits to extend classes **/
module.exports = Interface( 'IProtUserInterface',
{
/*** This will be made protected ***/
'public endRequest': [ 'code', 'error', 'data' ],
} );