Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
origin-web-common
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Java-于龙
origin-web-common
Commits
503e7542
Commit
503e7542
authored
Apr 21, 2017
by
Jeffrey Phillips
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify filters
parent
090cf7ac
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
55 deletions
+25
-55
origin-web-common-ui.js
dist/origin-web-common-ui.js
+8
-18
origin-web-common.js
dist/origin-web-common.js
+9
-19
origin-web-common.min.js
dist/origin-web-common.min.js
+0
-0
util.js
src/filters/util.js
+8
-18
No files found.
dist/origin-web-common-ui.js
View file @
503e7542
...
...
@@ -1059,26 +1059,16 @@ angular.module('openshiftCommonUI')
angular
.
module
(
'openshiftCommonUI'
)
.
filter
(
"toArray"
,
function
()
{
return
function
(
items
)
{
if
(
!
items
)
{
return
[];
}
if
(
angular
.
isArray
(
items
))
{
return
items
;
}
var
itemsArray
=
[];
angular
.
forEach
(
items
,
function
(
item
)
{
itemsArray
.
push
(
item
);
});
return
itemsArray
;
};
return
_
.
toArray
;
})
.
filter
(
'size'
,
function
()
{
return
_
.
size
;
})
.
filter
(
'hashSize'
,
function
()
{
.
filter
(
'hashSize'
,
function
(
$log
)
{
return
function
(
hash
)
{
if
(
!
hash
)
{
return
0
;
}
if
(
!
hash
)
{
return
0
;
}
return
Object
.
keys
(
hash
).
length
;
};
})
...
...
dist/origin-web-common.js
View file @
503e7542
...
...
@@ -1266,29 +1266,19 @@ angular.module('openshiftCommonUI')
angular
.
module
(
'openshiftCommonUI'
)
.
filter
(
"toArray"
,
function
()
{
return
function
(
items
)
{
if
(
!
items
)
{
return
[];
}
if
(
angular
.
isArray
(
items
))
{
return
items
;
}
var
itemsArray
=
[];
angular
.
forEach
(
items
,
function
(
item
)
{
itemsArray
.
push
(
item
);
});
return
itemsArray
;
};
return
_
.
toArray
;
})
.
filter
(
'size'
,
function
()
{
return
_
.
size
;
})
.
filter
(
'hashSize'
,
function
(
)
{
.
filter
(
'hashSize'
,
[
"$log"
,
function
(
$log
)
{
return
function
(
hash
)
{
if
(
!
hash
)
{
return
0
;
}
if
(
!
hash
)
{
return
0
;
}
return
Object
.
keys
(
hash
).
length
;
};
})
}
]
)
.
filter
(
'generateName'
,
function
()
{
return
function
(
prefix
,
length
)
{
if
(
!
prefix
)
{
...
...
dist/origin-web-common.min.js
View file @
503e7542
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/filters/util.js
View file @
503e7542
...
...
@@ -2,26 +2,16 @@
angular
.
module
(
'openshiftCommonUI'
)
.
filter
(
"toArray"
,
function
()
{
return
function
(
items
)
{
if
(
!
items
)
{
return
[];
}
if
(
angular
.
isArray
(
items
))
{
return
items
;
}
var
itemsArray
=
[];
angular
.
forEach
(
items
,
function
(
item
)
{
itemsArray
.
push
(
item
);
});
return
itemsArray
;
};
return
_
.
toArray
;
})
.
filter
(
'hashSize'
,
function
()
{
.
filter
(
'size'
,
function
()
{
return
_
.
size
;
})
.
filter
(
'hashSize'
,
function
(
$log
)
{
return
function
(
hash
)
{
if
(
!
hash
)
{
return
0
;
}
if
(
!
hash
)
{
return
0
;
}
return
Object
.
keys
(
hash
).
length
;
};
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment