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
function extend() { | |
var args = Array.prototype.slice.call(arguments); | |
var base = args.slice(0, 1)[0]; | |
var objs = args.slice(1); | |
for (var i = 0; i < objs.length; i++) { | |
for (var p in objs[i]) { | |
if (!base[p]) base[p] = objs[i][p]; | |
} | |
} | |
return base; |
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
function getKeys(obj) { | |
if (Object.prototype.toString.call(obj) !== "[object Object]") return; | |
return recurse(obj, []); | |
function recurse(obj, tmp) { | |
for (var p in obj) { | |
if (tmp.indexOf(p) === -1) tmp.push(p); | |
if (Object.prototype.toString.call(obj[p]) === "[object Object]") recurse(obj[p], tmp); | |
} | |
return tmp; | |
} |
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
javascript:!function($){ $(".arrow.up.login-required").each(function(){this.click()}) }(jQuery) |
NewerOlder