Skip to content
This repository has been archived by the owner on Jun 16, 2019. It is now read-only.
/ sweet Public archive

Inspired by Backbone, but just the stuff we needed (Project discontinued, moved to https://github.com/vpj/weya)

License

Notifications You must be signed in to change notification settings

vpj/sweet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SweetJS

SweetJS is inspired by Backbone, written in CoffeeScript, and much lighter. It doesn't sync or handle events like Backbone.

Sweet.Base introduces class level include to support multiple inheritence. Also you can subclass views and add new events and attributes from subclasses without overriding parent class events.

Router suppoers history.back() and setting a state object. This lets you synchronize browser back button and web app back button - this is needed specially on mobile devices since browser toolbar dissapears.

SweetJS requires jQuery and Underscore.

Model

Model is a simple class that would add default values to a key-value set.

View

View has most of the functions in Backbone.View and also supports subclassing, where you can register new events and/or override events from parent classes.

Also multiple initializers can be registered, aiding subclassing.

Router

Similar to Backbone.Router. Supports history.back() and HTML5 history states, falls back to hash tags if HTML5 history is not available.

About

Inspired by Backbone, but just the stuff we needed (Project discontinued, moved to https://github.com/vpj/weya)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published