src/navigator.js
function(options) {
        var _this = this;

        var original = options.originalTiledImage;
        delete options.original;

        var optionsClone = $.extend({}, options, {
            success: function(event) {
                var myItem = event.item;
                myItem._originalForNavigator = original;
                _this._matchBounds(myItem, original, true);

                function matchBounds() {
                    _this._matchBounds(myItem, original);
                }

                function matchOpacity() {
                    _this._matchOpacity(myItem, original);
                }

                function matchCompositeOperation() {
                    _this._matchCompositeOperation(myItem, original);
                }

                original.addHandler('bounds-change', matchBounds);
                original.addHandler('clip-change', matchBounds);
                original.addHandler('opacity-change', matchOpacity);
                original.addHandler('composite-operation-change', matchCompositeOperation);
            }
        });

        return $.Viewer.prototype.addTiledImage.apply(this, [optionsClone]);
    }
function(options) {
        var _this = this;

        var original = options.originalTiledImage;
        delete options.original;

        var optionsClone = $.extend({}, options, {
            success: function(event) {
                var myItem = event.item;
                myItem._originalForNavigator = original;
                _this._matchBounds(myItem, original, true);

                function matchBounds() {
                    _this._matchBounds(myItem, original);
                }

                function matchOpacity() {
                    _this._matchOpacity(myItem, original);
                }

                function matchCompositeOperation() {
                    _this._matchCompositeOperation(myItem, original);
                }

                original.addHandler('bounds-change', matchBounds);
                original.addHandler('clip-change', matchBounds);
                original.addHandler('opacity-change', matchOpacity);
                original.addHandler('composite-operation-change', matchCompositeOperation);
            }
        });

        return $.Viewer.prototype.addTiledImage.apply(this, [optionsClone]);
    }
function ( options ) { var _this = this ; var original = options . originalTiledImage ; delete options . original ; var optionsClone = $ . extend ( { } , options , { success : function ( event ) { var myItem = event . item ; myItem . _originalForNavigator = original ; _this . _matchBounds ( myItem , original , true ) ; function matchBounds ( ) { _this . _matchBounds ( myItem , original ) ; } function matchOpacity ( ) { _this . _matchOpacity ( myItem , original ) ; } function matchCompositeOperation ( ) { _this . _matchCompositeOperation ( myItem , original ) ; } original . addHandler ( 'bounds-change' , matchBounds ) ; original . addHandler ( 'clip-change' , matchBounds ) ; original . addHandler ( 'opacity-change' , matchOpacity ) ; original . addHandler ( 'composite-operation-change' , matchCompositeOperation ) ; } } ) ; return $ . Viewer . prototype . addTiledImage . apply ( this , [ optionsClone ] ) ; }
overrides Viewer.addTiledImage
overrides Viewer . addTiledImage