File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,16 @@ Gets the contents of `package.json` as an object.
202
202
203
203
Saves ` package ` to ` package.json ` , preserving indentation style.
204
204
205
+ #### walk( methods, done )
206
+
207
+ Executes the array of ` methods ` (minimum one element) step by step. For any
208
+ given method, if that method accepts arguments (` method.length > 0 ` ), it will
209
+ pass a callback that the method needs to execute when done, making the method
210
+ call async. Otherwise the method is assumed to be sync and the next method runs
211
+ immediately.
212
+
213
+ Once all methods are executed, the ` done ` callback is executed.
214
+
205
215
### Other Properties
206
216
207
217
#### isTest
Original file line number Diff line number Diff line change @@ -53,15 +53,15 @@ Release.define({
53
53
} ;
54
54
} ,
55
55
56
- _walk : function ( methods , fn ) {
56
+ walk : function ( methods , fn ) {
57
57
var method = methods . shift ( ) ;
58
58
59
59
function next ( ) {
60
60
if ( ! methods . length ) {
61
61
return fn ( ) ;
62
62
}
63
63
64
- Release . _walk ( methods , fn ) ;
64
+ Release . walk ( methods , fn ) ;
65
65
}
66
66
67
67
if ( ! method . length ) {
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ commonTasks = [
45
45
function ( fn ) {
46
46
if ( Release . cdnPublish ) {
47
47
Release . _section ( "publishing to jQuery CDN" ) ( ) ;
48
- Release . _walk ( [
48
+ Release . walk ( [
49
49
Release . _copyCdnArtifacts ,
50
50
Release . confirmReview ,
51
51
Release . _pushToCdn
@@ -80,10 +80,10 @@ stableTasks = [
80
80
Release . _gatherContributors
81
81
] ;
82
82
83
- Release . _walk ( commonTasks , function ( ) {
83
+ Release . walk ( commonTasks , function ( ) {
84
84
if ( Release . preRelease ) {
85
85
return Release . complete ( ) ;
86
86
}
87
87
88
- Release . _walk ( stableTasks , Release . complete ) ;
88
+ Release . walk ( stableTasks , Release . complete ) ;
89
89
} ) ;
You can’t perform that action at this time.
0 commit comments