File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
templates/app/client/components/modal(uibootstrap) Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,9 @@ export function Modal($rootScope, $uibModal) {
3737 * @param {String } name - name or info to show on modal
3838 * @param {All } - any additional args are passed straight to del callback
3939 */
40- return function ( ) {
41- var args = Array . prototype . slice . call ( arguments ) ;
42- var name = args . shift ( ) ;
40+ return function ( ... args ) {
41+ var slicedArgs = Reflect . apply ( Array . prototype . slice , args ) ;
42+ var name = slicedArgs . shift ( ) ;
4343 var deleteModal ;
4444
4545 deleteModal = openModal ( {
@@ -64,7 +64,7 @@ export function Modal($rootScope, $uibModal) {
6464 } , 'modal-danger' ) ;
6565
6666 deleteModal . result . then ( function ( event ) {
67- del . apply ( event , args ) ;
67+ Reflect . apply ( del , event , slicedArgs ) ;
6868 } ) ;
6969 } ;
7070 }
You can’t perform that action at this time.
0 commit comments