Skip to content

Instantly share code, notes, and snippets.

@jeffmcfadden
Created March 25, 2010 17:45
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 jeffmcfadden/343877 to your computer and use it in GitHub Desktop.
Save jeffmcfadden/343877 to your computer and use it in GitHub Desktop.
if (typeof Object.create !== 'function') {
Object.create = function (o) {
var F = function() {};
F.prototype = o;
return new F();
};
}
var CarouselBase = function(){};
CarouselBase.prototype.cycle_interval = 15000;
CarouselBase.prototype.cycle = function(){};
CarouselBase.prototype.transition_main_section = function(){};
CarouselBase.prototype.transition_indicator = function(){};
var DGMainHero = Object.create(CarouselBase);
console.log( DGMainHero );
console.log( DGMainHero.cycle_interval );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment