We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 881737a commit 7e5c49bCopy full SHA for 7e5c49b
src/jquery.webui-popover.js
@@ -214,7 +214,7 @@
214
getHideDelay:function(){
215
return this.options.delay.hide||this.$element.attr('data-delay-hide')||300;
216
},
217
- getContrains:function(){
+ getConstrains:function(){
218
return this.options.constrains||this.$element.attr('data-contrains');
219
220
setTitle:function(title){
@@ -352,8 +352,8 @@
352
353
354
if (placement==='auto'){
355
- var constrainsH = this.getContrains() === 'horizontal',
356
- constrainsV = this.getContrains() === 'vertical';
+ var constrainsH = this.getConstrains() === 'horizontal',
+ constrainsV = this.getConstrains() === 'vertical';
357
if (pageX<clientWidth/3){
358
if (pageY<clientHeight/3){
359
placement = constrainsH?'right-bottom':'bottom-right';
0 commit comments