Merging publiclab:master in

This commit is contained in:
Chinmay Pandhare
2017-03-15 08:16:04 +05:30
2 changed files with 5 additions and 3 deletions

View File

@@ -184151,7 +184151,10 @@ ImageSequencer = function ImageSequencer(options) {
options = options || {}; options = options || {};
options.inBrowser = options.inBrowser || typeof window !== 'undefined'; options.inBrowser = options.inBrowser || typeof window !== 'undefined';
if (options.inBrowser) options.ui = options.ui || require('./UserInterface'); if (options.inBrowser) options.ui = options.ui || require('./UserInterface');
<<<<<<< HEAD
options.sequencer_counter = 0; options.sequencer_counter = 0;
=======
>>>>>>> master
var image, var image,
steps = [], steps = [],

View File

@@ -5,7 +5,7 @@ ImageSequencer = function ImageSequencer(options) {
options = options || {}; options = options || {};
options.inBrowser = options.inBrowser || typeof window !== 'undefined'; options.inBrowser = options.inBrowser || typeof window !== 'undefined';
if (options.inBrowser) options.ui = options.ui || require('./UserInterface'); if (options.inBrowser) options.ui = options.ui || require('./UserInterface');
options.sequencer_counter = 0; options.sequencerCounter = 0;
var image, var image,
steps = [], steps = [],
@@ -25,7 +25,7 @@ ImageSequencer = function ImageSequencer(options) {
options.instanceName = variable; options.instanceName = variable;
o = o || {}; o = o || {};
o.id = options.sequencer_counter++; //Gives a Unique ID to each step o.id = options.sequencerCounter++; //Gives a Unique ID to each step
o.name = o.name || name; o.name = o.name || name;
o.selector = o.selector || 'ismod-' + name; o.selector = o.selector || 'ismod-' + name;
o.container = o.container || options.selector; o.container = o.container || options.selector;
@@ -106,7 +106,6 @@ ImageSequencer = function ImageSequencer(options) {
// load default starting image // load default starting image
// i.e. from parameter // i.e. from parameter
// this could send the image to ImageSelect, or something? // this could send the image to ImageSelect, or something?
// not currently working
function loadImage(src, callback) { function loadImage(src, callback) {
if (!(options.instanceName) && this != window) if (!(options.instanceName) && this != window)
for(var variable in window) for(var variable in window)