Evan You %!s(int64=13) %!d(string=hai) anos
pai
achega
ddb136ffc9
Modificáronse 2 ficheiros con 9 adicións e 5 borrados
  1. 9 5
      dist/seed.js
  2. 0 0
      dist/seed.min.js

+ 9 - 5
dist/seed.js

@@ -760,10 +760,6 @@ SeedProto._bind = function (directive) {
     seed = traceOwnerSeed(directive, seed)
     seed = traceOwnerSeed(directive, seed)
     var binding = seed._bindings[key] || seed._createBinding(key)
     var binding = seed._bindings[key] || seed._createBinding(key)
 
 
-    if (binding.contextDeps) {
-        console.log(1)
-    }
-
     binding.instances.push(directive)
     binding.instances.push(directive)
     directive.binding = binding
     directive.binding = binding
 
 
@@ -1382,7 +1378,15 @@ function parseContextDependency (binding) {
         matches = str.match(argRE),
         matches = str.match(argRE),
         base = args[1].length + 7
         base = args[1].length + 7
     if (!matches) return null
     if (!matches) return null
-    binding.contextDeps = matches.map(function (key) { return key.slice(base) })
+    var i = matches.length,
+        deps = [], dep
+    while (i--) {
+        dep = matches[i].slice(base)
+        if (deps.indexOf(dep) === -1) {
+            deps.push(dep)
+        }
+    }
+    binding.contextDeps = deps
     binding.seed._contextBindings.push(binding)
     binding.seed._contextBindings.push(binding)
 }
 }
 
 

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/seed.min.js


Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio