Skip to content

Instantly share code, notes, and snippets.

@markstickley
markstickley / gist:c1bc6663cbe36bc0d46e
Last active August 29, 2015 14:16
systemjs-builder optimizeBuild function spec
var entryPoints = {
entryPoint1Name: 'path/to/entryPoint',
entryPoint2Name: 'path/to/anoher/entryPoint',
entryPoint3Name: 'path/to/aThird/entryPoint'
};
/*
Note: entryPoints can also be an array if you are happy to use default bundle names
E.g.
var entryPoints = [
'path/to/entryPoint',
var ClassName = function(){
if(this === window){
throw new Error('ClassName must always be called with the "new" prefix');
}
this.status = null;
};
background-image: url(../img/logo-bbcid-button.png);
background-image: url(../img/logo-bbcid-button.png),
-webkit-gradient(
linear,
left bottom,
left top,
color-stop(0, rgb(233, 233, 233)),
color-stop(0.5, rgb(249, 249, 249)),
color-stop(0.5, rgb(255, 255, 255)),
color-stop(1, rgb(255, 255, 255))
exception 'BBC_Spectrum_Exception' with message 'method 'debugEmailData' does not exist (Plugin by name 'DebugEmailData' was not found in the registry; used paths:
users_View_Helper_: /mnt/hgfs/workspace/identity/webapp/php/modules/users/views/helpers/
Zend_View_Helper_: /usr/share/php/Zend/View/Helper/
BBC_Identity_View_Helper_: /mnt/hgfs/workspace/identity/webapp/php/sharedlib/BBC/Identity/View/Helper/:/usr/share/php/BBC/Identity/View/Helper/:/mnt/hgfs/workspace/identity/webapp/php/lib/BBC/Identity/View/Helper/)' in /mnt/hgfs/workspace/identity/webapp/php/modules/users/views/base.spv:178
Stack trace:
#0 /usr/share/php/BBC/Spectrum/View.php(198): BBC_Spectrum_Template->throwException('method 'debugEm...', '/var/cache/bbc-...', 178)
#1 [internal function]: BBC_Spectrum_View->__call('debugEmailData', Array)
#2 /var/cache/bbc-pal-library-spectrum/templates/identity/modules/users/BBC/Spectrum/Generated/identity/users/dash/base_dot_spv.php(214): BBC_Spectrum_Generated_identity_users_dash_index__dot_spv->debugEmai
@markstickley
markstickley / Javascript variable exposing
Created October 19, 2010 10:22
Is this even possible?
var object = function(){
var foo = 'bar';
var woo = 'yay';
var r = {};
r.getVar = function(name){
// ???
};
return r;