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

Unified Diff: pkg/polymer/lib/src/custom_tag_name.dart

Issue 23224003: move polymer.dart into dart svn (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add --deploy to todomvc sample Created 7 years, 4 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 | « pkg/polymer/lib/src/css_emitters.dart ('k') | pkg/polymer/lib/src/dart_parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/custom_tag_name.dart
diff --git a/pkg/custom_element/lib/src/custom_tag_name.dart b/pkg/polymer/lib/src/custom_tag_name.dart
similarity index 89%
copy from pkg/custom_element/lib/src/custom_tag_name.dart
copy to pkg/polymer/lib/src/custom_tag_name.dart
index 72d915039db8b5d8d046de806898d554a337dfec..637b937dd13ed14068eb42ffd4652598775777e4 100644
--- a/pkg/custom_element/lib/src/custom_tag_name.dart
+++ b/pkg/polymer/lib/src/custom_tag_name.dart
@@ -2,14 +2,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library custom_element.src.custom_tag_name;
+library polymer.src.custom_tag_name;
/**
* Returns true if this is a valid custom element name. See:
* <https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#dfn-custom-element-name>
*/
bool isCustomTag(String name) {
- if (!name.contains('-')) return false;
+ if (name == null || !name.contains('-')) return false;
// These names have meaning in SVG or MathML, so they aren't allowed as custom
// tags.
« no previous file with comments | « pkg/polymer/lib/src/css_emitters.dart ('k') | pkg/polymer/lib/src/dart_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698