mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-30 13:56:58 -04:00
Rename all appKey references to messageKey
This commit is contained in:
+3
-3
@@ -10,9 +10,9 @@ module.exports = function() {
|
||||
*/
|
||||
function toggleBackground() {
|
||||
if (this.get()) {
|
||||
Clay.getItemByAppKey('colorTest').enable();
|
||||
Clay.getItemByMessageKey('colorTest').enable();
|
||||
} else {
|
||||
Clay.getItemByAppKey('colorTest').disable();
|
||||
Clay.getItemByMessageKey('colorTest').disable();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ module.exports = function() {
|
||||
}
|
||||
|
||||
Clay.on(Clay.EVENTS.AFTER_BUILD, function() {
|
||||
var coolStuffToggle = Clay.getItemByAppKey('cool_stuff');
|
||||
var coolStuffToggle = Clay.getItemByMessageKey('cool_stuff');
|
||||
toggleBackground.call(coolStuffToggle);
|
||||
coolStuffToggle.on('change', toggleBackground);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user