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
YUI.add("module1", function(Y) { | |
// Module code here | |
}, "0.0.1", { requires: ["module2"] }); |
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 Test = function(){} | |
Test.prototype = { | |
get foo() { | |
return 0; | |
}, | |
set foo(val) { | |
return val; | |
}, | |
} |
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 file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by Apache CouchDB configure 1.0.2, which was | |
generated by GNU Autoconf 2.61. Invocation command line was | |
$ ./configure --prefix=/usr/local/Cellar/couchdb/1.0.2 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc --with-erlang=/usr/local/lib/erlang/usr/include --with-js-include=/usr/local/include --with-js-lib=/usr/local/lib | |
## --------- ## | |
## Platform. ## |
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
browser.loadJsSelector = function() { | |
return browser.addLocationStrategy("js", function(locator, inWindow, inDocument) { | |
var found; | |
try { | |
found = eval(locator); | |
} catch (e) {} | |
if (found) | |
return found; | |
else |
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 pasv, pasvReqs; | |
pasvReqs = function(next, stop) { | |
pasv = next; | |
}; | |
pasvReqs(self.processPasv, function(err) { console.log(err) }); | |
var processPasv = function(pasvData) { | |
console.log("PASVDATA", pasvData); |
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
S = require("./support/jsftp/support/streamer/core"); | |
function queue() { | |
var next; | |
var buffer = Array.prototype.slice.call(arguments) | |
function stream($, stop) { next = $; stream._update() } | |
stream._update = function _update() { | |
buffer.push.apply(buffer, arguments) |
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
From ebb10691764938adec189da0e9f73e03a4291b2c Mon Sep 17 00:00:00 2001 | |
From: Sergi Mansilla <[email protected]> | |
Date: Wed, 14 Sep 2011 14:35:50 +0200 | |
Subject: [PATCH] Small optimizations | |
--- | |
jsftp.js | 22 +++++++++++++++------- | |
1 files changed, 15 insertions(+), 7 deletions(-) | |
diff --git a/jsftp.js b/jsftp.js |
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 HugeAnimal(name) { | |
Animal.apply(this, arguments) | |
} | |
HugeAnimal.prototype = new Animal | |
HugeAnimal.prototype.constructor = HugeAnimal | |
HugeAnimal.prototype.toString = function() { | |
return 'im ' + this.name + ' a ******* huge animal' | |
} |
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 __reduce= function (func, list, initial) { | |
if (initial != null) { | |
var value = initial; | |
var idx = 0; | |
} else if (list) { | |
var value = list[0]; | |
var idx = 1; | |
} else { | |
return null; | |
} |
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.prototype.runOnBackgroundThread = function (aCallback) { | |
var _blob = new Blob(['onmessage = '+this.toString()],{"type":"text/javascript"}); | |
var _worker = new Worker((webkitURL.createObjectURL || URL.createObjectURL)(_blob)); | |
_worker.onmessage = aCallback; | |
_worker.postMessage(); | |
} | |
var _test = function () { | |
postMessage((1+1).toString()); | |
} |