Comparing version 1.0.36 to 1.0.38
var typedoc = typedoc || {}; | ||
typedoc.search = typedoc.search || {}; | ||
typedoc.search.data = {"kinds":{"1":"External module","32":"Variable","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method"},"rows":[{"id":0,"kind":1,"name":"\"interfaces/IEvent\"","url":"modules/_interfaces_ievent_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":256,"name":"IEvent","url":"interfaces/_interfaces_ievent_.ievent.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"interfaces/IEvent\""},{"id":2,"kind":2048,"name":"on","url":"interfaces/_interfaces_ievent_.ievent.html#on","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/IEvent\".IEvent"},{"id":3,"kind":2048,"name":"trigger","url":"interfaces/_interfaces_ievent_.ievent.html#trigger","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/IEvent\".IEvent"},{"id":4,"kind":2048,"name":"off","url":"interfaces/_interfaces_ievent_.ievent.html#off","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/IEvent\".IEvent"},{"id":5,"kind":1,"name":"\"interfaces/IModel\"","url":"modules/_interfaces_imodel_.html","classes":"tsd-kind-external-module"},{"id":6,"kind":256,"name":"IModel","url":"interfaces/_interfaces_imodel_.imodel.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"interfaces/IModel\""},{"id":7,"kind":2048,"name":"get","url":"interfaces/_interfaces_imodel_.imodel.html#get","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/IModel\".IModel"},{"id":8,"kind":2048,"name":"set","url":"interfaces/_interfaces_imodel_.imodel.html#set","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/IModel\".IModel"},{"id":9,"kind":2048,"name":"has","url":"interfaces/_interfaces_imodel_.imodel.html#has","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/IModel\".IModel"},{"id":10,"kind":2048,"name":"drop","url":"interfaces/_interfaces_imodel_.imodel.html#drop","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/IModel\".IModel"},{"id":11,"kind":2048,"name":"toJSON","url":"interfaces/_interfaces_imodel_.imodel.html#tojson","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/IModel\".IModel"},{"id":12,"kind":1,"name":"\"interfaces/ICollection\"","url":"modules/_interfaces_icollection_.html","classes":"tsd-kind-external-module"},{"id":13,"kind":256,"name":"ICollection","url":"interfaces/_interfaces_icollection_.icollection.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"interfaces/ICollection\""},{"id":14,"kind":2048,"name":"add","url":"interfaces/_interfaces_icollection_.icollection.html#add","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":15,"kind":2048,"name":"remove","url":"interfaces/_interfaces_icollection_.icollection.html#remove","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":16,"kind":2048,"name":"clear","url":"interfaces/_interfaces_icollection_.icollection.html#clear","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":17,"kind":2048,"name":"has","url":"interfaces/_interfaces_icollection_.icollection.html#has","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":18,"kind":2048,"name":"getAll","url":"interfaces/_interfaces_icollection_.icollection.html#getall","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":19,"kind":2048,"name":"merge","url":"interfaces/_interfaces_icollection_.icollection.html#merge","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":20,"kind":2048,"name":"filter","url":"interfaces/_interfaces_icollection_.icollection.html#filter","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":21,"kind":2048,"name":"map","url":"interfaces/_interfaces_icollection_.icollection.html#map","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":22,"kind":2048,"name":"reduce","url":"interfaces/_interfaces_icollection_.icollection.html#reduce","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":23,"kind":2048,"name":"getById","url":"interfaces/_interfaces_icollection_.icollection.html#getbyid","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":24,"kind":2048,"name":"find","url":"interfaces/_interfaces_icollection_.icollection.html#find","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":25,"kind":2048,"name":"reset","url":"interfaces/_interfaces_icollection_.icollection.html#reset","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":26,"kind":2048,"name":"getLength","url":"interfaces/_interfaces_icollection_.icollection.html#getlength","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":27,"kind":2048,"name":"each","url":"interfaces/_interfaces_icollection_.icollection.html#each","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":28,"kind":2048,"name":"toJSON","url":"interfaces/_interfaces_icollection_.icollection.html#tojson","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":29,"kind":2048,"name":"sortBy","url":"interfaces/_interfaces_icollection_.icollection.html#sortby","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":30,"kind":2048,"name":"toArray","url":"interfaces/_interfaces_icollection_.icollection.html#toarray","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":31,"kind":2048,"name":"chunk","url":"interfaces/_interfaces_icollection_.icollection.html#chunk","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":32,"kind":2048,"name":"countBy","url":"interfaces/_interfaces_icollection_.icollection.html#countby","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":33,"kind":2048,"name":"groupBy","url":"interfaces/_interfaces_icollection_.icollection.html#groupby","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":34,"kind":1,"name":"\"classes/Event\"","url":"modules/_classes_event_.html","classes":"tsd-kind-external-module"},{"id":35,"kind":128,"name":"Event","url":"classes/_classes_event_.event.html","classes":"tsd-kind-class tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"classes/Event\""},{"id":36,"kind":1024,"name":"_events","url":"classes/_classes_event_.event.html#_events","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected tsd-is-not-exported","parent":"\"classes/Event\".Event"},{"id":37,"kind":2048,"name":"on","url":"classes/_classes_event_.event.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Event\".Event"},{"id":38,"kind":2048,"name":"off","url":"classes/_classes_event_.event.html#off","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Event\".Event"},{"id":39,"kind":2048,"name":"trigger","url":"classes/_classes_event_.event.html#trigger","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Event\".Event"},{"id":40,"kind":1,"name":"\"classes/Model\"","url":"modules/_classes_model_.html","classes":"tsd-kind-external-module"},{"id":41,"kind":128,"name":"Model","url":"classes/_classes_model_.model.html","classes":"tsd-kind-class tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"classes/Model\""},{"id":42,"kind":1024,"name":"_model","url":"classes/_classes_model_.model.html#_model","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":43,"kind":512,"name":"constructor","url":"classes/_classes_model_.model.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":44,"kind":2048,"name":"get","url":"classes/_classes_model_.model.html#get","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":45,"kind":2048,"name":"set","url":"classes/_classes_model_.model.html#set","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":46,"kind":2048,"name":"has","url":"classes/_classes_model_.model.html#has","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":47,"kind":2048,"name":"toJSON","url":"classes/_classes_model_.model.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":48,"kind":2048,"name":"drop","url":"classes/_classes_model_.model.html#drop","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":49,"kind":1024,"name":"_events","url":"classes/_classes_model_.model.html#_events","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":50,"kind":2048,"name":"on","url":"classes/_classes_model_.model.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":51,"kind":2048,"name":"off","url":"classes/_classes_model_.model.html#off","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":52,"kind":2048,"name":"trigger","url":"classes/_classes_model_.model.html#trigger","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":53,"kind":1,"name":"\"classes/Collection\"","url":"modules/_classes_collection_.html","classes":"tsd-kind-external-module"},{"id":54,"kind":128,"name":"Collection","url":"classes/_classes_collection_.collection.html","classes":"tsd-kind-class tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"classes/Collection\""},{"id":55,"kind":1024,"name":"_models","url":"classes/_classes_collection_.collection.html#_models","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":56,"kind":512,"name":"constructor","url":"classes/_classes_collection_.collection.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":57,"kind":2048,"name":"_init","url":"classes/_classes_collection_.collection.html#_init","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":58,"kind":2048,"name":"_isModel","url":"classes/_classes_collection_.collection.html#_ismodel","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":59,"kind":2048,"name":"_clearCollection","url":"classes/_classes_collection_.collection.html#_clearcollection","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":60,"kind":2048,"name":"add","url":"classes/_classes_collection_.collection.html#add","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":61,"kind":2048,"name":"remove","url":"classes/_classes_collection_.collection.html#remove","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":62,"kind":2048,"name":"has","url":"classes/_classes_collection_.collection.html#has","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":63,"kind":2048,"name":"clear","url":"classes/_classes_collection_.collection.html#clear","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":64,"kind":2048,"name":"filter","url":"classes/_classes_collection_.collection.html#filter","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":65,"kind":2048,"name":"map","url":"classes/_classes_collection_.collection.html#map","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":66,"kind":2048,"name":"getById","url":"classes/_classes_collection_.collection.html#getbyid","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":67,"kind":2048,"name":"find","url":"classes/_classes_collection_.collection.html#find","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":68,"kind":2048,"name":"reduce","url":"classes/_classes_collection_.collection.html#reduce","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":69,"kind":2048,"name":"getAll","url":"classes/_classes_collection_.collection.html#getall","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":70,"kind":2048,"name":"each","url":"classes/_classes_collection_.collection.html#each","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":71,"kind":2048,"name":"merge","url":"classes/_classes_collection_.collection.html#merge","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":72,"kind":2048,"name":"reset","url":"classes/_classes_collection_.collection.html#reset","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":73,"kind":2048,"name":"getLength","url":"classes/_classes_collection_.collection.html#getlength","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":74,"kind":2048,"name":"toJSON","url":"classes/_classes_collection_.collection.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":75,"kind":2048,"name":"sortBy","url":"classes/_classes_collection_.collection.html#sortby","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":76,"kind":2048,"name":"toArray","url":"classes/_classes_collection_.collection.html#toarray","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":77,"kind":2048,"name":"chunk","url":"classes/_classes_collection_.collection.html#chunk","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":78,"kind":2048,"name":"countBy","url":"classes/_classes_collection_.collection.html#countby","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":79,"kind":2048,"name":"groupBy","url":"classes/_classes_collection_.collection.html#groupby","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":80,"kind":1024,"name":"_events","url":"classes/_classes_collection_.collection.html#_events","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":81,"kind":2048,"name":"on","url":"classes/_classes_collection_.collection.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":82,"kind":2048,"name":"off","url":"classes/_classes_collection_.collection.html#off","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":83,"kind":2048,"name":"trigger","url":"classes/_classes_collection_.collection.html#trigger","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":84,"kind":1,"name":"\"lanurite\"","url":"modules/_lanurite_.html","classes":"tsd-kind-external-module"},{"id":85,"kind":32,"name":"___VERSION__","url":"modules/_lanurite_.html#___version__","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"lanurite\""}]}; | ||
typedoc.search.data = {"kinds":{"1":"External module","32":"Variable","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method"},"rows":[{"id":0,"kind":1,"name":"\"interfaces/IEvent\"","url":"modules/_interfaces_ievent_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":256,"name":"IEvent","url":"interfaces/_interfaces_ievent_.ievent.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"interfaces/IEvent\""},{"id":2,"kind":2048,"name":"on","url":"interfaces/_interfaces_ievent_.ievent.html#on","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/IEvent\".IEvent"},{"id":3,"kind":2048,"name":"trigger","url":"interfaces/_interfaces_ievent_.ievent.html#trigger","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/IEvent\".IEvent"},{"id":4,"kind":2048,"name":"off","url":"interfaces/_interfaces_ievent_.ievent.html#off","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/IEvent\".IEvent"},{"id":5,"kind":1,"name":"\"interfaces/IModel\"","url":"modules/_interfaces_imodel_.html","classes":"tsd-kind-external-module"},{"id":6,"kind":256,"name":"IModel","url":"interfaces/_interfaces_imodel_.imodel.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"interfaces/IModel\""},{"id":7,"kind":2048,"name":"get","url":"interfaces/_interfaces_imodel_.imodel.html#get","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/IModel\".IModel"},{"id":8,"kind":2048,"name":"set","url":"interfaces/_interfaces_imodel_.imodel.html#set","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/IModel\".IModel"},{"id":9,"kind":2048,"name":"has","url":"interfaces/_interfaces_imodel_.imodel.html#has","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/IModel\".IModel"},{"id":10,"kind":2048,"name":"drop","url":"interfaces/_interfaces_imodel_.imodel.html#drop","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/IModel\".IModel"},{"id":11,"kind":2048,"name":"destroy","url":"interfaces/_interfaces_imodel_.imodel.html#destroy","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/IModel\".IModel"},{"id":12,"kind":2048,"name":"reset","url":"interfaces/_interfaces_imodel_.imodel.html#reset","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/IModel\".IModel"},{"id":13,"kind":2048,"name":"toJSON","url":"interfaces/_interfaces_imodel_.imodel.html#tojson","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/IModel\".IModel"},{"id":14,"kind":1,"name":"\"interfaces/ICollection\"","url":"modules/_interfaces_icollection_.html","classes":"tsd-kind-external-module"},{"id":15,"kind":256,"name":"ICollection","url":"interfaces/_interfaces_icollection_.icollection.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"interfaces/ICollection\""},{"id":16,"kind":2048,"name":"add","url":"interfaces/_interfaces_icollection_.icollection.html#add","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":17,"kind":2048,"name":"remove","url":"interfaces/_interfaces_icollection_.icollection.html#remove","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":18,"kind":2048,"name":"clear","url":"interfaces/_interfaces_icollection_.icollection.html#clear","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":19,"kind":2048,"name":"has","url":"interfaces/_interfaces_icollection_.icollection.html#has","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":20,"kind":2048,"name":"getAll","url":"interfaces/_interfaces_icollection_.icollection.html#getall","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":21,"kind":2048,"name":"merge","url":"interfaces/_interfaces_icollection_.icollection.html#merge","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":22,"kind":2048,"name":"filter","url":"interfaces/_interfaces_icollection_.icollection.html#filter","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":23,"kind":2048,"name":"map","url":"interfaces/_interfaces_icollection_.icollection.html#map","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":24,"kind":2048,"name":"reduce","url":"interfaces/_interfaces_icollection_.icollection.html#reduce","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":25,"kind":2048,"name":"getById","url":"interfaces/_interfaces_icollection_.icollection.html#getbyid","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":26,"kind":2048,"name":"find","url":"interfaces/_interfaces_icollection_.icollection.html#find","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":27,"kind":2048,"name":"reset","url":"interfaces/_interfaces_icollection_.icollection.html#reset","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":28,"kind":2048,"name":"getLength","url":"interfaces/_interfaces_icollection_.icollection.html#getlength","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":29,"kind":2048,"name":"each","url":"interfaces/_interfaces_icollection_.icollection.html#each","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":30,"kind":2048,"name":"toJSON","url":"interfaces/_interfaces_icollection_.icollection.html#tojson","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":31,"kind":2048,"name":"sortBy","url":"interfaces/_interfaces_icollection_.icollection.html#sortby","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":32,"kind":2048,"name":"toArray","url":"interfaces/_interfaces_icollection_.icollection.html#toarray","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":33,"kind":2048,"name":"chunk","url":"interfaces/_interfaces_icollection_.icollection.html#chunk","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":34,"kind":2048,"name":"countBy","url":"interfaces/_interfaces_icollection_.icollection.html#countby","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":35,"kind":2048,"name":"groupBy","url":"interfaces/_interfaces_icollection_.icollection.html#groupby","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":36,"kind":2048,"name":"destroy","url":"interfaces/_interfaces_icollection_.icollection.html#destroy","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"interfaces/ICollection\".ICollection"},{"id":37,"kind":1,"name":"\"classes/Event\"","url":"modules/_classes_event_.html","classes":"tsd-kind-external-module"},{"id":38,"kind":128,"name":"Event","url":"classes/_classes_event_.event.html","classes":"tsd-kind-class tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"classes/Event\""},{"id":39,"kind":1024,"name":"_events","url":"classes/_classes_event_.event.html#_events","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected tsd-is-not-exported","parent":"\"classes/Event\".Event"},{"id":40,"kind":2048,"name":"on","url":"classes/_classes_event_.event.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Event\".Event"},{"id":41,"kind":2048,"name":"_createEvent","url":"classes/_classes_event_.event.html#_createevent","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-not-exported","parent":"\"classes/Event\".Event"},{"id":42,"kind":2048,"name":"off","url":"classes/_classes_event_.event.html#off","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Event\".Event"},{"id":43,"kind":2048,"name":"trigger","url":"classes/_classes_event_.event.html#trigger","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Event\".Event"},{"id":44,"kind":2048,"name":"_offAllListener","url":"classes/_classes_event_.event.html#_offalllistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-not-exported","parent":"\"classes/Event\".Event"},{"id":45,"kind":1,"name":"\"classes/Model\"","url":"modules/_classes_model_.html","classes":"tsd-kind-external-module"},{"id":46,"kind":128,"name":"Model","url":"classes/_classes_model_.model.html","classes":"tsd-kind-class tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"classes/Model\""},{"id":47,"kind":1024,"name":"_model","url":"classes/_classes_model_.model.html#_model","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":48,"kind":512,"name":"constructor","url":"classes/_classes_model_.model.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":49,"kind":2048,"name":"get","url":"classes/_classes_model_.model.html#get","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":50,"kind":2048,"name":"set","url":"classes/_classes_model_.model.html#set","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":51,"kind":2048,"name":"has","url":"classes/_classes_model_.model.html#has","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":52,"kind":2048,"name":"toJSON","url":"classes/_classes_model_.model.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":53,"kind":2048,"name":"drop","url":"classes/_classes_model_.model.html#drop","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":54,"kind":2048,"name":"reset","url":"classes/_classes_model_.model.html#reset","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":55,"kind":2048,"name":"destroy","url":"classes/_classes_model_.model.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":56,"kind":2048,"name":"_destroyModel","url":"classes/_classes_model_.model.html#_destroymodel","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":57,"kind":1024,"name":"_events","url":"classes/_classes_model_.model.html#_events","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":58,"kind":2048,"name":"on","url":"classes/_classes_model_.model.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":59,"kind":2048,"name":"off","url":"classes/_classes_model_.model.html#off","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":60,"kind":2048,"name":"trigger","url":"classes/_classes_model_.model.html#trigger","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":61,"kind":2048,"name":"_offAllListener","url":"classes/_classes_model_.model.html#_offalllistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-not-exported","parent":"\"classes/Model\".Model"},{"id":62,"kind":1,"name":"\"classes/Collection\"","url":"modules/_classes_collection_.html","classes":"tsd-kind-external-module"},{"id":63,"kind":128,"name":"Collection","url":"classes/_classes_collection_.collection.html","classes":"tsd-kind-class tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"classes/Collection\""},{"id":64,"kind":1024,"name":"_models","url":"classes/_classes_collection_.collection.html#_models","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":65,"kind":512,"name":"constructor","url":"classes/_classes_collection_.collection.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":66,"kind":2048,"name":"_init","url":"classes/_classes_collection_.collection.html#_init","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":67,"kind":2048,"name":"_isModel","url":"classes/_classes_collection_.collection.html#_ismodel","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":68,"kind":2048,"name":"_clearCollection","url":"classes/_classes_collection_.collection.html#_clearcollection","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":69,"kind":2048,"name":"add","url":"classes/_classes_collection_.collection.html#add","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":70,"kind":2048,"name":"remove","url":"classes/_classes_collection_.collection.html#remove","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":71,"kind":2048,"name":"has","url":"classes/_classes_collection_.collection.html#has","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":72,"kind":2048,"name":"clear","url":"classes/_classes_collection_.collection.html#clear","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":73,"kind":2048,"name":"filter","url":"classes/_classes_collection_.collection.html#filter","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":74,"kind":2048,"name":"map","url":"classes/_classes_collection_.collection.html#map","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":75,"kind":2048,"name":"getById","url":"classes/_classes_collection_.collection.html#getbyid","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":76,"kind":2048,"name":"find","url":"classes/_classes_collection_.collection.html#find","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":77,"kind":2048,"name":"reduce","url":"classes/_classes_collection_.collection.html#reduce","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":78,"kind":2048,"name":"getAll","url":"classes/_classes_collection_.collection.html#getall","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":79,"kind":2048,"name":"each","url":"classes/_classes_collection_.collection.html#each","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":80,"kind":2048,"name":"merge","url":"classes/_classes_collection_.collection.html#merge","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":81,"kind":2048,"name":"reset","url":"classes/_classes_collection_.collection.html#reset","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":82,"kind":2048,"name":"getLength","url":"classes/_classes_collection_.collection.html#getlength","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":83,"kind":2048,"name":"toJSON","url":"classes/_classes_collection_.collection.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":84,"kind":2048,"name":"sortBy","url":"classes/_classes_collection_.collection.html#sortby","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":85,"kind":2048,"name":"toArray","url":"classes/_classes_collection_.collection.html#toarray","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":86,"kind":2048,"name":"chunk","url":"classes/_classes_collection_.collection.html#chunk","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":87,"kind":2048,"name":"countBy","url":"classes/_classes_collection_.collection.html#countby","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":88,"kind":2048,"name":"groupBy","url":"classes/_classes_collection_.collection.html#groupby","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":89,"kind":2048,"name":"destroy","url":"classes/_classes_collection_.collection.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":90,"kind":2048,"name":"_destroyCollection","url":"classes/_classes_collection_.collection.html#_destroycollection","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":91,"kind":1024,"name":"_events","url":"classes/_classes_collection_.collection.html#_events","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":92,"kind":2048,"name":"on","url":"classes/_classes_collection_.collection.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":93,"kind":2048,"name":"off","url":"classes/_classes_collection_.collection.html#off","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":94,"kind":2048,"name":"trigger","url":"classes/_classes_collection_.collection.html#trigger","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":95,"kind":2048,"name":"_offAllListener","url":"classes/_classes_collection_.collection.html#_offalllistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-not-exported","parent":"\"classes/Collection\".Collection"},{"id":96,"kind":1,"name":"\"lanurite\"","url":"modules/_lanurite_.html","classes":"tsd-kind-external-module"},{"id":97,"kind":32,"name":"___VERSION__","url":"modules/_lanurite_.html#___version__","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"lanurite\""}]}; |
@@ -9,3 +9,3 @@ /** | ||
model.on("change", function (e) { | ||
model.on(["change", "reset"], function (e) { | ||
document.getElementById("test").innerHTML = model.get("name") | ||
@@ -15,2 +15,3 @@ model.off("change", log) | ||
let collection = new Lanurite.Collection(); | ||
@@ -26,2 +27,6 @@ | ||
collection.on("destroy", function () { | ||
document.getElementById("collection").innerHTML = ""; | ||
}); | ||
model.on("change", log); | ||
@@ -28,0 +33,0 @@ |
@@ -35,2 +35,3 @@ { | ||
"typedoc": "0.8.0", | ||
"tslint": "5.7.0", | ||
"typedoc-webpack-plugin": "1.1.4" | ||
@@ -40,3 +41,3 @@ }, | ||
"typings": "src/lanurite.d.ts", | ||
"version": "1.0.36", | ||
"version": "1.0.38", | ||
"license": "MIT", | ||
@@ -43,0 +44,0 @@ "repository": { |
@@ -126,3 +126,9 @@ /// <reference types="lodash" /> | ||
groupBy(predicate: any): _.Dictionary<any[]>; | ||
/** | ||
* Destoy Collection remove all event and trigger destroy | ||
* @returns {Collection} | ||
*/ | ||
destroy(): this; | ||
private _destroyCollection(); | ||
} | ||
export { Collection }; |
@@ -255,4 +255,19 @@ import * as _ from "lodash" | ||
/** | ||
* Destoy Collection remove all event and trigger destroy | ||
* @returns {Collection} | ||
*/ | ||
public destroy() { | ||
this.trigger("destroy") | ||
this._offAllListener() | ||
this._destroyCollection() | ||
return this | ||
} | ||
private _destroyCollection() { | ||
delete this._models | ||
} | ||
} | ||
export {Collection} |
@@ -5,7 +5,8 @@ import { IEvent } from "../interfaces/IEvent"; | ||
/** | ||
* Add handler for eventName | ||
* @param eventName | ||
* Add handler for events array or string | ||
* @param eventsName | ||
* @param handler | ||
*/ | ||
on(eventName: string, handler: any): any[]; | ||
on(eventsName: string | Array<string>, handler: any): void | any[]; | ||
private _createEvent(event, handler); | ||
/** | ||
@@ -23,3 +24,4 @@ * Remove all handler from eventName, or remove same handler from event | ||
trigger(eventName: string, eventParams?: any): void; | ||
protected _offAllListener(): void; | ||
} | ||
export { Event }; |
@@ -8,13 +8,22 @@ import * as _ from "lodash" | ||
/** | ||
* Add handler for eventName | ||
* @param eventName | ||
* Add handler for events array or string | ||
* @param eventsName | ||
* @param handler | ||
*/ | ||
public on(eventName: string, handler: any) { | ||
if (_.isUndefined(this._events[eventName])) { | ||
return this._events[eventName] = [handler] | ||
public on(eventsName: string | Array<string>, handler: any) { | ||
if (_.isArray(eventsName)) { | ||
return eventsName.forEach((event) => { | ||
this._createEvent(event, handler) | ||
}) | ||
} | ||
this._events[eventName].push(handler) | ||
return this._createEvent(eventsName, handler) | ||
} | ||
private _createEvent(event: string, handler: any) { | ||
if (_.isUndefined(this._events[event])) { | ||
return this._events[event] = [handler] | ||
} | ||
this._events[event].push(handler) | ||
} | ||
/** | ||
@@ -47,4 +56,8 @@ * Remove all handler from eventName, or remove same handler from event | ||
} | ||
protected _offAllListener() { | ||
delete this._events | ||
} | ||
} | ||
export {Event} |
@@ -35,3 +35,14 @@ import { IModel } from "../interfaces/IModel"; | ||
drop(key: string | number): boolean; | ||
/** | ||
* Reset model with new dataset | ||
* @param object | ||
*/ | ||
reset(object: any): void; | ||
/** | ||
* Destroy Model remove all listener and trigger destroy | ||
* @returns {Model} | ||
*/ | ||
destroy(): this; | ||
private _destroyModel(); | ||
} | ||
export { Model }; |
@@ -71,3 +71,28 @@ import * as _ from "lodash" | ||
/** | ||
* Reset model with new dataset | ||
* @param object | ||
*/ | ||
public reset(object: any) { | ||
const oldValue = this.toJSON() | ||
this._model = _.assign({}, object, {l_id: oldValue.l_id}) | ||
this.trigger("reset", {value: this.toJSON(), oldValue}) | ||
} | ||
/** | ||
* Destroy Model remove all listener and trigger destroy | ||
* @returns {Model} | ||
*/ | ||
public destroy() { | ||
this.trigger("destroy") | ||
this._offAllListener() | ||
this._destroyModel() | ||
return this | ||
} | ||
private _destroyModel() { | ||
delete this._model | ||
} | ||
} | ||
export {Model} |
@@ -23,2 +23,3 @@ import { IModel } from "./IModel"; | ||
groupBy(predicate: any): any; | ||
destroy(): void; | ||
} |
@@ -24,2 +24,3 @@ import {IEvent} from "./IEvent" | ||
groupBy(predicate: any): any | ||
destroy(): void | ||
} |
export interface IEvent { | ||
on(event: string, handler: any): void; | ||
on(event: string | Array<string>, handler: any): void; | ||
trigger(eventName: string, event: any): void; | ||
off(event: string): void; | ||
} |
export interface IEvent { | ||
on(event: string, handler: any): void | ||
on(event: string | Array<string>, handler: any): void | ||
trigger(eventName: string, event: any): void | ||
off(event: string): void | ||
} |
@@ -6,3 +6,5 @@ export interface IModel { | ||
drop(property: string | number): boolean; | ||
destroy(): void; | ||
reset(object: any): void; | ||
toJSON(): any; | ||
} |
@@ -6,3 +6,5 @@ export interface IModel { | ||
drop(property: string | number): boolean | ||
destroy(): void | ||
reset(object: any): void | ||
toJSON(): any | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
716801
5
50
2013