nnance / backbone-composer Goto Github PK
View Code? Open in Web Editor NEWBackbone View plugin to simplify rendering and life cycle management
License: MIT License
Backbone View plugin to simplify rendering and life cycle management
License: MIT License
onRender: function() {
if (this.getSubViewCount() === 0) {
this.addSubView({
Should be able to just addSubViews in onRender. The best solution is likely calling removeSubViews on render.
Add copyright and version number header to the source. This should be done via a grunt task to automatically pull it from the package.json
Update the version number bower.json with a grunt task based on the package.json file
The release task should bump the version number in the package.json, update bower.json, update the source code header and update the read me documentation
updateTabOrder: function() {
var tabindex = 1;
this.$('form').find('input,select').each(function() {
if (this.type != "hidden") {
var
$input.attr("tabindex", tabindex);
tabindex++;
}
});
},
if a sub view calls close directly it should be removed from parent subViews
Should basically look like this:
getSubViewForModel: function(model) {
var subView = _.find(this._subViews, function(subView) {
return (subView.view.model && subView.view.model === model);
});
return subView.view;
},
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.