Skip to content

Commit c6f2875

Browse files
committed
remove $.browser
1 parent 7b65de4 commit c6f2875

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

src/jquery.inherit/jquery.inherit.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,26 @@
66
* http://www.opensource.org/licenses/mit-license.php
77
* http://www.gnu.org/licenses/gpl.html
88
*
9-
* @version 1.3.4
9+
* @version 1.3.5
1010
*/
1111

1212
(function($) {
1313

1414
var hasIntrospection = (function(){_}).toString().indexOf('_') > -1,
15-
needCheckProps = $.browser.msie, // fucking ie hasn't toString, valueOf in for
16-
specProps = needCheckProps? ['toString', 'valueOf'] : null,
1715
emptyBase = function() {},
1816
objCreate = Object.create || function(ptp) {
1917
var inheritance = function() {};
2018
inheritance.prototype = ptp;
2119
return new inheritance();
22-
};
20+
},
21+
needCheckProps = true,
22+
testPropObj = { toString : '' };
23+
24+
for(var i in testPropObj) { // fucking ie hasn't toString, valueOf in for
25+
testPropObj.hasOwnProperty(i) && (needCheckProps = false);
26+
}
27+
28+
var specProps = needCheckProps? ['toString', 'valueOf'] : null;
2329

2430
function override(base, result, add) {
2531

src/jquery.inherit/jquery.inherit.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)