Created
June 5, 2012 15:04
-
-
Save toddpi314/2875541 to your computer and use it in GitHub Desktop.
MooTools_Class_ManagerSample_Extension
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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