diff options
Diffstat (limited to 'src/elements/Symbol.js')
-rw-r--r-- | src/elements/Symbol.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/elements/Symbol.js b/src/elements/Symbol.js index cdb5f85..f44125c 100644 --- a/src/elements/Symbol.js +++ b/src/elements/Symbol.js @@ -1,4 +1,4 @@ -import { nodeOrNew, register } from '../utils/adopter.js' +import { nodeOrNew, register, wrapWithAttrCheck } from '../utils/adopter.js' import { registerMethods } from '../utils/methods.js' import Container from './Container.js' @@ -11,9 +11,9 @@ export default class Symbol extends Container { registerMethods({ Container: { - symbol () { + symbol: wrapWithAttrCheck(function () { return this.put(new Symbol()) - } + }) } }) |