0.0.1 • Published 8 years ago

mainnotejs v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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());});

  1. setOpt() if necessary
  2. each iterable object should be created, each click of fetch should be created
  3. adding a jquery plugin, edit config.js, Gruntfile.js (requirejs and jasmine) and play.html
  4. Never call yourself prompt.call(this, opt). if will dead loop. e.g. getMember() to Prompt and use Prompt.call(this, opt)
  5. When inherit keep name with suffix _specific customized
  6. In the customized level, give arguments with setOpt();
  7. In object, extend function and constant; if you need a object variable, you should define in init method;
  8. 'click' repeated instance requires to create a new instance. So that the previous operation will not interrupt. example: prompt form
  9. 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.