mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Merge pull request #1761 from openseadragon/ig-update
Updated NPM packages
This commit is contained in:
commit
ae4f586714
3830
package-lock.json
generated
3830
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@ -29,14 +29,14 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"grunt": "^1.0.4",
|
"grunt": "^1.0.4",
|
||||||
"grunt-contrib-clean": "^1.1.0",
|
"grunt-contrib-clean": "^2.0.0",
|
||||||
"grunt-contrib-compress": "^1.5.0",
|
"grunt-contrib-compress": "^1.6.0",
|
||||||
"grunt-contrib-concat": "^1.0.1",
|
"grunt-contrib-concat": "^1.0.1",
|
||||||
"grunt-contrib-connect": "^1.0.2",
|
"grunt-contrib-connect": "^2.1.0",
|
||||||
"grunt-contrib-qunit": "^3.1.0",
|
"grunt-contrib-qunit": "^3.1.0",
|
||||||
"grunt-contrib-uglify": "^3.4.0",
|
"grunt-contrib-uglify": "^4.0.1",
|
||||||
"grunt-contrib-watch": "^1.1.0",
|
"grunt-contrib-watch": "^1.1.0",
|
||||||
"grunt-eslint": "^20.2.0",
|
"grunt-eslint": "^22.0.0",
|
||||||
"grunt-git-describe": "^2.4.4",
|
"grunt-git-describe": "^2.4.4",
|
||||||
"grunt-istanbul": "^0.8.0",
|
"grunt-istanbul": "^0.8.0",
|
||||||
"grunt-text-replace": "^0.4.0",
|
"grunt-text-replace": "^0.4.0",
|
||||||
|
@ -2499,7 +2499,7 @@
|
|||||||
|
|
||||||
// If isPrimary is not known for the pointer then set it according to our rules:
|
// If isPrimary is not known for the pointer then set it according to our rules:
|
||||||
// true if the first pointer in the gesture, otherwise false
|
// true if the first pointer in the gesture, otherwise false
|
||||||
if ( !gPoint.hasOwnProperty( 'isPrimary' ) ) {
|
if ( !Object.prototype.hasOwnProperty.call( gPoint, 'isPrimary' ) ) {
|
||||||
if ( pointsList.getLength() === 0 ) {
|
if ( pointsList.getLength() === 0 ) {
|
||||||
gPoint.isPrimary = true;
|
gPoint.isPrimary = true;
|
||||||
} else {
|
} else {
|
||||||
@ -2535,7 +2535,7 @@
|
|||||||
listLength = pointsList.removeById( gPoint.id );
|
listLength = pointsList.removeById( gPoint.id );
|
||||||
|
|
||||||
// If isPrimary is not known for the pointer and we just removed the primary pointer from the list then we need to set another pointer as primary
|
// If isPrimary is not known for the pointer and we just removed the primary pointer from the list then we need to set another pointer as primary
|
||||||
if ( !gPoint.hasOwnProperty( 'isPrimary' ) ) {
|
if ( !Object.prototype.hasOwnProperty.call( gPoint, 'isPrimary' ) ) {
|
||||||
primaryPoint = pointsList.getPrimary();
|
primaryPoint = pointsList.getPrimary();
|
||||||
if ( !primaryPoint ) {
|
if ( !primaryPoint ) {
|
||||||
primaryPoint = pointsList.getByIndex( 0 );
|
primaryPoint = pointsList.getByIndex( 0 );
|
||||||
@ -3172,7 +3172,7 @@
|
|||||||
|
|
||||||
if ( updateGPoint ) {
|
if ( updateGPoint ) {
|
||||||
// Already tracking the pointer...update it
|
// Already tracking the pointer...update it
|
||||||
if ( curGPoint.hasOwnProperty( 'isPrimary' ) ) {
|
if ( Object.prototype.hasOwnProperty.call( curGPoint, 'isPrimary' ) ) {
|
||||||
updateGPoint.isPrimary = curGPoint.isPrimary;
|
updateGPoint.isPrimary = curGPoint.isPrimary;
|
||||||
}
|
}
|
||||||
updateGPoint.lastPos = updateGPoint.currentPos;
|
updateGPoint.lastPos = updateGPoint.currentPos;
|
||||||
|
@ -735,7 +735,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* eslint-disable no-redeclare */
|
||||||
function OpenSeadragon( options ){
|
function OpenSeadragon( options ){
|
||||||
return new OpenSeadragon.Viewer( options );
|
return new OpenSeadragon.Viewer( options );
|
||||||
}
|
}
|
||||||
@ -2256,7 +2256,7 @@ function OpenSeadragon( options ){
|
|||||||
|
|
||||||
if (headers) {
|
if (headers) {
|
||||||
for (var headerName in headers) {
|
for (var headerName in headers) {
|
||||||
if (headers.hasOwnProperty(headerName) && headers[headerName]) {
|
if (Object.prototype.hasOwnProperty.call(headers, headerName) && headers[headerName]) {
|
||||||
request.setRequestHeader(headerName, headers[headerName]);
|
request.setRequestHeader(headerName, headers[headerName]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2291,7 +2291,7 @@ function OpenSeadragon( options ){
|
|||||||
request.onreadystatechange = function(){};
|
request.onreadystatechange = function(){};
|
||||||
|
|
||||||
if (window.XDomainRequest) { // IE9 or IE8 might as well try to use XDomainRequest
|
if (window.XDomainRequest) { // IE9 or IE8 might as well try to use XDomainRequest
|
||||||
var xdr = new XDomainRequest();
|
var xdr = new window.XDomainRequest();
|
||||||
if (xdr) {
|
if (xdr) {
|
||||||
xdr.onload = function (e) {
|
xdr.onload = function (e) {
|
||||||
if ( $.isFunction( onSuccess ) ) {
|
if ( $.isFunction( onSuccess ) ) {
|
||||||
|
@ -1714,10 +1714,10 @@ function providesCoverage( coverage, level, x, y ) {
|
|||||||
if ( x === undefined || y === undefined ) {
|
if ( x === undefined || y === undefined ) {
|
||||||
rows = coverage[ level ];
|
rows = coverage[ level ];
|
||||||
for ( i in rows ) {
|
for ( i in rows ) {
|
||||||
if ( rows.hasOwnProperty( i ) ) {
|
if ( Object.prototype.hasOwnProperty.call( rows, i ) ) {
|
||||||
cols = rows[ i ];
|
cols = rows[ i ];
|
||||||
for ( j in cols ) {
|
for ( j in cols ) {
|
||||||
if ( cols.hasOwnProperty( j ) && !cols[ j ] ) {
|
if ( Object.prototype.hasOwnProperty.call( cols, j ) && !cols[ j ] ) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user