Skip to content

Binds Javascript Objects to HTML Elements using the MVB(Model-View-Binder) pattern.

Notifications You must be signed in to change notification settings

ARivottiC/doo.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

doo.js

Build status

Binds Javascript Objects to HTML Elements using the MVB(Model-View-Binder) pattern.

Mission

doo.js was develop with the following goals:

  • use only standards and pure javascript
  • use only standards and pure HTML
  • total independence between Javascript and HTML
  • objects can be reused and extended in an easy way
  • easy integration with other Javascript libs

Usage

<body>
    <a href="#" data-doo="AppButton">Click Me</a>    

    <script src="doo.js"></script>
    <script type="text/javascript">
        Doo.define('AppButton', {
            constructor: function () {
                Doo.apply( this, arguments );
                this.on( 'click' );
            },
            click: function () { alert('Hello World!'); }
        });

        app = new Doo( document.body );
    </script>
</body>

See the Wiki for more on doo.js.

Acknowledges

The following were involved, or contributed in any way, for the final implementation of doo.js:

About

Binds Javascript Objects to HTML Elements using the MVB(Model-View-Binder) pattern.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages