0.0.1 • Published 8 years ago
mainnotejs v0.0.1
mainnoteJS
A set of browser components based on groupJS
How to define your own template? 1. Instance the component 2. component.tpl = new.tpl 3. override the component back to its group 4. $(window).scroll doesn't bubble so we need to build for one event 5. Check members in debug console: require('memberName', function(Member){console.log(Member.members());});
- setOpt() if necessary
- each iterable object should be created, each click of fetch should be created
- adding a jquery plugin, edit config.js, Gruntfile.js (requirejs and jasmine) and play.html
- Never call yourself prompt.call(this, opt). if will dead loop. e.g. getMember() to Prompt and use Prompt.call(this, opt)
- When inherit keep name with suffix _specific customized
- In the customized level, give arguments with setOpt();
- In object, extend function and constant; if you need a object variable, you should define in init method;
- 'click' repeated instance requires to create a new instance. So that the previous operation will not interrupt. example: prompt form
- in collectionGrp, collection and entity: if remote, entity will be inserted remotely first then back to client and create a entity then push into collection; if not remote, entity will just create an entity then push into collection; Entity updated by itself; may be trigger collection to do something if required; if remote, entity will be removed remotely first then back to client and remove entity from collection; if not remote, entity will ask collection to be removed.
0.0.1
8 years ago