mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-05-25 10:02:58 +02:00
include files in git
This commit is contained in:
parent
ecfa6c64ad
commit
64f56c22a4
3480
dist/tablefilter/tf-0-973b3f20052aa524e437.js
vendored
Normal file
3480
dist/tablefilter/tf-0-973b3f20052aa524e437.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/tablefilter/tf-0-973b3f20052aa524e437.js.map
vendored
Normal file
1
dist/tablefilter/tf-0-973b3f20052aa524e437.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
3529
dist/tablefilter/tf-0-ff3c2103b4f98d8cf876.js
vendored
Normal file
3529
dist/tablefilter/tf-0-ff3c2103b4f98d8cf876.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/tablefilter/tf-0-ff3c2103b4f98d8cf876.js.map
vendored
Normal file
1
dist/tablefilter/tf-0-ff3c2103b4f98d8cf876.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
34
src/register.js
Normal file
34
src/register.js
Normal file
|
@ -0,0 +1,34 @@
|
|||
import {defaultsStr} from './settings';
|
||||
import {toCamelCase} from './string';
|
||||
|
||||
export class Register {
|
||||
constructor(tf, cls = {}) {
|
||||
console.log(tf, cls);
|
||||
/**
|
||||
* TableFilter instance
|
||||
* @type {TableFilter}
|
||||
*/
|
||||
this.tf = tf;
|
||||
|
||||
/**
|
||||
* Feature name, retrieved from alternate class name if found or from
|
||||
* camelised class name
|
||||
* @type {String}
|
||||
*/
|
||||
this.feature = defaultsStr(cls.altName, toCamelCase(cls.name));
|
||||
|
||||
this.tf._mod_[this.feature] = cls;
|
||||
|
||||
// this.instantiate(cls, this.feature);
|
||||
}
|
||||
|
||||
// instantiate(cls, name) {
|
||||
// let Cls = cls;
|
||||
// console.log(Boolean(this.tf[name]),
|
||||
// Boolean(Cls.alwaysInstantiate));
|
||||
// if (!this.tf.hasConfig || Boolean(this.tf[name])
|
||||
// || Boolean(cls.alwaysInstantiate)) {
|
||||
// this.tf.Mod[name] = this.tf.Mod[name] || new Cls(tf);
|
||||
// }
|
||||
// }
|
||||
}
|
Loading…
Reference in a new issue