Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor spacing cleanup

  • Loading branch information...
commit 3646fbed8f03a2e24856d4789a798bcc17fb270f 1 parent 8d31c54
@JeffreyWay authored
View
7 dist/jquery.styleWords.js
@@ -1,5 +1,5 @@
/*! jQuery Stylewords - v0.1.0 - 2012-04-09
-* https://github.com/administrator/jquery.styleWords
+* https://github.com/jeffreyway/jquery.styleWords
* Copyright (c) 2012 Jeffrey Way; Licensed GPL */
(function($) {
@@ -39,8 +39,7 @@ var styleWords = {
};
-
-
+// Create the plugin
$.fn.styleWords = function(numWords, config) {
var obj = Object.create(styleWords);
return this.each(function() {
@@ -53,6 +52,4 @@ $.fn.styleWords.defaults = {
'class': 'styleWords'
};
-
-
}(jQuery));
View
2  dist/jquery.styleWords.min.js
@@ -1,4 +1,4 @@
/*! jQuery Stylewords - v0.1.0 - 2012-04-09
-* https://github.com/administrator/jquery.styleWords
+* https://github.com/jeffreyway/jquery.styleWords
* Copyright (c) 2012 Jeffrey Way; Licensed GPL */
(function(a){var b={init:function(b,c,d){this.numWords=c||1,this.config=a.extend({},a.fn.styleWords.defaults,d),this.el=b,this.$el=a(b),this.updateHTML()},updateHTML:function(){var a=this;this.$el.html(function(b,c){return a.createWrapper(c)})},createWrapper:function(b){var c=b.split(" "),d=this.config.tag,e;return delete this.config.tag,e=a(d,this.config).text(c.splice(0,this.numWords).join(" ")),e=a("<div>").append(e).html(),[e].concat(c).join(" ")}};a.fn.styleWords=function(a,c){var d=Object.create(b);return this.each(function(){d.init(this,a,c)})},a.fn.styleWords.defaults={tag:"<span>","class":"styleWords"}})(jQuery)
View
5 src/jquery.styleWords.js
@@ -43,8 +43,7 @@ var styleWords = {
};
-
-
+// Create the plugin
$.fn.styleWords = function(numWords, config) {
var obj = Object.create(styleWords);
return this.each(function() {
@@ -57,6 +56,4 @@ $.fn.styleWords.defaults = {
'class': 'styleWords'
};
-
-
}(jQuery));
Please sign in to comment.
Something went wrong with that request. Please try again.