Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 364212e

Browse files
author
Gabriel Schulhof
committed
Popup arrow: Initialize arrow upon _create().
1 parent 8d36366 commit 364212e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

js/widgets/popup.arrow.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ $.widget( "mobile.popup", $.mobile.popup, {
4040
arrowSides: "t,b,l,r"
4141
},
4242

43+
_create: function() {
44+
this._super();
45+
this._setArrow( this.options.arrow );
46+
},
47+
4348
_unenhance: function() {
4449
var ar = this._ui.arrow;
4550

@@ -139,7 +144,7 @@ $.widget( "mobile.popup", $.mobile.popup, {
139144
_placementCoords: function( desired ) {
140145
var state, best, params, bgOffset, elOffset, diff,
141146
bgRef = {},
142-
ar = this._ui.arrow ;
147+
ar = this._ui.arrow;
143148

144149
if ( !this.options.arrow ) {
145150
return this._super( desired );

0 commit comments

Comments
 (0)