Skip to content

Instantly share code, notes, and snippets.

@sdolard
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save sdolard/4bedd106c5283dfbfe69 to your computer and use it in GitHub Desktop.

Select an option

Save sdolard/4bedd106c5283dfbfe69 to your computer and use it in GitHub Desktop.
File split
Nws.Utils.Common.doFoo = function() {
console.log("doFooCommon");
}
Nws.Utils.doFoo = Nws.Utils[TARGET].doFoo;
Nws.Utils.Multisite.doFoo = function () {
Nws.Utils.Common.doFoo();
console.log("doFoo");
}
Nws.Utils.Standalone.doFoo = function () {
Nws.Utils.Common.doFoo();
console.log("doFoo");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment