Skip to content

Commit

Permalink
Added Check for css3 animation
Browse files Browse the repository at this point in the history
Added Check for css3 animation
  • Loading branch information
object505 committed Feb 25, 2015
1 parent 56f839c commit 6ec8fae
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tipso",
"version": "1.0.2",
"version": "1.0.4",
"description": "A Lightweight Responsive jQuery Tooltip Plugin",
"main": ["src/tipso.min.js", "src/tipso.css"],
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"mobile",
"lightweight"
],
"version": "1.0.3",
"version": "1.0.4",
"author": "Bojan Petkovski (http://object505.com/)",
"licenses": [
{
Expand Down
21 changes: 12 additions & 9 deletions src/tipso.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* tipso - A Lightweight Responsive jQuery Tooltip Plugin v1.0.2
* tipso - A Lightweight Responsive jQuery Tooltip Plugin v1.0.4
* Copyright (c) 2014-2015 Bojan Petkovski
* http://tipso.object505.com
* Licensed under the MIT license
Expand Down Expand Up @@ -34,10 +34,8 @@
this._title = this.element.attr('title');
this.mode = 'hide';
this.ieFade = false;
if ( _isIE() ) {
if ( _isIE() <= 9 ) {
this.ieFade = true;
}
if ( !supportsTransitions ) {
this.ieFade = true;
}
this.init();
}
Expand Down Expand Up @@ -202,10 +200,15 @@
return height;
}

var _isIE = function () {
var ua = navigator.userAgent.toLowerCase();
return (ua.indexOf('msie') != -1) ? parseInt(ua.split('msie')[1]) : false;
};
var supportsTransitions = (function() {
var s = document.createElement('p').style,
v = ['ms','O','Moz','Webkit'];
if( s['transition'] == '' ) return true;
while( v.length )
if( v.pop() + 'Transition' in s )
return true;
return false;
})();

function reposition(thisthat) {
var tipso_bubble = thisthat.tooltip(),
Expand Down
4 changes: 2 additions & 2 deletions src/tipso.min.js

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

2 changes: 1 addition & 1 deletion tipso.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"mobile",
"lightweight"
],
"version": "1.0.2",
"version": "1.0.4",
"author": {
"name": "Bojan Petkovski",
"url": "http://object505.com"
Expand Down

0 comments on commit 6ec8fae

Please sign in to comment.