mirror of
https://github.com/pebble-dev/clay.git
synced 2026-09-02 07:07:46 -04:00
Automatically handle the "showConfiguration" and "webviewclosed" events + other minor code cleanup
This commit is contained in:
@@ -19,7 +19,7 @@ function ClayItem(config) {
|
||||
var _component = componentRegistry[config.type];
|
||||
|
||||
if (!_component) {
|
||||
throw new Error('the component: ' + config.type + ' is not registered. ' +
|
||||
throw new Error('The component: ' + config.type + ' is not registered. ' +
|
||||
'Make sure to register it with ClayConfig.registerComponent()');
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ function ClayItem(config) {
|
||||
/** @type {string|null} */
|
||||
self.appKey = config.appKey || null;
|
||||
|
||||
/** @type {object} */
|
||||
/** @type {Object} */
|
||||
self.config = config;
|
||||
|
||||
/** @type {M} */
|
||||
|
||||
Reference in New Issue
Block a user