Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F10847056
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
EBernhardson
Nov 17 2017, 4:08 PM
2017-11-17 16:08:05 (UTC+0)
Size
630 B
Referenced Files
None
Subscribers
None
View Options
const BeforeOnce = ( options, fn ) => Before( options, function () {
return this.tags.check( options.tags ).then( ( status ) => {
if ( status === 'new' ) {
return fn.call ( this ).then( () => this.tags.complete( options.tags ) );
}
} );
} );
Converted to couroutine:
const BeforeOnce = ( options, fn ) => Before( options, Promise.coroutine( function* () {
let status = yield this.tags.check( options.tags );
if ( status === 'new' ) {
yield fn.call( this );
yield this.tags.complect( options.tags );
}
} ) );
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5099334
Default Alt Text
(630 B)
Attached To
Mode
P6342 (An Untitled Masterwork)
Attached
Detach File
Event Timeline
Log In to Comment