|
@@ -289,11 +289,7 @@ window.Quo = Quo;
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-})(Quo);/*
|
|
|
|
|
- QuoJS 1.0
|
|
|
|
|
- (c) 2011, 2012 Javi Jiménez Villar (@soyjavi)
|
|
|
|
|
- http://quojs.tapquo.com
|
|
|
|
|
-*/
|
|
|
|
|
|
|
+})(Quo);
|
|
|
|
|
|
|
|
(function($$) {
|
|
(function($$) {
|
|
|
|
|
|
|
@@ -367,11 +363,7 @@ window.Quo = Quo;
|
|
|
return detected_os;
|
|
return detected_os;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-})(Quo);/*
|
|
|
|
|
- QuoJS 1.0
|
|
|
|
|
- (c) 2011, 2012 Javi Jiménez Villar (@soyjavi)
|
|
|
|
|
- http://quojs.tapquo.com
|
|
|
|
|
-*/
|
|
|
|
|
|
|
+})(Quo);
|
|
|
|
|
|
|
|
(function($$) {
|
|
(function($$) {
|
|
|
|
|
|
|
@@ -569,11 +561,9 @@ window.Quo = Quo;
|
|
|
* ?
|
|
* ?
|
|
|
*/
|
|
*/
|
|
|
$.fn.removeClass = function(name) {
|
|
$.fn.removeClass = function(name) {
|
|
|
- var remove_class = _generateRemoveClass(name);
|
|
|
|
|
-
|
|
|
|
|
return this.each(function() {
|
|
return this.each(function() {
|
|
|
if (_existsClass(name, this.className)) {
|
|
if (_existsClass(name, this.className)) {
|
|
|
- this.className = this.className.replace(remove_class, ' ');
|
|
|
|
|
|
|
+ this.className = this.className.replace(name, ' ');
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
@@ -582,11 +572,9 @@ window.Quo = Quo;
|
|
|
* ?
|
|
* ?
|
|
|
*/
|
|
*/
|
|
|
$.fn.toggleClass = function(name) {
|
|
$.fn.toggleClass = function(name) {
|
|
|
- var remove_class = _generateRemoveClass(name);
|
|
|
|
|
-
|
|
|
|
|
return this.each(function() {
|
|
return this.each(function() {
|
|
|
if (_existsClass(name, this.className)) {
|
|
if (_existsClass(name, this.className)) {
|
|
|
- this.className = this.className.replace(remove_class, '');
|
|
|
|
|
|
|
+ this.className = this.className.replace(name, ' ');
|
|
|
} else {
|
|
} else {
|
|
|
this.className += ' ' + name;
|
|
this.className += ' ' + name;
|
|
|
}
|
|
}
|
|
@@ -617,10 +605,6 @@ window.Quo = Quo;
|
|
|
return (classes.indexOf(name) >= 0);
|
|
return (classes.indexOf(name) >= 0);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function _generateRemoveClass(name) {
|
|
|
|
|
- return new RegExp("(^|\\s+)" + name + "(\\s+|$)");
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
function _computedStyle(element, property) {
|
|
function _computedStyle(element, property) {
|
|
|
return document.defaultView.getComputedStyle(element, '')[property];
|
|
return document.defaultView.getComputedStyle(element, '')[property];
|
|
|
}
|
|
}
|