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
applyPolyfills();var $S_polyfill$0 = Symbol["__polyfill__"];var $S_SET$0, $S_GET$0, $isSymbol$0;if($S_polyfill$0){$S_SET$0 = $S_polyfill$0["__setObjectSetter__"];$S_GET$0 = $S_polyfill$0["__setObjectGetter__"];$isSymbol$0 = $S_polyfill$0["__isSymbol__"];$S_polyfill$0 = true;}else {$S_polyfill$0 = false} | |
var private1 = Symbol();var $S$0 = $S_polyfill$0 && typeof private1 === 'object' && $isSymbol$0(private1); | |
var private2 = Symbol();var $S$1 = $S_polyfill$0 && typeof private2 === 'object' && $isSymbol$0(private2); | |
var publicProp1 = 'public_prop1'; | |
var publicProp2 = (function(){return 'public_prop1'})();var $S$2 = $S_polyfill$0 && typeof publicProp2 === 'object' && $isSymbol$0(publicProp2); | |
function createSymbolOrObject(createSymbol){ return createSymbol ? Symbol() : {} }; | |
{// simple | |
var obj = {}, obj1 = {}; |
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
void function() {//closure | |
var global = this | |
, _initKeyboardEvent_type = (function( e ) { | |
try { | |
e.initKeyboardEvent( | |
"keyup" // in DOMString typeArg | |
, false // in boolean canBubbleArg | |
, false // in boolean cancelableArg | |
, global // in views::AbstractView viewArg |
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
var _hasOwnProperty = Object.prototype.hasOwnProperty; | |
if(!Element.prototype.matchesSelector) { | |
Element.prototype.matchesSelector = | |
Element.prototype.matches || | |
Element.prototype.webkitMatchesSelector || | |
Element.prototype.mozMatchesSelector || | |
Element.prototype.msMatchesSelector || | |
Element.prototype.oMatchesSelector || function(selector) { | |
if(!selector)return false; |
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
/** | |
* Склонение существительных | |
* Правильная форма cуществительного рядом с числом (счетная форма). | |
* | |
* @example declension("файл", "файлов", "файла", 0);//returns "файлов" | |
* @example declension("файл", "файлов", "файла", 1);//returns "файл" | |
* @example declension("файл", "файлов", "файла", 2);//returns "файла" | |
* | |
* @param {string} oneNominative единственное число (именительный падеж) | |
* @param {string} severalGenitive множественное число (родительный падеж) |
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
//////////////////////////////////////////////////////////////////////////////// | |
// Author: Thaddee Tyl 2012. | |
// The following work is under CC0. | |
void function() { | |
// Hook the polyfill. | |
Element.prototype._scrollIntoView = function scrollIntoView(options) { | |
if( !this.ownerDocument )return; | |
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
/** @license MIT License (c) copyright Egor Halimonenko (termi1uc1@gmail.com) */ | |
// ==ClosureCompiler== | |
// @compilation_level ADVANCED_OPTIMIZATIONS | |
// @warning_level VERBOSE | |
// @jscomp_warning missingProperties | |
// @output_file_name a.js.querySelector.min.js | |
// @check_types | |
// ==/ClosureCompiler== |
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 findMicrodataProperties(itemScopeNode, itemPropName) { | |
if( !itemScopeNode.hasAttribute("itemscope") ) { | |
return[]; | |
} | |
var pending = [] | |
, tmp | |
, currentNode | |
, k = -1 | |
, el |
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
/** github.com/termi/CSS.supports */ | |
if( !global.CSS || !global.CSS.supports ) { | |
if( !global.CSS ) { | |
/** | |
* @expose | |
*/ | |
global.CSS = {}; | |
} | |
if( !global.CSS.supports && global["supportsCSS"] ) {// Opera 12.10 impl |
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
void function() { | |
"use strict"; | |
var global = this; | |
//Mini alternative https://gist.github.com/2428561 | |
//Uses | |
//https://gist.github.com/1384398 | |
//https://gist.github.com/1235332 |
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() { | |
var _Array_slice_ = Array.prototype['slice']; | |
var _Array_splice_ = Array.prototype.splice; | |
if( Function.prototype.bind === void 0 ) Function.prototype.bind = function (context) { | |
var args = _Array_slice_.call(arguments, 1), self = this; | |
return function (){ return self.apply(context, args.concat(_Array_slice_.call(arguments, 0))); }; | |
}; | |
function makeArray(l) { |
NewerOlder