Skip to content

Commit 4cdc301

Browse files
committed
remove obsolete check for polar in registry
1 parent 0027f53 commit 4cdc301

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/registry.js

-8
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,6 @@ function mergeComponentAttrsToSubplot(componentName, subplotName) {
207207
* module object corresponding to trace type
208208
*/
209209
exports.getModule = function(trace) {
210-
if(trace.r !== undefined) {
211-
Loggers.warn('Tried to put a polar trace ' +
212-
'on an incompatible graph of cartesian ' +
213-
'data. Ignoring this dataset.', trace
214-
);
215-
return false;
216-
}
217-
218210
var _module = exports.modules[getTraceType(trace)];
219211
if(!_module) return false;
220212
return _module._module;

test/jasmine/tests/register_test.js

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ describe('Test Registry', function() {
4848
it('should return false for types it doesn\'t know', function() {
4949
expect(Registry.getModule('notatype')).toBe(false);
5050
expect(Registry.getModule({type: 'notatype'})).toBe(false);
51-
expect(Registry.getModule({type: 'newtype', r: 'this is polar'})).toBe(false);
5251
});
5352

5453
it('should find the categories for this type', function() {

0 commit comments

Comments
 (0)