Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(499)

Unified Diff: lib/iron_range_behavior.dart

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/iron_overlay_behavior.dart ('k') | lib/iron_selectable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/iron_range_behavior.dart
diff --git a/lib/iron_range_behavior.dart b/lib/iron_range_behavior.dart
index 822cb5a024a65010719060b82c509c077a2e0b91..f081cc53c7965ddd97381a21bed9cb451b27b5e3 100644
--- a/lib/iron_range_behavior.dart
+++ b/lib/iron_range_behavior.dart
@@ -30,6 +30,6 @@ abstract class IronRangeBehavior implements CustomElementProxyMixin {
set step(num value) { jsElement[r'step'] = value; }
/// The number that represents the current value.
- num get value => jsElement[r'value'];
- set value(num value) { jsElement[r'value'] = value; }
+ get value => jsElement[r'value'];
+ set value(value) { jsElement[r'value'] = (value is Map || (value is Iterable && value is! JsArray)) ? new JsObject.jsify(value) : value;}
}
« no previous file with comments | « lib/iron_overlay_behavior.dart ('k') | lib/iron_selectable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698