﻿var njs;
if (!njs) njs = {}

njs.Radio = function() {
    this.IsActive = false;
    this.OnActive = function() { return; }
    this.OnInactive = function() { return; }
    this._radioSet;
}
njs.Radio.prototype.Invoke = function() {
    this._radioSet.Invoke(this);
}
njs.Radio.prototype.GetRadioSet = function() {
    return this._radioSet;
}
njs.Radio.prototype.SetRadioSet = function(/*object*/radioSet) {
    this._radioSet = radioSet;
}
njs.Radio.prototype.SetOnActive = function(/*function*/func, /*object*/scope) {
    var _scope = scope || this;
    this.OnActive = function() { func.call(_scope) };
}
njs.Radio.prototype.SetOnInactive = function(/*function*/func, /*object*/scope) {
var _scope = scope || this;
    this.OnInactive = function() { func.call(_scope) }; ;
}
