This file contains hidden or 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
var Format = (function () { | |
"use strict"; | |
var toCamelCase, toHyphenated; | |
toCamelCase = (function () { | |
var re, ret; | |
re = /-([a-z])/g; | |
ret = function (str) { | |
str = str.replace(re, function (match, lower) { |
This file contains hidden or 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
var RemoveDuplicates = (function () { | |
"use strict"; | |
var inPlace, getCopy; | |
inPlace = function (arr) { | |
var i, j, cur, found; | |
for (i = arr.length - 1; i >= 0; i--) { | |
cur = arr[i]; | |
found = false; |
This file contains hidden or 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
var IsInViewport = (function () { | |
"use strict"; | |
var func; | |
func = function (el, par) { | |
var ret, elRect, parRect; | |
elRect = el.getBoundingClientRect(); | |
if (par) { | |
parRect = par.getBoundingClientRect(); |
This file contains hidden or 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
var IsLeapYear = (function () { | |
"use strict"; | |
var func; | |
func = function (year) { | |
return (year % 400) ? ((year % 100) ? ((year % 4) ? false : true) : false) : true; | |
}; | |
return func; |
This file contains hidden or 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
var PadText = (function () { | |
"use strict"; | |
var func; | |
func = function (text, prefix, finalLength) { | |
return (new Array(finalLength).join(prefix.charAt(0)) + text).slice(-finalLength); | |
}; | |
return func; |
This file contains hidden or 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
var animate = (function () { | |
"use strict"; | |
var ret; | |
ret = function (elem, style, unit, from, to, time) { | |
var start, timer; | |
if (!elem) { | |
return; | |
} |
This file contains hidden or 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
var NextElementSibling = (function () { | |
"use strict"; | |
var E, supportsNativeNext, is, traverseAcross, ret; | |
E = document.createElement("div"); | |
supportsNativeNext = ("nextElementSibling" in E && !E.hasOwnProperty("nextElementSibling")); | |
is = (function () { | |
var prefixes, i, j, cur, matchProp, matchFunc; |
This file contains hidden or 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
RegExp.quote = (function () { | |
"use strict"; | |
var ret, re; | |
re = /([.?*+^$[\]\\(){}|-])/g; | |
ret = function (str) { | |
return ("" + str).replace(re, "\\$1"); | |
}; |
This file contains hidden or 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
var Format = (function () { | |
"use strict"; | |
var refToString, toString, re, slice, ret; | |
refToString = {}.toString; | |
toString = function (p) { | |
return refToString.call(p); | |
}; | |
re = /\{(\d+)\}/g; |