mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-26 08:04:56 +01:00
Fix textarea not showing after eslint fixes (eqeqeq)
This commit is contained in:
parent
3ac1b939aa
commit
5e66f1f160
@ -15,7 +15,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import { $defined } from '@wisemapping/core-js';
|
import { $assert, $defined } from '@wisemapping/core-js';
|
||||||
|
|
||||||
class Font {
|
class Font {
|
||||||
constructor() {
|
constructor() {
|
||||||
@ -68,7 +68,9 @@ class Font {
|
|||||||
return this._weight;
|
return this._weight;
|
||||||
}
|
}
|
||||||
|
|
||||||
setSize(size) {
|
setSize(value) {
|
||||||
|
const size = parseInt(value, 10);
|
||||||
|
$assert(!Number.isNaN(size), 'size must be a valid integer');
|
||||||
this._size = size;
|
this._size = size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user