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

Side by Side Diff: packages/template_binding/lib/src/instance_binding_map.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of template_binding; 5 part of template_binding;
6 6
7 class _InstanceBindingMap { 7 class _InstanceBindingMap {
8 final List bindings; 8 final List bindings;
9 List<_InstanceBindingMap> children; 9 List<_InstanceBindingMap> children;
10 DocumentFragment content; 10 DocumentFragment content;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 if (delegate == null) delegate = BindingDelegate._DEFAULT; 78 if (delegate == null) delegate = BindingDelegate._DEFAULT;
79 79
80 if (delegate._bindingMaps == null) delegate._bindingMaps = new Expando(); 80 if (delegate._bindingMaps == null) delegate._bindingMaps = new Expando();
81 var map = delegate._bindingMaps[content]; 81 var map = delegate._bindingMaps[content];
82 if (map == null) { 82 if (map == null) {
83 map = _createInstanceBindingMap(content, delegate); 83 map = _createInstanceBindingMap(content, delegate);
84 delegate._bindingMaps[content] = map; 84 delegate._bindingMaps[content] = map;
85 } 85 }
86 return map; 86 return map;
87 } 87 }
OLDNEW
« no previous file with comments | « packages/template_binding/lib/src/binding_delegate.dart ('k') | packages/template_binding/lib/src/mustache_tokens.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698