Testing + Removing debugger statements

This commit is contained in:
Emanuel F. Oliveira 2017-01-18 03:13:57 -02:00
parent 402d45f40b
commit 014dc7730f
14 changed files with 1 additions and 17 deletions

View File

@ -65,8 +65,6 @@ Template.viewer.onCreated(() => {
instance.autorun(OHIF.lesiontracker.pixelSpacingAutorunCheck);
// @TypeSafeStudies
debugger;
// Update the OHIF.viewer.Studies collection with the loaded studies
OHIF.viewer.Studies.removeAll();

View File

@ -49,8 +49,6 @@ Template.viewer.onCreated(() => {
Session.set('activeViewport', ViewerData[contentId].activeViewport || 0);
// @TypeSafeStudies
debugger;
// Update the OHIF.viewer.Studies collection with the loaded studies
OHIF.viewer.Studies.removeAll();

View File

@ -136,7 +136,6 @@ function getActiveViewportImageId() {
function getAbstractPriorValue(imageId) {
// @TypeSafeStudies
debugger;
// @TODO: Implement MIN and MAX methods in TypeSafeCollection
// const currentStudy = ViewerStudies.findOne({}, {
// sort: {

View File

@ -404,7 +404,6 @@ HP.ProtocolEngine = class ProtocolEngine {
}
// @TypeSafeStudies
debugger;
var alreadyLoaded = OHIF.viewer.Studies.findBy({
studyInstanceUid: priorStudy.studyInstanceUid

View File

@ -32,7 +32,6 @@ function findAndRenderDisplaySet(displaySets, viewportIndex, studyInstanceUid, s
function renderIntoViewport(viewportIndex, studyInstanceUid, seriesInstanceUid, sopInstanceUid, renderedCallback) {
// @TypeSafeStudies
debugger;
// First, check if we already have this study loaded
const alreadyLoadedStudy = OHIF.viewer.Studies.findBy({ studyInstanceUid });

View File

@ -4,7 +4,6 @@ import { OHIF } from 'meteor/ohif:core';
Template.studyBrowser.helpers({
studies() {
// @TypeSafeStudies
debugger;
return OHIF.viewer.Studies.findAllBy({
selected: true
});

View File

@ -586,7 +586,6 @@ Template.imageViewerViewport.onRendered(function() {
}
// @TypeSafeStudies
debugger;
const study = OHIF.viewer.Studies.findBy({ studyInstanceUid });
data.study = study;

View File

@ -29,7 +29,6 @@ Template.studySeriesQuickSwitch.onCreated(() => {
const viewportData = instance.getViewportData(viewportIndex);
// @TypeSafeStudies
debugger;
if (viewportData) {
// Finds the current study and return it

View File

@ -41,7 +41,6 @@ Template.studyTimepoint.events({
let $studiesTarget = instance.$('.studyTimepoint');
// @TypeSafeStudies
debugger;
if (changed.isQuickSwitch) {
// Changes the current quick switch study

View File

@ -22,7 +22,6 @@ Template.studyTimepointBrowser.onCreated(() => {
// Get the studies for a specific timepoint
instance.getStudies = timepoint => {
// @TypeSafeStudies
debugger;
if (!timepoint) {
return OHIF.viewer.Studies.all();

View File

@ -99,7 +99,6 @@ Template.studyTimepointStudy.events({
const isQuickSwitch = !_.isUndefined(instance.data.viewportIndex);
// @TypeSafeStudies
debugger;
// Check if the study already has series data,
// and if not, retrieve it.
if (!studyData.seriesList) {
@ -128,7 +127,6 @@ Template.studyTimepointStudy.events({
Template.studyTimepointStudy.helpers({
isLoading() {
// @TypeSafeStudies
debugger;
const instance = Template.instance();
const studyData = instance.data.study;
const alreadyLoaded = OHIF.viewer.Studies.findBy({ studyInstanceUid: studyData.studyInstanceUid });

View File

@ -219,7 +219,6 @@ Template.viewportOverlay.helpers({
}
// @TypeSafeStudies
debugger
// Make sure there are more than two studies loaded in the viewer
const viewportStudies = OHIF.viewer.Studies.all();
if (viewportStudies.length < 2) {

View File

@ -4,7 +4,7 @@ import { OHIF } from 'meteor/ohif:core';
const getStudyFromStudyInstanceUid = studyInstanceUid => {
// @TypeSafeStudies
return Studies.findBy({ studyInstanceUid });
return OHIF.viewer.Studies.findBy({ studyInstanceUid });
};
const getNumberOfStacks = studyInstanceUid => {

View File

@ -44,7 +44,6 @@ Template.viewer.onCreated(() => {
Session.set('activeViewport', ViewerData[contentId].activeViewport || 0);
// @TypeSafeStudies
debugger;
// Update the OHIF.viewer.Studies collection with the loaded studies
OHIF.viewer.Studies.removeAll();