We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5a36b3 commit 6e7c27fCopy full SHA for 6e7c27f
CSSObject/CSSObject.js
@@ -51,12 +51,14 @@ import Stylesheet from "./parser/Stylesheet.js"
51
52
/**
53
* get static stylesheet
54
- * @param {string} string css text
+ * @param {string} text css text
55
* @param {object} callback callback
56
*/
57
- static(string, callback) {
58
- let style = new Stylesheet(string)
59
- return callback(style)
+ static(text, callback) {
+ let style = new Stylesheet(text)
+ if (typeof text == 'string') callback(style)
60
+
61
+ return this
62
}
63
64
0 commit comments