OLD | NEW |
1 <!-- | 1 <!-- |
2 // Copyright 2014 The Chromium Authors. All rights reserved. | 2 // Copyright 2014 The Chromium Authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 --> | 5 --> |
6 <link rel="import" href="observe.sky" as="observe" /> | 6 <import src="observe.sky" as="observe" /> |
7 | 7 |
8 <script> | 8 <script> |
9 Node.prototype.bind = function(name, observable, oneTime) { | 9 Node.prototype.bind = function(name, observable, oneTime) { |
10 var self = this; | 10 var self = this; |
11 | 11 |
12 if (oneTime) { | 12 if (oneTime) { |
13 this[name] = observable; | 13 this[name] = observable; |
14 return; | 14 return; |
15 } | 15 } |
16 | 16 |
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
995 this.closeInstanceBindings(this.instances[i]); | 995 this.closeInstanceBindings(this.instances[i]); |
996 } | 996 } |
997 | 997 |
998 this.instances.length = 0; | 998 this.instances.length = 0; |
999 this.closeDeps(); | 999 this.closeDeps(); |
1000 this.templateElement_.iterator_ = undefined; | 1000 this.templateElement_.iterator_ = undefined; |
1001 this.closed = true; | 1001 this.closed = true; |
1002 } | 1002 } |
1003 }; | 1003 }; |
1004 </script> | 1004 </script> |
OLD | NEW |