Fix editorconfig config.

This commit is contained in:
Antoine Vandecreme 2015-06-11 10:49:32 -04:00
parent 606d25dbe6
commit fa868a039d
4 changed files with 8 additions and 7 deletions

View File

@ -1,7 +1,8 @@
# editorconfig.org # editorconfig.org
root = true root = true
[*] # We need to specify each folder specifically to avoid including test/lib and test/data
[{Gruntfile.js,src/**,test/*,test/demo/**,test/helpers/**,test/modules/**}]
indent_style = space indent_style = space
indent_size = 4 indent_size = 4
end_of_line = lf end_of_line = lf

View File

@ -23,19 +23,19 @@
<script type="text/javascript"> <script type="text/javascript">
var _viewer; var _viewer;
var generateUniqueHash = (function() { var generateUniqueHash = (function() {
var counter = 0; var counter = 0;
return function() { return function() {
return "openseadragon_" + (counter++); return "openseadragon_" + (counter++);
}; };
})(); })();
function createViewer() { function createViewer() {
if ( _viewer ) { if ( _viewer ) {
destroyViewer(); destroyViewer();
} }
_viewer = OpenSeadragon({ _viewer = OpenSeadragon({
element: document.getElementById("contentDiv"), element: document.getElementById("contentDiv"),
showNavigationControl: false, showNavigationControl: false,
@ -44,7 +44,7 @@
tileSources: "../data/testpattern.dzi" tileSources: "../data/testpattern.dzi"
}); });
} }
function destroyViewer() { function destroyViewer() {
if ( _viewer ) { if ( _viewer ) {
_viewer.destroy(); _viewer.destroy();

View File

@ -108,6 +108,6 @@
// ---------- // ----------
asyncTest('IIIF 2.0 JSON', function() { asyncTest('IIIF 2.0 JSON', function() {
testOpen('iiif_2_0_tiled/info.json'); testOpen('iiif_2_0_tiled/info.json');
}); });
})(); })();

View File

@ -107,7 +107,7 @@
var actualImageZoom = viewport.viewportToImageZoom( var actualImageZoom = viewport.viewportToImageZoom(
expectedViewportZoom); expectedViewportZoom);
equal(actualImageZoom, expectedImageZoom); equal(actualImageZoom, expectedImageZoom);
var actualViewportZoom = viewport.imageToViewportZoom(actualImageZoom); var actualViewportZoom = viewport.imageToViewportZoom(actualImageZoom);
equal(actualViewportZoom, expectedViewportZoom); equal(actualViewportZoom, expectedViewportZoom);
} }