Skip to content

Commit

Permalink
Minor code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
pinceladasdaweb committed Oct 18, 2015
1 parent 33f2ff8 commit b367d32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions build/tweetlight.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 1 addition & 9 deletions src/tweetlight.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*jslint browser: true*/
/*jslint browser: true, debug:true*/
/*global define, module, exports*/
(function (root, factory) {
"use strict";
Expand All @@ -18,10 +18,6 @@
return new Tweetlight(options);
}

if (typeof options === 'string') {
options = { key : options };
}

this.username = options.username;
this.hashtag = options.hashtag;
this.container = options.container;
Expand All @@ -32,10 +28,6 @@
this.fetch();
};

Tweetlight.init = function (options) {
return new Tweetlight(options);
};

Tweetlight.prototype = {
fetch: function () {
var type = this.hashtag ? 'hashtag=' + encodeURIComponent(this.hashtag) : 'username=' + this.username,
Expand Down

0 comments on commit b367d32

Please sign in to comment.