zet-lib 1.0.69 → 1.0.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/moduleLib.js +2 -11
  2. package/package.json +1 -1
package/lib/moduleLib.js CHANGED
@@ -266,17 +266,8 @@ m.typeahead = (req, res, elem, data) => {
266
266
  elemData = elemData.replace('#', '')
267
267
  let element = elem.replace('Typeahead', '')
268
268
 
269
- script +=
270
- 'const ' +
271
- elemData +
272
- 'Data = ' +
273
- JSON.stringify(
274
- data.filter(function (value, index, arr) {
275
- return index > 0
276
- })
277
- ) +
278
- ';' +
279
- newLine
269
+ // var script using existing cache
270
+ //script += `var ${elemData}Data = ${JSON.stringify(data)}${Util.newLine}`;
280
271
  script += `$("body").on("change", "${elem}", function(){
281
272
  var current = $("${elem}").typeahead("getActive");
282
273
  if(current){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"