Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-1692

aui-node template is incorrect should be more compact

    Details

      Description

      aui-node template is incorrect

      AUI().use(
      'aui-node',
      function(A) {
      // Select the node(s) using a css selector string
      var node = Y.one('#toggleColor');

      // Change the background color on a `click` event
      node.on('click', function()

      { var randomColor = Math.floor(Math.random() * 16777215) .toString(16); node.setStyle('background', '#' + randomColor); }

      );
      });

      aui template is not that useful should be just a skeleton
      AUI().use( ‘${use}’, function(A) {
      var node = A.one(“${selector}”);
      });

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gregory.amerson Gregory Amerson
              Reporter:
              gregory.amerson Gregory Amerson
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 19 weeks, 5 days ago

                  Packages

                  Version Package
                  2.2.0