Skip to content

Commit

Permalink
Allow tetherOptions to be passed in, closes #12
Browse files Browse the repository at this point in the history
  • Loading branch information
Zack Bloom committed Mar 26, 2014
1 parent c7c6f08 commit 499c36f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion coffee/select.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class Select extends Evented
@close()

setupTether: ->
@tether = new Tether
@tether = new Tether extend
element: @drop
target: @target
attachment: 'top left'
Expand All @@ -266,6 +266,7 @@ class Select extends Evented
to: 'window'
attachment: 'together'
]
, @options.tetherOptions

renderTarget: ->
@target.innerHTML = ''
Expand Down
4 changes: 2 additions & 2 deletions js/select.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions select.js
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,7 @@
};

Select.prototype.setupTether = function() {
return this.tether = new Tether({
return this.tether = new Tether(extend({
element: this.drop,
target: this.target,
attachment: 'top left',
Expand All @@ -1649,7 +1649,7 @@
attachment: 'together'
}
]
});
}, this.options.tetherOptions));
};

Select.prototype.renderTarget = function() {
Expand Down
Loading

0 comments on commit 499c36f

Please sign in to comment.