Skip to content

Commit 258c6d1

Browse files
committed
fix const issue
1 parent cc83753 commit 258c6d1

File tree

6 files changed

+17
-19
lines changed

6 files changed

+17
-19
lines changed

example/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,6 @@ __webpack_require__.r(__webpack_exports__);
426426

427427
"use strict";
428428
__webpack_require__.r(__webpack_exports__);
429-
function _readOnlyError(name) { throw new Error("\"" + name + "\" is read-only"); }
430-
431429
//
432430
//
433431
//
@@ -813,7 +811,7 @@ var myUniqueId = 1;
813811
return;
814812
}
815813

816-
target = (_readOnlyError("target"), target.parent());
814+
target = target.parent();
817815
action = target.attr('data-action');
818816
} // only emit if there is action
819817

example/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/mix-manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"/index.js": "/index.js?id=a87331aeb9cc9cc14fa1",
3-
"/index.js.map": "/index.js.map?id=1fa610b1a71d7d357b02"
2+
"/index.js": "/index.js?id=68a435f0c34c6c9a69f8",
3+
"/index.js.map": "/index.js.map?id=127b4def7401f14a4606"
44
}

src/VdtnetTable.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ export default {
170170
}
171171
},
172172
created() {
173-
const that = this
174-
const jq = that.jq
173+
const that = this
174+
const jq = that.jq
175175
176176
that.tableId = that.id || `vdtnetable${myUniqueId++}`
177177
@@ -181,9 +181,9 @@ export default {
181181
}
182182
},
183183
mounted() {
184-
const that = this
185-
const jq = that.jq
186-
const $el = jq(that.$refs.table)
184+
const that = this
185+
const jq = that.jq
186+
const $el = jq(that.$refs.table)
187187
const orders = []
188188
189189
let startCol = 0
@@ -368,8 +368,8 @@ export default {
368368
$el.on('click', '[data-action]', (e) => {
369369
e.preventDefault()
370370
e.stopPropagation()
371-
const target = jq(e.target)
372-
let action = target.attr('data-action')
371+
let target = jq(e.target)
372+
let action = target.attr('data-action')
373373
while(!action) {
374374
// don't let it propagate outside of container
375375
if (target.hasClass('vdtnet-container') ||
@@ -463,10 +463,10 @@ export default {
463463
* @return {Function} the compiled template function
464464
*/
465465
compileTemplate(field, slot) {
466-
const that = this
467-
const jq = that.jq
468-
const vue = that.myVue
469-
const res = vue.compile(`<div>${field.template || ''}</div>`)
466+
const that = this
467+
const jq = that.jq
468+
const vue = that.myVue
469+
const res = vue.compile(`<div>${field.template || ''}</div>`)
470470
471471
472472
const renderFunc = (data, type, row, meta) => {

0 commit comments

Comments
 (0)