OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @fileoverview ONC Data support class. Wraps a dictionary object containing | 6 * @fileoverview ONC Data support class. Wraps a dictionary object containing |
7 * ONC managed or unmanaged dictionaries. Supports nested dictionaries, | 7 * ONC managed or unmanaged dictionaries. Supports nested dictionaries, |
8 * e.g. data.getManagedProperty('VPN.Type'). | 8 * e.g. data.getManagedProperty('VPN.Type'). |
9 */ | 9 */ |
10 | 10 |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
170 * @return {?} The effective value or undefined. | 170 * @return {?} The effective value or undefined. |
171 * @private | 171 * @private |
172 */ | 172 */ |
173 getEffectiveValueFromProperty_: function(property) { | 173 getEffectiveValueFromProperty_: function(property) { |
174 if ('Effective' in property) { | 174 if ('Effective' in property) { |
175 var effective = property.Effective; | 175 var effective = property.Effective; |
176 if (effective in property) | 176 if (effective in property) |
177 return property[effective]; | 177 return property[effective]; |
178 } | 178 } |
179 return undefined; | 179 return undefined; |
180 }, | |
181 | |
182 /** | |
183 * Returns the comple ONC dictionary. | |
pneubeck (no reviews)
2014/11/11 16:09:31
comple ?
maybe 'complete'
stevenjb
2014/11/12 01:23:29
Complete. Done.
| |
184 */ | |
185 getData: function() { | |
186 return this.data_; | |
180 } | 187 } |
181 }; | 188 }; |
182 | 189 |
183 return { | 190 return { |
184 OncData: OncData | 191 OncData: OncData |
185 }; | 192 }; |
186 }); | 193 }); |
OLD | NEW |