Permalink
Browse files

Popup arrow: Initialize arrow upon _create().

  • Loading branch information...
gabrielschulhof committed Mar 18, 2013
1 parent 8d36366 commit 364212e5fa88757172583718390bebae39d406c5
Showing with 6 additions and 1 deletion.
  1. +6 −1 js/widgets/popup.arrow.js
@@ -40,6 +40,11 @@ $.widget( "mobile.popup", $.mobile.popup, {
arrowSides: "t,b,l,r"
},
_create: function() {
this._super();
this._setArrow( this.options.arrow );
},
_unenhance: function() {
var ar = this._ui.arrow;
@@ -139,7 +144,7 @@ $.widget( "mobile.popup", $.mobile.popup, {
_placementCoords: function( desired ) {
var state, best, params, bgOffset, elOffset, diff,
bgRef = {},
ar = this._ui.arrow ;
ar = this._ui.arrow;
if ( !this.options.arrow ) {
return this._super( desired );

0 comments on commit 364212e

Please sign in to comment.