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
this.$jb.Loader._scope(). | |
_require('$jb/$G.Function.js'). | |
_require('$jb/OOP.js'). | |
_require('http.node'). | |
_require('$jb/exceptions.js'). | |
_require('$jb/$jb.Url.js'). | |
_require('$jb/$jb.Net.Base.js'). | |
_willDeclared('$jb/$jb.Net.HTTPClient.js'). | |
_completed(function($G, $jb){ |
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 _abs = Math.abs; | |
var _floor = Math.floor; | |
var _rand = Math.random; | |
_speedTest( | |
[ | |
function(n) | |
{ | |
var i = n; while(i--) |
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 _abs = Math.abs; | |
_speedTest( | |
[ | |
function(n) | |
{ | |
var a = 0; | |
var i = n; while(i--) | |
{ |
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
// cache from global scope | |
var _parseInt = this.parseInt; | |
_speedTest( | |
[ | |
function(n) | |
{ | |
var r, g, b, s = '#aabbcc'; | |
var i = n; while(i--) | |
{ |
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
/** | |
@file | |
@author Fyodorov "bga" Alexander <[email protected]> | |
@section LICENSE | |
Copyright (c) 2009-2010, Fyodorov "Bga" Alexander <[email protected]> | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without |
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
window.onunload = function() | |
{ | |
var _check = function(lbl) | |
{ | |
var a; | |
if(window.document && document.body) | |
a = 'body'; | |
else if(window.document && document.documentElement) | |
a = 'documentElement'; |
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
window._gzip = (function() | |
{ | |
var _matchCount = function(s, word) | |
{ | |
var n = 0, wordLen = word.length, p = -wordLen; | |
while((p = s.indexOf(word, p + wordLen)) > -1) | |
++n; | |
return n; |
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
/** | |
@fn call function with <this> = <that> and <arguments> matched from <argMap> by names | |
@param that {Any} <this> for function call | |
@param argMap {Object} map argName -> argValue | |
@example | |
var _fn = function(a, b, c) | |
{ | |
console.log('a = ', a, 'b = ', b, 'с = ', c); | |
}; |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<!-- code has grubbed from http://msdn.microsoft.com/en-us/library/ms532990(VS.85).aspx --> | |
<html> | |
<head> | |
<title></title> | |
<meta content="text/html; charset=utf-8" http-equiv="content-type"> | |
<SCRIPT> |
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
/* No regexp. indexOf only */ | |
window._queryToJSON = function(query) | |
{ | |
if(query == null || query.length < 2) | |
return {}; | |
var p = 0; | |
if(query.charAt(p) == '?') | |
++p; |