File tree Expand file tree Collapse file tree
extensions/amp-story-panning-media/0.1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,9 +94,7 @@ export class AmpStoryPanningMedia extends AMP.BaseElement {
9494 /** @override */
9595 buildCallback ( ) {
9696 return Services . storyStoreServiceForOrNull ( this . win ) . then (
97- ( storeService ) => {
98- this . storeService_ = storeService ;
99- }
97+ ( storeService ) => ( this . storeService_ = storeService )
10098 ) ;
10199 }
102100
@@ -153,12 +151,11 @@ export class AmpStoryPanningMedia extends AMP.BaseElement {
153151 ) ;
154152 // Mutation observer for distance attribute
155153 const config = { attributes : true , attributeFilter : [ 'distance' ] } ;
156- const callback = ( mutationsList ) => {
157- this . pageDistance_ = parseInt (
154+ const callback = ( mutationsList ) =>
155+ ( this . pageDistance_ = parseInt (
158156 mutationsList [ 0 ] . target . getAttribute ( 'distance' ) ,
159157 10
160- ) ;
161- } ;
158+ ) ) ;
162159 const observer = new MutationObserver ( callback ) ;
163160 this . getPage_ ( ) && observer . observe ( this . getPage_ ( ) , config ) ;
164161 }
You can’t perform that action at this time.
0 commit comments