Closed binarykitchen closed 7 years ago
happens on long threads
for example do not need these
}).on(_events2.default.LOADED_META_DATA, function () {
correctDimensions();
});
and probably not
self.on(_events2.default.ERROR, function (err) {
processError(err);
unloadChildren(err);
if (err.removeDimensions && err.removeDimensions()) {
removeDimensions();
}
})
and all of these
self.on(_events2.default.USER_MEDIA_READY, function () {
built = true;
self.endWaiting();
container.enableForm(false);
}).on(_events2.default.PREVIEW, function () {
self.endWaiting();
}).on(_events2.default.BLOCKING, function (blockingOptions) {
if (!blockingOptions.hideForm && !options.adjustFormOnBrowserError) {
// do nothing, user still can enter form inputs
// can be useful when you are on i.E. seeflow's contact page and
// still want to tick off the webcam option
} else {
container.disableForm(true);
}
}).on(_events2.default.PREVIEW_SHOWN, function () {
container.validate(true);
}).on(_events2.default.LOADED_META_DATA, function () {
correctDimensions();
}).on(_events2.default.ERROR, function (err) {
if (err.removeDimensions && err.removeDimensions()) {
removeDimensions();
}
Because of this infamous one