Update deprecated jQuery functions for jquery.cookie.js
This commit is contained in:
parent
6b7b8d7b8e
commit
ebdaaa3f08
|
@ -49,14 +49,14 @@
|
||||||
|
|
||||||
function read(s, converter) {
|
function read(s, converter) {
|
||||||
var value = config.raw ? s : parseCookieValue(s);
|
var value = config.raw ? s : parseCookieValue(s);
|
||||||
return $.isFunction(converter) ? converter(value) : value;
|
return 'function' === typeof converter ? converter(value) : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
var config = $.cookie = function (key, value, options) {
|
var config = $.cookie = function (key, value, options) {
|
||||||
|
|
||||||
// Write
|
// Write
|
||||||
|
|
||||||
if (value !== undefined && !$.isFunction(value)) {
|
if (value !== undefined && 'function' !== typeof value) {
|
||||||
options = $.extend({}, config.defaults, options);
|
options = $.extend({}, config.defaults, options);
|
||||||
|
|
||||||
if (typeof options.expires === 'number') {
|
if (typeof options.expires === 'number') {
|
||||||
|
|
|
@ -474,7 +474,7 @@
|
||||||
* The underlying implementation of `ZeroClipboard.destroy`.
|
* The underlying implementation of `ZeroClipboard.destroy`.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
var _destroy = function() {
|
var _destroy = function() {console.log('zero', ZeroClipboard);
|
||||||
ZeroClipboard.clearData();
|
ZeroClipboard.clearData();
|
||||||
ZeroClipboard.blur();
|
ZeroClipboard.blur();
|
||||||
ZeroClipboard.emit("destroy");
|
ZeroClipboard.emit("destroy");
|
||||||
|
|
Loading…
Reference in New Issue