From 47a95886a1a7726ccecb3d3eb8474903cc513ad8 Mon Sep 17 00:00:00 2001 From: Kathy Walrath Date: Tue, 15 Mar 2016 21:50:26 -0700 Subject: [PATCH] Fix #313 --- lib/generators/web_polymer_data.dart | 43 +++++++++++++------------ templates/web-polymer/lib/main_app.dart | 2 ++ 2 files changed, 24 insertions(+), 21 deletions(-) diff --git a/lib/generators/web_polymer_data.dart b/lib/generators/web_polymer_data.dart index 1a65deb0..5b9ac701 100644 --- a/lib/generators/web_polymer_data.dart +++ b/lib/generators/web_polymer_data.dart @@ -52,27 +52,28 @@ SVRZIE9GIFNVQ0ggREFNQUdFLgo=""", """Ly8gQ29weXJpZ2h0IChjKSBfX3llYXJfXywgX19hdXRob3JfXy4gQWxsIHJpZ2h0cyByZXNlcnZl ZC4gVXNlIG9mIHRoaXMgc291cmNlIGNvZGUKLy8gaXMgZ292ZXJuZWQgYnkgYSBCU0Qtc3R5bGUg bGljZW5zZSB0aGF0IGNhbiBiZSBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlLgpASHRtbEltcG9y -dCgnbWFpbl9hcHAuaHRtbCcpCmltcG9ydCAnZGFydDpodG1sJzsKCmltcG9ydCAncGFja2FnZTpw -b2x5bWVyX2VsZW1lbnRzL3BhcGVyX2lucHV0LmRhcnQnOwppbXBvcnQgJ3BhY2thZ2U6cG9seW1l -ci9wb2x5bWVyLmRhcnQnOwppbXBvcnQgJ3BhY2thZ2U6d2ViX2NvbXBvbmVudHMvd2ViX2NvbXBv -bmVudHMuZGFydCc7CgovLy8gVXNlcyBbUGFwZXJJbnB1dF0KQFBvbHltZXJSZWdpc3RlcignbWFp -bi1hcHAnKQpjbGFzcyBNYWluQXBwIGV4dGVuZHMgUG9seW1lckVsZW1lbnQgewogIEBwcm9wZXJ0 -eQogIFN0cmluZyB0ZXh0OwoKICAvLy8gQ29uc3RydWN0b3IgdXNlZCB0byBjcmVhdGUgaW5zdGFu -Y2Ugb2YgTWFpbkFwcC4KICBNYWluQXBwL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CB3aGVuIGFuIGluc3Rh +bmNlIG9mIG1haW4tYXBwIGlzIHJlbW92ZWQgZnJvbSB0aGUgRE9NLgovLyAgZGV0YWNoZWQoKSB7 +Ci8vICAgIHN1cGVyLmRldGFjaGVkKCk7Ci8vICB9CgovLyAgLy8vIENhbGxlZCB3aGVuIGFuIGF0 +dHJpYnV0ZSAoc3VjaCBhcyBhIGNsYXNzKSBvZiBhbiBpbnN0YW5jZSBvZgovLyAgLy8vIG1haW4t +YXBwIGlzIGFkZGVkLCBjaGFuZ2VkLCBvciByZW1vdmVkLgovLyAgYXR0cmlidXRlQ2hhbmdlZChT +dHJpbmcgbmFtZSwgU3RyaW5nIG9sZFZhbHVlLCBTdHJpbmcgbmV3VmFsdWUpIHsKLy8gICAgc3Vw +ZXIuYXR0cmlidXRlQ2hhbmdlZChuYW1lLCBvbGRWYWx1ZSwgbmV3VmFsdWUpOwovLyAgfQoKLy8g +IC8vLyBDYWxsZWQgd2hlbiBtYWluLWFwcCBoYXMgYmVlbiBmdWxseSBwcmVwYXJlZCAoU2hhZG93 +IERPTSBjcmVhdGVkLAovLyAgLy8vIHByb3BlcnR5IG9ic2VydmVycyBzZXQgdXAsIGV2ZW50IGxp +c3RlbmVycyBhdHRhY2hlZCkuCi8vICByZWFkeSgpIHsKLy8gIH0KfQo=""", "lib/main_app.html", "text", """PCEtLQogIENvcHlyaWdodCAoYykgX195ZWFyX18sIF9fYXV0aG9yX18uIEFsbCByaWdodHMgcmVz diff --git a/templates/web-polymer/lib/main_app.dart b/templates/web-polymer/lib/main_app.dart index 270a938c..6a5ec681 100644 --- a/templates/web-polymer/lib/main_app.dart +++ b/templates/web-polymer/lib/main_app.dart @@ -1,6 +1,8 @@ // Copyright (c) __year__, __author__. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. @HtmlImport('main_app.html') +library __projectName__.lib.main_app; + import 'dart:html'; import 'package:polymer_elements/paper_input.dart';