Hey I have created a drawer with an ImageView inside, I've added a small spinner but instead of dissapearing when the Image loads it simply stays in the top left corner of the drawer and continues spinning. Here's my code:

HTML:
Code:
<div id='tDrawer' x-mojo-element="Drawer">
	<div x-mojo-element="Spinner" id="spinner" class="spinnerClass" name="spinnerName"></div>
	<div id="todayimg" x-mojo-element="ImageView">
		<div x-mojo-element="ProgressPill" id="todaydwn">
		</div>
	</div>
</div>
JavaScript for spinner:
Code:
this.controller.setupWidget("spinner",
	         this.attributes = {
	             spinnerSize: 'small'
	         },
	         this.model = {
	             spinning: true 
	         });
Any ideas on how to fix this?