Created
May 27, 2016 01:57
-
-
Save goofmint/3130009bc6cf28e6272a5c380b8af2e6 to your computer and use it in GitHub Desktop.
This file contains 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
(function($) { | |
var pageController = { | |
__name: 'sample.PageController', | |
__templates: 'template/sample-template.ejs', | |
_dividedBoxController: h5.ui.container.DividedBox, | |
_appPurchaseManagerController: sample.AppPurchaseManagerController, | |
appRootDividedBox: h5.ui.container.DividedBox, | |
__meta: { | |
_appPurchaseManagerController: { | |
rootElement: '.appRoot' | |
} | |
}, | |
__postInit: function() { | |
// ヘッダ直後のdividerは非表示 | |
this._dividedBoxController.hideDivider(0); | |
}, | |
'{window} resize': function() { | |
this._dividedBoxController.refresh(); | |
} | |
}; | |
h5.core.expose(pageController); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment