From e1d245f531819bf65e9db1e5d020eb26d08c7b0d Mon Sep 17 00:00:00 2001 From: winkidney Date: Mon, 18 Mar 2019 17:20:05 +0800 Subject: [PATCH] Fix: Should not set null if height does not exist --- pinry/static/js/vue/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pinry/static/js/vue/main.js b/pinry/static/js/vue/main.js index 0ca9a20..9d29723 100644 --- a/pinry/static/js/vue/main.js +++ b/pinry/static/js/vue/main.js @@ -48,7 +48,7 @@ function HeightTable(blockMargin) { }; function get(obj, index) { if (!obj.data.hasOwnProperty(index)) { - obj.data[index] = null + return null } return obj.data[index]; } @@ -73,8 +73,8 @@ function HeightTable(blockMargin) { return height } - self.get = function(index, value) { - return get(self, index, value); + self.get = function(index) { + return get(self, index); }; self.set = function (index, value) {