dist/amd/strict/Interface.js
function assignConstant(name, value, interf) {
        if (hasDefineProperty) {
            Object.defineProperty(interf, name, {
                get: function () {
                    return value;
                },
                set: function () {
                    throw new Error('Cannot change value of constant property "' + name + '" of interface "' + this.prototype.$name + '".');
                },
                configurable: false,
                enumerable: true
            });
        } else {
            interf[name] = value;
        }
    }
function assignConstant(name, value, interf) {
        if (hasDefineProperty) {
            Object.defineProperty(interf, name, {
                get: function () {
                    return value;
                },
                set: function () {
                    throw new Error('Cannot change value of constant property "' + name + '" of interface "' + this.prototype.$name + '".');
                },
                configurable: false,
                enumerable: true
            });
        } else {
            interf[name] = value;
        }
    }
function assignConstant ( name , value , interf ) { if ( hasDefineProperty ) { Object . defineProperty ( interf , name , { get : function ( ) { return value ; } , set : function ( ) { throw new Error ( 'Cannot change value of constant property "' + name + '" of interface "' + this . prototype . $name + '".' ) ; } , configurable : false , enumerable : true } ) ; } else { interf [ name ] = value ; } }
Assigns a constant to the interface.
This method will protect the constant from being changed.

@param {String}   name        The constant name
@param {Function} value       The constant value
@param {Function} interf      The interface in which the constant will be saved
Assigns a constant to the interface . This method will protect the constant from being changed .