mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-04 13:20:10 +00:00
minor refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
b972835da0
commit
0fa9ed572c
@ -1909,6 +1909,7 @@ var DataWithTagsPrototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getTags: function(gids){
|
getTags: function(gids){
|
||||||
|
gids = arguments.length > 1 ? [].slice.call(arguments) : gids
|
||||||
gids = gids == null ? this.getImage() : gids
|
gids = gids == null ? this.getImage() : gids
|
||||||
gids = gids.constructor !== Array ? [gids] : gids
|
gids = gids.constructor !== Array ? [gids] : gids
|
||||||
|
|
||||||
@ -1932,6 +1933,7 @@ var DataWithTagsPrototype = {
|
|||||||
|
|
||||||
// selectors...
|
// selectors...
|
||||||
getTaggedByAny: function(tags){
|
getTaggedByAny: function(tags){
|
||||||
|
tags = arguments.length > 1 ? [].slice.call(arguments) : tags
|
||||||
tags = tags.constructor !== Array ? [tags] : tags
|
tags = tags.constructor !== Array ? [tags] : tags
|
||||||
|
|
||||||
var res = []
|
var res = []
|
||||||
@ -1951,6 +1953,7 @@ var DataWithTagsPrototype = {
|
|||||||
return res.compact()
|
return res.compact()
|
||||||
},
|
},
|
||||||
getTaggedByAll: function(tags){
|
getTaggedByAll: function(tags){
|
||||||
|
tags = arguments.length > 1 ? [].slice.call(arguments) : tags
|
||||||
tags = tags.constructor !== Array ? [tags] : tags
|
tags = tags.constructor !== Array ? [tags] : tags
|
||||||
|
|
||||||
if(this.tags == null){
|
if(this.tags == null){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user