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

Unified Diff: third_party/pkg/angular/lib/core_dom/block_factory.dart

Issue 148453003: Updating Angular version (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 | « third_party/pkg/angular/lib/core_dom/block.dart ('k') | third_party/pkg/angular/lib/core_dom/common.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pkg/angular/lib/core_dom/block_factory.dart
diff --git a/third_party/pkg/angular/lib/core_dom/block_factory.dart b/third_party/pkg/angular/lib/core_dom/block_factory.dart
index 4c15de9c07ed60651d40e3883192f4a527b880d6..9491bb64c997eefaa45e80a6e60fc3d42e2c0b3b 100644
--- a/third_party/pkg/angular/lib/core_dom/block_factory.dart
+++ b/third_party/pkg/angular/lib/core_dom/block_factory.dart
@@ -9,7 +9,6 @@ part of angular.core.dom;
*
* The BoundBlockFactory needs [Scope] to be created.
*/
-
class BoundBlockFactory {
BlockFactory blockFactory;
@@ -26,14 +25,12 @@ class BoundBlockFactory {
* BlockFactory is used to create new [Block]s. BlockFactory is created by the
* [Compiler] as a result of compiling a template.
*/
-
class BlockFactory {
final List directivePositions;
final List<dom.Node> templateElements;
final Profiler _perf;
final Expando _expando;
-
BlockFactory(this.templateElements, this.directivePositions, this._perf, this._expando);
BoundBlockFactory bind(Injector injector) =>
@@ -58,12 +55,12 @@ class BlockFactory {
var preRenderedIndexOffset = 0;
var directiveDefsByName = {};
- for (num i = 0, ii = directivePositions.length; i < ii;) {
- num index = directivePositions[i++];
+ for (int i = 0, ii = directivePositions.length; i < ii;) {
+ int index = directivePositions[i++];
List<DirectiveRef> directiveRefs = directivePositions[i++];
List childDirectivePositions = directivePositions[i++];
- var nodeListIndex = index + preRenderedIndexOffset;
+ int nodeListIndex = index + preRenderedIndexOffset;
dom.Node node = nodeList[nodeListIndex];
var timerId;
@@ -79,7 +76,7 @@ class BlockFactory {
}
var childInjector = _instantiateDirectives(block, parentInjector, node,
- directiveRefs, parentInjector.get(Parser));
+ directiveRefs, parentInjector.get(Parser));
if (childDirectivePositions != null) {
_link(block, node.nodes, childDirectivePositions, childInjector);
@@ -280,7 +277,6 @@ class BlockCache {
* the shadowDom, fetching template, importing styles, setting up attribute
* mappings, publishing the controller, and compiling and caching the template.
*/
-
class _ComponentFactory {
final dom.Element element;
« no previous file with comments | « third_party/pkg/angular/lib/core_dom/block.dart ('k') | third_party/pkg/angular/lib/core_dom/common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698