Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { getSheet } from './core/get-sheet';
* @param {String|Object|Function} val
*/
function css(val) {
let ctx = this || {};
let ctx = Object.isExtensible(this) ? this : {};;
let _val = val.call ? val(ctx.p) : val;

return hash(
Expand Down
2 changes: 1 addition & 1 deletion src/styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function setup(pragma, prefix, theme, forwardProps) {
* @param {function} forwardRef
*/
function styled(tag, forwardRef) {
let _ctx = this || {};
let _ctx = Object.isExtensible(this) ? this : {};

return function wrapper() {
let _args = arguments;
Expand Down