mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-06 23:57:30 +08:00
Various fixes
This commit is contained in:
@@ -3,13 +3,13 @@ import IEntity from "./IEntity"
|
||||
export default class IntegerEntity extends IEntity {
|
||||
|
||||
static attributes = {
|
||||
value: Number
|
||||
value: Number,
|
||||
}
|
||||
|
||||
constructor(options = {}) {
|
||||
if (options.constructor === Number || options.constructor === String) {
|
||||
if (options.constructor == Number || options.constructor == String) {
|
||||
options = {
|
||||
value: options
|
||||
value: options,
|
||||
}
|
||||
}
|
||||
super(options)
|
||||
|
||||
Reference in New Issue
Block a user