Skip to content

Instantly share code, notes, and snippets.

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 toddpi314/2875541 to your computer and use it in GitHub Desktop.
Save toddpi314/2875541 to your computer and use it in GitHub Desktop.
MooTools_Class_ManagerSample_Extension
var IntroductionView = new Class({
Extends: CoreView,
initialize: function() {},
// Override the Parent Load method and do some custom load tasks
load: function(successCallback, failureCallback) {
this.parent(function() {
// do custom load tasks
if (successCallback != null) successCallback();
}, failureCallback);
},
// Custom behavior specific to this type
showIntroScreen: function() {
// Do some work
}
});
var WizardView = new Class({
Extends: CoreView,
initialize: function() {},
// Override the Parent Load method and do some custom load tasks
load: function(successCallback, failureCallback) {
this.parent(function() {
// do custom load tasks
if (successCallback != null) successCallback();
}, failureCallback);
},
// Custom behavior specific to this type
transitionWizardStep: function() {
// Do some work
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment