Skip to content

Commit 963829a

Browse files
author
Tim Kelty
committed
Allow for pre-existing wrapper
1 parent 13ae054 commit 963829a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/shortcuts/sticky.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535

3636
/* Private */
3737
Sticky.prototype.createWrapper = function() {
38-
this.$element.wrap(this.options.wrapper)
38+
if (this.options.wrapper !== false) {
39+
this.$element.wrap(this.options.wrapper)
40+
}
3941
this.$wrapper = this.$element.parent()
4042
this.wrapper = this.$wrapper[0]
4143
}

0 commit comments

Comments
 (0)