Permalink
Browse files

Set a default options value for the plugin function

  • Loading branch information...
1 parent 86f5bcf commit 42a8d7308650bdb76521a664a53f7263cc8428d8 @nhowell committed Sep 13, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/wysihat.js
View
@@ -15,6 +15,7 @@
// Set wysihat as a jQuery plugin
$.fn.wysihat = function(options) {
+ options = typeof(options) != 'undefined' ? options : [];
options = WysiHat.Toolbar.ButtonSets.Standard.concat(options);
return this.each(function() {

0 comments on commit 42a8d73

Please sign in to comment.