mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-29 05:16:32 -04:00
more concistent disable function
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
* @returns {ClayEvents}
|
||||
*/
|
||||
function disable() {
|
||||
this.$element.set('+disabled');
|
||||
this.$manipulatorTarget.set('disabled', true);
|
||||
return this.trigger('disabled');
|
||||
}
|
||||
@@ -12,6 +13,7 @@ function disable() {
|
||||
* @returns {ClayEvents}
|
||||
*/
|
||||
function enable() {
|
||||
this.$element.set('-disabled');
|
||||
this.$manipulatorTarget.set('disabled', false);
|
||||
return this.trigger('enabled');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user