mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-14 09:10:39 +08:00
Minor formatting and refactoring
This commit is contained in:
@@ -12,11 +12,6 @@ export default class IntegerEntity extends IEntity {
|
||||
* @param {Object | Number | String} options
|
||||
*/
|
||||
constructor(options = 0) {
|
||||
if (options.constructor == Number || options.constructor == String) {
|
||||
options = {
|
||||
value: options,
|
||||
}
|
||||
}
|
||||
super(options)
|
||||
this.value = Math.round(this.value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user