mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
38c155de0c
commit
9ece16bb5b
@ -34,7 +34,12 @@ var util = require('lib/util')
|
||||
/*********************************************************************/
|
||||
// Helpers...
|
||||
|
||||
// normalize a split to either contain multiple values or a list...
|
||||
// Normalize a split that contains either multiple values or a list to
|
||||
// a list enabling the following method signature:
|
||||
//
|
||||
// .someMethod(arg, ..)
|
||||
// .someMethod([arg, ..])
|
||||
//
|
||||
var splitOrList = function(args){
|
||||
return (args.length == 1 && args[0] instanceof Array) ?
|
||||
args.pop()
|
||||
@ -547,7 +552,7 @@ var TagsPrototype = {
|
||||
return that.match(query, t, cmp) }) },
|
||||
|
||||
|
||||
// Introspection...
|
||||
// Introspection and Access API...
|
||||
//
|
||||
get length(){
|
||||
return this.values().length },
|
||||
@ -571,8 +576,6 @@ var TagsPrototype = {
|
||||
return false
|
||||
},
|
||||
|
||||
|
||||
|
||||
// Tags present in the system...
|
||||
//
|
||||
// Get all tags...
|
||||
@ -662,8 +665,9 @@ var TagsPrototype = {
|
||||
.flat())] },
|
||||
|
||||
|
||||
// Add/Remove/Modify tags API...
|
||||
// Edit API...
|
||||
//
|
||||
//
|
||||
// Resolve alias (recursive)...
|
||||
// .alias(tag)
|
||||
// -> value
|
||||
@ -1301,8 +1305,10 @@ var TagsPrototype = {
|
||||
},
|
||||
|
||||
|
||||
|
||||
// Object utility API...
|
||||
//
|
||||
//
|
||||
// .clone()
|
||||
// .clone('full')
|
||||
// -> tags
|
||||
@ -1315,6 +1321,7 @@ var TagsPrototype = {
|
||||
|
||||
// Serialization...
|
||||
//
|
||||
//
|
||||
// .json()
|
||||
// -> json
|
||||
//
|
||||
@ -1383,6 +1390,8 @@ var TagsPrototype = {
|
||||
return this
|
||||
},
|
||||
|
||||
|
||||
|
||||
__init__: function(json){
|
||||
json
|
||||
&& this.load(json) },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user