Files
clay/dev/custom-fn.js
T
2016-01-27 19:12:12 -08:00

16 lines
318 B
JavaScript

'use strict';
module.exports = function() {
var Clay = window.Clay = this;
Clay.getItemByAppKey('cool_stuff').on('change', function() {
if (this.get()) {
Clay.getItemByAppKey('background').enable();
} else {
Clay.getItemByAppKey('background').disable();
}
});
Clay.getSettings();
};