Skip to content

A View Manager to help remove those sodding zombie views, found in the darkest parts of your SPA

Notifications You must be signed in to change notification settings

cddnation/backbone-view-manager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

backbone-view-manager

A View Manager to help remove those sodding zombie views, found in the darkest parts of your SPA.

How to use

A typical rendering of a view would look like this:

var demoView = new DemoView({...});
this.$el.append(demoView.render().el);

How to initiate the view manager

var demoView = ViewsManager.ViewCreate('demoView', function () {
    return new DemoView({...});
});

this.$el.append(demoView.render().el);

Or re-use existing view

var demoView = ViewsManager.ViewReuse('demoView', function () {
    return new DemoView({...});
});

this.$el.append(demoView.render().el);

Kill a view

ViewsManager.ViewClose('demoView');

About

A View Manager to help remove those sodding zombie views, found in the darkest parts of your SPA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%