function overrideStaticFunctions(_target) {
            var isFunctionMember = function (key) { return typeof _target[key] !== 'function'; };
            object_1.getAllPropertyNames(_target)
                .filter(function (key) { return !canOverrideMember(key); })
                .forEach(function (key) {
                if (isFunctionMember(key))
                    return;
                var superFn = _target[key];
                _target[key] = function () {
                    var args = [];
                    for (var _i = 0; _i < arguments.length; _i++) {
                        args[_i] = arguments[_i];
                    }
                    checkInitialization(this, key);
                    tryPrepareOptions(this, key, args);
                    return superFn.call.apply(superFn, [this].concat(args));
                };
            });
        }
/**
         * Overrides all static functions with a function, that
         * checks if corresponding model is initialized and
         * prepares given options if necessary
         */
Overrides all static functions with a function, that
checks if corresponding model is initialized and
prepares given options if necessary
Overrides all static functions with a function that checks if corresponding model is initialized and prepares given options if necessary
function overrideStaticFunctions(_target) {
            var isFunctionMember = function (key) { return typeof _target[key] !== 'function'; };
            object_1.getAllPropertyNames(_target)
                .filter(function (key) { return !canOverrideMember(key); })
                .forEach(function (key) {
                if (isFunctionMember(key))
                    return;
                var superFn = _target[key];
                _target[key] = function () {
                    var args = [];
                    for (var _i = 0; _i < arguments.length; _i++) {
                        args[_i] = arguments[_i];
                    }
                    checkInitialization(this, key);
                    tryPrepareOptions(this, key, args);
                    return superFn.call.apply(superFn, [this].concat(args));
                };
            });
        }
function overrideStaticFunctions ( _target ) { var isFunctionMember = function ( key ) { return typeof _target [ key ] !== 'function' ; } ; object_1 . getAllPropertyNames ( _target ) . filter ( function ( key ) { return ! canOverrideMember ( key ) ; } ) . forEach ( function ( key ) { if ( isFunctionMember ( key ) ) return ; var superFn = _target [ key ] ; _target [ key ] = function ( ) { var args = [ ] ; for ( var _i = 0 ; _i < arguments . length ; _i ++ ) { args [ _i ] = arguments [ _i ] ; } checkInitialization ( this , key ) ; tryPrepareOptions ( this , key , args ) ; return superFn . call . apply ( superFn , [ this ] . concat ( args ) ) ; } ; } ) ; }
Overrides all static functions with a function, that
 checks if corresponding model is initialized and
 prepares given options if necessary
Overrides all static functions with a function that checks if corresponding model is initialized and prepares given options if necessary