-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from supportkit/integration
0.2.8 Release
- Loading branch information
Showing
5 changed files
with
63 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Changes | ||
|
||
1. Replaced Modernizr by a simpler script to prevent potential clashes/crashes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
'use strict'; | ||
|
||
var $ = require('jquery'); | ||
|
||
// https://gist.github.com/jackfuchs/556448 | ||
|
||
/** | ||
* jQuery.support.cssProperty | ||
* To verify that a CSS property is supported (or any of its browser-specific implementations) | ||
* | ||
* @param string p - css property name | ||
* [@param] bool rp - optional, if set to true, the css property name will be returned, instead of a boolean support indicator | ||
* | ||
* @Author: Axel Jack Fuchs (Cologne, Germany) | ||
* @Date: 08-29-2010 18:43 | ||
* | ||
* Example: $.support.cssProperty('boxShadow'); | ||
* Returns: true | ||
* | ||
* Example: $.support.cssProperty('boxShadow', true); | ||
* Returns: 'MozBoxShadow' (On Firefox4 beta4) | ||
* Returns: 'WebkitBoxShadow' (On Safari 5) | ||
*/ | ||
$.support.cssProperty = (function() { | ||
function cssProperty(p, rp) { | ||
var b = document.body || document.documentElement, | ||
s = b.style; | ||
|
||
// No css support detected | ||
if (typeof s == 'undefined') { | ||
return false; | ||
} | ||
|
||
// Tests for standard prop | ||
if (typeof s[p] == 'string') { | ||
return rp ? p : true; | ||
} | ||
|
||
// Tests for vendor specific prop | ||
var v = ['Moz', 'Webkit', 'Khtml', 'O', 'ms', 'Icab'], | ||
p = p.charAt(0).toUpperCase() + p.substr(1); | ||
|
||
for (var i = 0; i < v.length; i++) { | ||
if (typeof s[v[i] + p] == 'string') { | ||
return rp ? (v[i] + p) : true; | ||
} | ||
} | ||
|
||
return false; | ||
} | ||
|
||
return cssProperty; | ||
})(); |