handler: function()

in django_airavata/static/common/js/mixins/VModelMixin.js [6:18]


      handler: function (newValue, oldValue) {
        // Only emit 'input' for objects when one of their deep properties has
        // changed to prevent infinite loop since 'data' is recloned whenever
        // 'value' changes
        if (typeof this.value === "object" && newValue === oldValue) {
          this.$emit("input", newValue);
        } else if (
          (this.value === null || typeof this.value !== "object") &&
          newValue !== oldValue
        ) {
          this.$emit("input", newValue);
        }
      },