Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[js] construct preferences properly

Use empty object literal for the first argument so as to not modify the
defaults.
  • Loading branch information...
commit d99242ff7bed5764155f6ed7d3549a17e6e08530 1 parent 7b10235
@seliopou seliopou authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  js/pageguide.js
View
2  js/pageguide.js
@@ -55,7 +55,7 @@ $(function() {
});
tl.pg.PageGuide = function (pg_elem, preferences) {
- this.preferences = $.extend(tl.pg.default_prefs, preferences || {});
+ this.preferences = $.extend({}, tl.pg.default_prefs, preferences);
this.$base = pg_elem;
this.$all_items = $('#tlyPageGuide > li', this.$base);
this.$items = $([]); /* fill me with visible elements on pg expand */
Please sign in to comment.
Something went wrong with that request. Please try again.