mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 20:00: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){
|
||||
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){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user