Skip to content

Commit be40def

Browse files
committed
fix : edit eslint rule for keyword prop
1 parent 8682c0a commit be40def

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

code-snippet.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,22 +1223,21 @@
12231223
parent = null;
12241224
}
12251225

1226-
obj = props.init || function(){};
1226+
obj = props.init || function() {};
12271227

1228-
if(parent) {
1228+
if (parent) {
12291229
tui.util.inherit(obj, parent);
12301230
}
12311231

12321232
if (props.hasOwnProperty('static')) {
1233-
tui.util.extend(obj, props.static);
1234-
delete props.static;
1233+
tui.util.extend(obj, props['static']);
1234+
delete props['static'];
12351235
}
12361236

12371237
tui.util.extend(obj.prototype, props);
12381238

12391239
return obj;
12401240
};
1241-
12421241
})(window.tui);
12431242

12441243
/**********

src/defineClass.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,19 @@
6262
parent = null;
6363
}
6464

65-
obj = props.init || function(){};
65+
obj = props.init || function() {};
6666

67-
if(parent) {
67+
if (parent) {
6868
tui.util.inherit(obj, parent);
6969
}
7070

7171
if (props.hasOwnProperty('static')) {
72-
tui.util.extend(obj, props.static);
73-
delete props.static;
72+
tui.util.extend(obj, props['static']);
73+
delete props['static'];
7474
}
7575

7676
tui.util.extend(obj.prototype, props);
7777

7878
return obj;
7979
};
80-
8180
})(window.tui);

0 commit comments

Comments
 (0)