I want to use YUI inside of a WebWorker thread. Flickr recently wrote a post on this very topic, Web workers and YUI.
But I want to use YUI's CDN, which WebWorkers prevent because it enforces a same-origin policy with importScripts()
YUI.add("gw2-template-home-carousel", function(Y) { | |
var tmpl = Y.Handlebars.template(function (Handlebars,depth0,helpers,partials,data) { | |
helpers = helpers || Handlebars.helpers; partials = partials || Handlebars.partials; | |
var buffer = "", stack1, stack2, foundHelper, tmp1, self=this, functionType="function", blockHelperMissing=helpers.blockHelperMissing; | |
function program1(depth0,data) { | |
var buffer = "", stack1; | |
buffer += "\r\n <ol>\r\n "; | |
foundHelper = helpers.items; |
/*! | |
Copyright (c) 2012 Ryan Grove. All rights reserved. | |
Redistribution and use of this software in source and binary forms, with or | |
without modification, are permitted provided that the following conditions are | |
met: | |
* Redistributions of source code must retain the above copyright notice, this | |
list of conditions and the following disclaimer. |
# A bunch of the stuff above relies on this, especially the aliases. | |
[user] | |
# you probably want to change this bit. | |
name = isaacs | |
email = i@izs.me | |
signingkey = 0x6C481CF6 | |
[alias] | |
ci = commit | |
st = status | |
br = branch |
ResetExtension = function(){}; | |
ResetExtension.prototype = { | |
reset : function(name, options) { | |
var self = this, | |
attributes = {}; | |
//allow old-style string name/string name + options/just options | |
if(Y.Lang.isString(name)) { | |
attributes[name] = self._state.get(name, "initValue"); | |
} else if(Y.Lang.isObject(name)) { |
I want to use YUI inside of a WebWorker thread. Flickr recently wrote a post on this very topic, Web workers and YUI.
But I want to use YUI's CDN, which WebWorkers prevent because it enforces a same-origin policy with importScripts()
{ | |
"align_indent": false, | |
"alignment_chars": | |
[ | |
"=", | |
":" | |
], | |
"alignment_space_chars": | |
[ | |
"=" |
#!/usr/bin/env node | |
var fs = require('fs'), | |
path = require('path'), | |
yui_module = process.argv[2] ? path.join(process.cwd(), process.argv[2]) : 'yui', | |
output = process.argv[3], | |
EXCLUDE_FILTERS = [ | |
/^cookie/, |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC | |
"-//Apple//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>homebrew.mxcl.bitlbee</string> | |
<key>ProgramArguments</key> | |
<array> |