Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
added buttons array to check if the library selected all the elements…
Browse files Browse the repository at this point in the history
… on the page
  • Loading branch information
kriskbx committed Apr 27, 2015
1 parent f9532cf commit 0bdfd01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/whatsapp-button.js

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

4 changes: 4 additions & 0 deletions src/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
* @constructor
*/
var WASHAREBTN = function () {
this.buttons = [];

if (this.isIos === true) {
this.cntLdd(window, this.crBtn);
}
Expand Down Expand Up @@ -171,6 +173,8 @@
var iframes = [];

for (var i = 0; i < b.length; i++) {
root.WASHAREBTN.buttons.push(b[i]);

b[i] = root.WASHAREBTN.setButtonAttributes(b[i]);
iframes[i] = root.WASHAREBTN.setIframeAttributes(b[i]);

Expand Down

0 comments on commit 0bdfd01

Please sign in to comment.