Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33889

CSSStyleDeclaration->createProtoChainRoot() is obsolete

    XMLWordPrintableJSON

    Details

      Description

      CSSStyleDeclaration->createProtoChainRoot() is obsolete (it seems since Macromedia days).

      This is an "mx_internal" method, and couldn't find any references by the framework itself. Am I right?

      Another method is used (for initializing the styles root) instead: SystemManagerImpl->initProtoChainRoots()

      Here's the actual method to remove:

      /**

      • @private
        */
        mx_internal function createProtoChainRoot():Object
        {
        var root:Object = {};

      // If there's a defaultFactory for this style sheet,
      // then add the object it produces to the root.
      if (defaultFactory != null)

      { defaultFactory.prototype = root; root = new defaultFactory(); }

      // If there's a factory for this style sheet,
      // then add the object it produces to the root.
      if (factory != null)

      { factory.prototype = root; root = new factory(); }

      clones[ root ] = 1;

      return root;
      }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dkozar Danko Kozar
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 2m
                2m
                Remaining:
                Remaining Estimate - 2m
                2m
                Logged:
                Time Spent - Not Specified
                Not Specified