Skip to content

Commit

Permalink
add stylable to @controller
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Sep 5, 2022
1 parent fbdecbf commit 24565f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type {CustomElementClass} from './custom-element.js'
import {stylable} from './targetable.js'
import {targetable} from './targetable.js'
import {attrable} from './attrable.js'
import {actionable} from './actionable.js'
Expand All @@ -11,5 +12,5 @@ import {register} from './register.js'
* wrapping the classes `connectedCallback` method if needed.
*/
export function controller<T extends CustomElementClass>(Class: T) {
return register(actionable(attrable(targetable(Class))))
return register(actionable(attrable(targetable(styleable(Class)))))
}

0 comments on commit 24565f5

Please sign in to comment.