Giter Club home page Giter Club logo

jquery-plugincreator's People

Contributors

fluffels avatar oopman avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

jquery-plugincreator's Issues

_super method injection fails with functions expected to handle variable-length/optional argument lists

Given plugin A defining the following members:

{
    methodA: function () {
        //TODO: Do stuff
    }
}

Extending plugin A to create plugin B with the following members:

{
    methodA: function(optionalParameter, _super) {
        //TODO: Do stuff and call _super()
    }
}

Attempting to call methodA on an instance of Plugin B with no parameters results in the optionalParameter member receiving the value intended for the _super parameter.

This is a serious issue that breaks non-trivial inheritance usage.

v1.0.0

With the decision to implement v2.0.0 of this project it's probably about time to mark the current release of the v0.x line as v1.0.0

v2.0.0 (Meta-issue)

v1.0.0 of jQuery PluginCreator will introduce major breaking changes.

The following features/changes are planned:

  • Plugins will be written using the ES6 class system. The current DIY OO system will no longer be supported and plugin inheritance will instead performed directly using the plugin one wishes to extend. This will leverage the module system provided by ES6 in order to allow a Plugin module to not only extend jQuery but also make its class available for extension.
  • The Plugin functions created by jQuery PluginCreator on the jQuery.fn object will be enhanced in order to use ES5.1 getters and setters in order to ease access to plugin instances.

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.