Skip to content

Commit

Permalink
Add abstract call method to DomProps / SvgProps
Browse files Browse the repository at this point in the history
+ Silences the dart2js warning about missing impl
  • Loading branch information
aaronlademann-wf committed Feb 14, 2018
1 parent e88d802 commit a5c1820
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/src/component/dom_components.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ class DomProps extends component_base.UiProps

@override
String get propKeyNamespace => '';

@override
ReactElement call([children, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30, c31, c32, c33, c34, c35, c36, c37, c38, c39, c40]);
}

// Include pieces from transformer_helpers so that consumers can type these instances
Expand All @@ -70,6 +73,9 @@ class SvgProps extends component_base.UiProps

@override
String get propKeyNamespace => '';

@override
ReactElement call([children, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30, c31, c32, c33, c34, c35, c36, c37, c38, c39, c40]);
}

/// A class that provides namespacing for static DOM component factory methods, much like `React.DOM` in React JS.
Expand Down

0 comments on commit a5c1820

Please sign in to comment.