From 0fa9ed572c3a09574a54b43699f303e443f8d169 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 19 Nov 2014 03:03:29 +0300 Subject: [PATCH] minor refactoring... Signed-off-by: Alex A. Naanou --- ui (gen4)/data.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui (gen4)/data.js b/ui (gen4)/data.js index 9a0417ec..d645be0a 100755 --- a/ui (gen4)/data.js +++ b/ui (gen4)/data.js @@ -1909,6 +1909,7 @@ var DataWithTagsPrototype = { }, getTags: function(gids){ + gids = arguments.length > 1 ? [].slice.call(arguments) : gids gids = gids == null ? this.getImage() : gids gids = gids.constructor !== Array ? [gids] : gids @@ -1932,6 +1933,7 @@ var DataWithTagsPrototype = { // selectors... getTaggedByAny: function(tags){ + tags = arguments.length > 1 ? [].slice.call(arguments) : tags tags = tags.constructor !== Array ? [tags] : tags var res = [] @@ -1951,6 +1953,7 @@ var DataWithTagsPrototype = { return res.compact() }, getTaggedByAll: function(tags){ + tags = arguments.length > 1 ? [].slice.call(arguments) : tags tags = tags.constructor !== Array ? [tags] : tags if(this.tags == null){