Skip to content

Commit 7e5c49b

Browse files
committed
fixed function name getConstrains spell error,update readme file with new option:constrains
1 parent 881737a commit 7e5c49b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/jquery.webui-popover.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
getHideDelay:function(){
215215
return this.options.delay.hide||this.$element.attr('data-delay-hide')||300;
216216
},
217-
getContrains:function(){
217+
getConstrains:function(){
218218
return this.options.constrains||this.$element.attr('data-contrains');
219219
},
220220
setTitle:function(title){
@@ -352,8 +352,8 @@
352352

353353

354354
if (placement==='auto'){
355-
var constrainsH = this.getContrains() === 'horizontal',
356-
constrainsV = this.getContrains() === 'vertical';
355+
var constrainsH = this.getConstrains() === 'horizontal',
356+
constrainsV = this.getConstrains() === 'vertical';
357357
if (pageX<clientWidth/3){
358358
if (pageY<clientHeight/3){
359359
placement = constrainsH?'right-bottom':'bottom-right';

0 commit comments

Comments
 (0)