A set of browser components based on groupJS
How to define your own template?
-
Instance the component
-
component.tpl = new.tpl
-
override the component back to its group
-
$(window).scroll doesn't bubble so we need to build for one event
-
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.