Skip to content

Commit

Permalink
Logging a warning instead of throwing an error when initiating a non-…
Browse files Browse the repository at this point in the history
…multiple tooltip on an element that already has one
  • Loading branch information
louisameline committed Apr 7, 2014
1 parent 87db8d3 commit 6ec7e90
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tooltipster",
"version": "3.2.1",
"version": "3.2.2",
"main": ["js/jquery.tooltipster.min.js", "css/tooltipster.css"],
"dependencies": {
"jquery": ">=1.7"
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.tooltipster.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Tooltipster 3.2.1 | 2014-04-05
Tooltipster 3.2.2 | 2014-04-07
A rockin' custom tooltip jQuery plugin
Developed by Caleb Jacob under the MIT license http://opensource.org/licenses/MIT
Expand Down Expand Up @@ -1212,7 +1212,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
else {
if(multiple) go = true;
else throw new Error('One or more tooltips are already attached to this element, use the "multiple" option to attach more tooltips.');
else console.log('Tooltipster: one or more tooltips are already attached to this element: ignoring. Use the "multiple" option to attach more tooltips.');
}

if(go) {
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.tooltipster.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tooltipster.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"keywords": [
"tooltip"
],
"version": "3.2.1",
"version": "3.2.2",
"author": {
"name": "Caleb Jacob",
"url": "http://calebjacob.com/"
Expand Down

0 comments on commit 6ec7e90

Please sign in to comment.