videomail-client 9.0.7 → 9.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "9.0.7",
3
+ "version": "9.0.9",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -17273,7 +17273,7 @@ function wrappy (fn, cb) {
17273
17273
  },{}],114:[function(_dereq_,module,exports){
17274
17274
  module.exports={
17275
17275
  "name": "videomail-client",
17276
- "version": "9.0.7",
17276
+ "version": "9.0.9",
17277
17277
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
17278
17278
  "keywords": [
17279
17279
  "webcam",
@@ -17545,7 +17545,7 @@ var VideomailClient = function VideomailClient(options) {
17545
17545
  return getBrowser(localOptions).canRecord();
17546
17546
  };
17547
17547
 
17548
- // return true when a video has been recorded but is not sent yet
17548
+ // Returns true when a video has been recorded but is not submitted yet
17549
17549
  this.isDirty = function () {
17550
17550
  return container.isDirty();
17551
17551
  };
@@ -20344,6 +20344,8 @@ var Container = function Container(options) {
20344
20344
  if (form) {
20345
20345
  if (visuals.isRecorderUnloaded()) {
20346
20346
  isDirty = false;
20347
+ } else if (submitted) {
20348
+ isDirty = false;
20347
20349
  } else if (this.isReplayShown() || this.isPaused()) {
20348
20350
  isDirty = true;
20349
20351
  }
@@ -20722,11 +20724,11 @@ var Form = function Form(container, formElement, options) {
20722
20724
  };
20723
20725
  function startListeningToSubmitEvents() {
20724
20726
  var submitButton = container.getSubmitButton();
20725
- submitButton.addEventListener("click", self.doTheSubmit.bind(self));
20727
+ submitButton.onclick = self.doTheSubmit.bind(self);
20726
20728
  }
20727
20729
  function stopListeningToSubmitEvents() {
20728
20730
  var submitButton = container.getSubmitButton();
20729
- submitButton.removeEventListener("click", self.doTheSubmit.bind(self));
20731
+ submitButton.onclick = null;
20730
20732
  }
20731
20733
  this.doTheSubmit = function (e) {
20732
20734
  debug("Form: doTheSubmit()", e);