mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
removed global variable SIGNAL. moved it into OpenSeadragon namespace
This commit is contained in:
parent
916ada5f02
commit
b871f6c2bf
@ -42,13 +42,9 @@
|
||||
|
||||
OpenSeadragon = window.OpenSeadragon || function(){};
|
||||
|
||||
//TODO: remove this hack
|
||||
if (!window.SIGNAL){
|
||||
window.SIGNAL = "----seadragon----";
|
||||
}
|
||||
|
||||
(function( $ ){
|
||||
|
||||
$.SIGNAL = "----seadragon----";
|
||||
|
||||
$.delegate = function(object, method) {
|
||||
return function() {
|
||||
@ -58,7 +54,6 @@ if (!window.SIGNAL){
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
$.format = function(){
|
||||
|
||||
var args = arguments,
|
||||
@ -1255,7 +1250,7 @@ $.NavControl.prototype = {
|
||||
});
|
||||
|
||||
this.elmt = this._group.get_element();
|
||||
this.elmt[SIGNAL] = true; // hack to get our controls to fade
|
||||
this.elmt[$.SIGNAL] = true; // hack to get our controls to fade
|
||||
this._viewer.add_open($.delegate(this, this._lightUp));
|
||||
},
|
||||
|
||||
@ -1367,7 +1362,7 @@ $.Control.prototype = {
|
||||
this.wrapper.style.display = visible ? "inline-block" : "none";
|
||||
},
|
||||
setOpacity: function(opacity) {
|
||||
if (this.elmt[SIGNAL] && $.Utils.getBrowser() == $.Browser.IE) {
|
||||
if (this.elmt[$.SIGNAL] && $.Utils.getBrowser() == $.Browser.IE) {
|
||||
$.Utils.setElementOpacity(this.elmt, opacity, true);
|
||||
} else {
|
||||
$.Utils.setElementOpacity(this.wrapper, opacity, true);
|
||||
|
@ -1,6 +0,0 @@
|
||||
|
||||
(function( $ ){
|
||||
|
||||
|
||||
|
||||
}( OpenSeadragon ));
|
@ -32,7 +32,7 @@ $.Control.prototype = {
|
||||
this.wrapper.style.display = visible ? "inline-block" : "none";
|
||||
},
|
||||
setOpacity: function(opacity) {
|
||||
if (this.elmt[SIGNAL] && $.Utils.getBrowser() == $.Browser.IE) {
|
||||
if (this.elmt[$.SIGNAL] && $.Utils.getBrowser() == $.Browser.IE) {
|
||||
$.Utils.setElementOpacity(this.elmt, opacity, true);
|
||||
} else {
|
||||
$.Utils.setElementOpacity(this.wrapper, opacity, true);
|
||||
|
@ -79,7 +79,7 @@ $.NavControl.prototype = {
|
||||
});
|
||||
|
||||
this.elmt = this._group.get_element();
|
||||
this.elmt[SIGNAL] = true; // hack to get our controls to fade
|
||||
this.elmt[$.SIGNAL] = true; // hack to get our controls to fade
|
||||
this._viewer.add_open($.delegate(this, this._lightUp));
|
||||
},
|
||||
|
||||
|
@ -40,15 +40,11 @@
|
||||
*
|
||||
**/
|
||||
|
||||
OpenSeadragon = window.OpenSeadragon || function(){};
|
||||
|
||||
//TODO: remove this hack
|
||||
if (!window.SIGNAL){
|
||||
window.SIGNAL = "----seadragon----";
|
||||
}
|
||||
OpenSeadragon = window.OpenSeadragon || function(){};
|
||||
|
||||
(function( $ ){
|
||||
|
||||
$.SIGNAL = "----seadragon----";
|
||||
|
||||
$.delegate = function(object, method) {
|
||||
return function() {
|
||||
@ -58,7 +54,6 @@ if (!window.SIGNAL){
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
$.format = function(){
|
||||
|
||||
var args = arguments,
|
||||
|
Loading…
Reference in New Issue
Block a user