[Verification] Code compiles without error
Change-Id: I8dd051670f0477bdd88fbb2f40ff66b579801e6c
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
{
name: 'successCallback',
type: types_.FUNCTION,
- //values: ConnectSuccessCallback,
optional: false,
nullable: false
},
{
name: 'errorCallback',
type: types_.FUNCTION,
- //values: ErrorCallback,
optional: true,
nullable: true
}
}, function(result) {
if (native_.isFailure(result)) {
native_.callIfPossible(errorCallback, native_.getErrorObject(result));
+ } else {
+ native_.callIfPossible(successCallback, this);
}
});
} else {
updateWithInternalData({ connectionState: ConnectionState.NOT_CONNECTED }, this);
}
-
- native_.callIfPossible(successCallback, this);
};
function ChannelInfo(uri_, id_) {