Final Fixes for removeStep() build error

This commit is contained in:
Chinmay Pandhare
2017-03-16 19:35:37 +05:30
parent 7c8b32079c
commit f5ac3f4407
3 changed files with 6 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ ImageSequencer = function ImageSequencer(options) {
function addStep(name, o) {
console.log('adding step "' + name + '"');
if (typeof(window) != undefined)
if (typeof(window) != "undefined")
for(var variable in window)
if(window[variable] == this)
options.instanceName = variable;
@@ -107,7 +107,7 @@ ImageSequencer = function ImageSequencer(options) {
// i.e. from parameter
// this could send the image to ImageSelect, or something?
function loadImage(src, callback) {
if (typeof(window) != undefined)
if (typeof(window) != "undefined")
for(var variable in window)
if(window[variable] == this)
options.instanceName = variable;