Skip to content

Commit

Permalink
Fixed the erroneous plural typo. Fixes #26.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhop committed Jun 24, 2018
1 parent 630eba7 commit 3355cbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions advise.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,17 @@
if (advice.get) {
result = convert(null, advice.get, instance, name, 'get');
prop.get = result.value;
handles.push(result.handles);
handles.push(result.handle);
}
if (advice.set) {
result = convert(null, advice.set, instance, name, 'set');
prop.set = result.value;
handles.push(result.handles);
handles.push(result.handle);
}
} else {
result = convert(null, advice, instance, name, 'value');
prop.value = result.value;
handles.push(result.handles);
handles.push(result.handle);
}
}
Object.defineProperty(instance, name, prop);
Expand Down

0 comments on commit 3355cbc

Please sign in to comment.