Git Product home page Git Product logo

Comments (3)

cpboyd avatar cpboyd commented on May 28, 2024 1

I'd gladly make a pull-request with this change, but I've still got a pending pull-request from several months ago of a relatively trivial change.

from gwt-api-generator.

manolo avatar manolo commented on May 28, 2024 1

Fixed in bdc3b64

from gwt-api-generator.

cpboyd avatar cpboyd commented on May 28, 2024

A simple fix is to change line 66 in gulpfile.js to restrict duplication like has been done with events:

// merge properties
        if (nestedBehaviors.properties && nestedBehaviors.properties.length) {
          nestedBehaviors.properties.forEach(function (property) {
            var notDuplicate = _.filter(item.properties, function (p) {
                return p.name == property.name;
              }).length === 0;
            if (notDuplicate) {
              item.properties.push(property);
            }
          });
        }

This, effectively, prevents this duplication from occurring. Granted, it doesn't give you the access to the original behavior's method, but I'm not certain that'd be useful in this specific case.

from gwt-api-generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.