Skip to content

Instantly share code, notes, and snippets.

@sebmarkbage
Forked from steida/gist:192098
Created September 23, 2009 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebmarkbage/192107 to your computer and use it in GitHub Desktop.
Save sebmarkbage/192107 to your computer and use it in GitHub Desktop.
IF MyLocalArrayCopy.js IS INCLUDED USE THAT, OTHERWISE FAIL
Sheer({
require: 'urn:Sheer:Lang:Array'
}, function(Array){
});
IF MyLocalArrayCopy.js IS INCLUDED USE THAT, OTHERWISE LOAD FROM CDN
Sheer({
require: 'http://cdn.sheer.org/Lang/Array.js'
}, function(Array){
});
PRELOADING REQUIRED:
Sheer({
original: 'urn:Sheer:Lang:Array',
require: {
'urn:Sheer:Lang': ['Type', 'Object', 'Function']
}
}, function(Type, Object, Function) {
PRELOADING OPTIONAL:
Sheer({
original: 'http://cdn.sheer.org/Lang/Array.js',
require: {
'http://cdn.sheer.org/Lang/': ['Type.js', 'Object.js', 'Function.js']
}
}, function(Type, Object, Function)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment