GithubHelp home page GithubHelp logo

wkeese / dijit2-prototype Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dojo/dijit-oldmirror

0.0 0.0 1.0 12.71 MB

Dijit 2.0 prototyping (in 2.0 branch)

Home Page: http://dojotoolkit.org/

License: Other

JavaScript 98.37% PHP 1.63%

dijit2-prototype's People

Contributors

brianarn avatar bryanforbes avatar cjolif avatar dylans avatar jrburke avatar kitsonk avatar kriszyp avatar ktiedt avatar liucougar avatar neonstalwart avatar peller avatar phiggins42 avatar rcgill avatar sfoster avatar shaneosullivan avatar sjmiles avatar slightlyoff avatar ttrenka avatar uhop avatar wkeese avatar

Watchers

 avatar

dijit2-prototype's Issues

use <button> for Button widget

Using will simplify the dijit/form/Button template tremendously, and we won't need to use the a11yclick synthetic event anymore.

refactor widget event notification

Remove all the onFoo() stub methods in widgets, or perhaps put them in doc comments so that the doc parser still picks them up.

Simplify _WidgetBase.on() to just delegate to listening for specified event on this.domNode. Code is already there, so it's just a question of removing _onMap() and the code that calls it.

Make all widgets call _WidgetBase.emit() whenever an event occurs, rather than calling the stub function directly.
For native events, like clicking a button, widgets don't need to do anything, except perhaps stop the event if the widget is disabled.

Finally, similar to how _Widget works with this._toConnect (in constructor() and postCreate(), make way so events specified to widget constructors (ex: new Button({onClick: ...}) get mapped to _WidgetBase.on() calls.

Open issues:

  1. Do we need to make exceptions for functions that should be directly assigned to the this, rather than using on()? Doug is always big on onClick() returning a true/false value that can stop event propagation. Maybe there are other cases too.
  2. Also might be nice for backwards-compatibility to keep the code in _WidgetBase.on() that sets up advice on a stub function if it exists, rather than listening for events on the DOMNode. Since that's still considered the standard way for widgets to emit events.

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.