Skip to content

Commit eeb5331

Browse files
authored
Merge pull request #100 from Topener/master
fixed global AvImageview access since 9.0
2 parents 6e1f50d + a8cc18c commit eeb5331

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ Using the module in a `ListItemTemplate` is a bit difference because custom modu
164164
where `AvImageview` is a variable declared in `alloy.js` like as follows:
165165
```javascript
166166
const AvImageview = require("av.imageview");
167-
167+
global.AvImageview = AvImageview;
168+
168169
//and to use contentmodes constants via alloy
169170
Alloy.Globals.CONTENT_MODE_FIT = AvImageview.CONTENT_MODE_ASPECT_FIT;
170171
Alloy.Globals.CONTENT_MODE_FILL = AvImageview.CONTENT_MODE_ASPECT_FILL;

0 commit comments

Comments
 (0)