We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef0bf88 commit 0410669Copy full SHA for 0410669
test/image/strict-d3.js
@@ -32,6 +32,10 @@ selProto.style = function() {
32
33
if(sel.size()) {
34
if(typeof obj === 'string') {
35
+ if(arguments.length === 1) {
36
+ throw new Error('d3 selection.style called as getter: ' +
37
+ 'disallowed as it can fail for unattached elements');
38
+ }
39
checkStyleVal(sel, obj, arguments[1]);
40
} else {
41
Object.keys(obj).forEach(function(key) { checkStyleVal(sel, key, obj[key]); });
0 commit comments