Details

    • Sprint:
      To Be Scheduled

      Description

      Our Javascript index code can understand JS object literal definitions with properties defined in key/value pairs. But if you use a constructor function with property assignments to "this" we don't understand that at all.

      Example:

      function MobilewareSdk() {
        this.version = "0.0.0";
        this.name = "customerevent";
        this.apis = {};
        this.apis["customerevent"] = {
          this.version = "0.0.0";
          this.name = "customerevent";
          this.login = function() {
            // you get the idea...
          }
        };
      }
      

      This is actually pretty complex in that we need to understand the shifting context of this as we go into the nested "layers" here. Additionally, note the element/property access using a string key for defining the apis.customerevent type.

        Attachments

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              cwilliams Christopher Williams
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: