OLD | NEW |
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 /** | 5 /** |
6 * A binding delegate used with Polymer elements that | 6 * A binding delegate used with Polymer elements that |
7 * allows for complex binding expressions, including | 7 * allows for complex binding expressions, including |
8 * property access, function invocation, | 8 * property access, function invocation, |
9 * list/map indexing, and two-way filtering. | 9 * list/map indexing, and two-way filtering. |
10 * | 10 * |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 * Factory function used for testing. | 388 * Factory function used for testing. |
389 */ | 389 */ |
390 class ScopeFactory { | 390 class ScopeFactory { |
391 const ScopeFactory(); | 391 const ScopeFactory(); |
392 modelScope({Object model, Map<String, Object> variables}) => | 392 modelScope({Object model, Map<String, Object> variables}) => |
393 new Scope(model: model, variables: variables); | 393 new Scope(model: model, variables: variables); |
394 | 394 |
395 childScope(Scope parent, String name, Object value) => | 395 childScope(Scope parent, String name, Object value) => |
396 parent.childScope(name, value); | 396 parent.childScope(name, value); |
397 } | 397 } |
OLD | NEW |