| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 cr.exportPath('settings'); | |
| 6 assert(!settings.defaultResourceLoaded, | |
| 7 'settings.js run twice. You probably have an invalid import.'); | |
| 8 /** Global defined when the main Settings script runs. */ | |
| 9 settings.defaultResourceLoaded = true; | |
| 10 | |
| 11 /** | |
| 12 * @fileoverview | |
| 13 * 'cr-settings' is the main MD-Settings element, combining the UI and models. | |
| 14 * | |
| 15 * Example: | |
| 16 * | |
| 17 * <cr-settings></cr-settings> | |
| 18 */ | |
| 19 Polymer({ | |
| 20 is: 'cr-settings', | |
| 21 | |
| 22 /** @override */ | |
| 23 created: function() { | |
| 24 settings.initializeRouteFromUrl(); | |
| 25 }, | |
| 26 | |
| 27 /** @override */ | |
| 28 ready: function() { | |
| 29 this.$.ui.directionDelegate = new settings.DirectionDelegateImpl; | |
| 30 }, | |
| 31 }); | |
| OLD | NEW |