Skip to content

Commit e53f088

Browse files
Merge pull request imakewebthings#379 from timkelty/master
Allow for pre-existing wrapper
2 parents d21b8c5 + 3f16647 commit e53f088

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) {
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)