build/module/lib/collections/ShareableArray.js
/**
 * Essentially constructs the ShareableArray without incrementing the
 * reference count of the elements, and without creating zombies.
 * @hidden
 */
Essentially constructs the ShareableArray without incrementing the
reference count of the elements, and without creating zombies.
@hidden
Essentially constructs the ShareableArray without incrementing the reference count of the elements and without creating zombies . @hidden
function transferOwnership(data) {
    if (data) {
        var result = new ShareableArray(data);
        for (var i = 0, iLength = data.length; i < iLength; i++) {
            var element = data[i];
            if (element && element.release) {
                element.release();
            }
        }
        return result;
    }
    else {
        return void 0;
    }
}
function transferOwnership ( data ) { if ( data ) { var result = new ShareableArray ( data ) ; for ( var i = 0 , iLength = data . length ; i < iLength ; i ++ ) { var element = data [ i ] ; if ( element && element . release ) { element . release ( ) ; } } return result ; } else { return void 0 ; } }
Essentially constructs the ShareableArray without incrementing the
 reference count of the elements, and without creating zombies.
Essentially constructs the ShareableArray without incrementing the reference count of the elements and without creating zombies .
// The result has now taken ownership of the elements, so we can release.