Skip to content

Commit

Permalink
Fix media/**/*.js
Browse files Browse the repository at this point in the history
ONE-vscode-DCO-1.0-Signed-off-by: dayo09 <[email protected]>
  • Loading branch information
dayo09 committed Sep 7, 2022
1 parent ee0bf76 commit 8004867
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions media/CircleGraph/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ view.View = class {
this._clearSelection();

// set new selection
if (selection.hasOwnProperty('names')) {
if (Object.prototype.hasOwnProperty.call(selection, 'names')) {
// selection is by names
const names = selection.names;
let scrollToSelects = []; // elements to make visible by scroll to
Expand Down Expand Up @@ -643,7 +643,7 @@ view.View = class {
// (3) interate all graph nodes and set if exist in opname, clear if not.
// here, (3) is implemented

if (!message.hasOwnProperty('partition')) {
if (!Object.prototype.hasOwnProperty.call(message, 'partition')) {
return;
}
const partition = message.partition;
Expand Down
4 changes: 2 additions & 2 deletions media/PartEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ editor.Editor = class {
this.clearOperatorsCode();

for (let name in this.partition.OPNAME) {
if (this.partition.OPNAME.hasOwnProperty(name)) {
if (Object.prototype.hasOwnProperty.call(this.partition.OPNAME, name)) {
let backend = this.partition.OPNAME[name];
let beCode = this.backendCode(backend);
if (beCode !== -1) {
Expand Down Expand Up @@ -430,7 +430,7 @@ editor.Editor = class {
backendCode(value) {
if (typeof value === 'string') {
value = value.toUpperCase();
if (this.beToCode.hasOwnProperty(value)) {
if (Object.prototype.hasOwnProperty.call(this.beToCode, value)) {
return this.beToCode[value];
}
}
Expand Down

0 comments on commit 8004867

Please sign in to comment.