a zip code crypto-currency system good for red ONLY

page-transition.js 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. var __extends = (this && this.__extends) || (function () {
  2. var extendStatics = Object.setPrototypeOf ||
  3. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  4. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  5. return function (d, b) {
  6. extendStatics(d, b);
  7. function __() { this.constructor = d; }
  8. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  9. };
  10. })();
  11. (function (factory) {
  12. if (typeof module === "object" && typeof module.exports === "object") {
  13. var v = factory(require, exports);
  14. if (v !== undefined) module.exports = v;
  15. }
  16. else if (typeof define === "function" && define.amd) {
  17. define(["require", "exports", "../animations/animation", "./transition"], factory);
  18. }
  19. })(function (require, exports) {
  20. "use strict";
  21. Object.defineProperty(exports, "__esModule", { value: true });
  22. var animation_1 = require("../animations/animation");
  23. var transition_1 = require("./transition");
  24. /**
  25. * @hidden
  26. */
  27. var PageTransition = (function (_super) {
  28. __extends(PageTransition, _super);
  29. function PageTransition() {
  30. return _super !== null && _super.apply(this, arguments) || this;
  31. }
  32. PageTransition.prototype.init = function () {
  33. var _this = this;
  34. if (this.enteringView) {
  35. this.enteringPage = new animation_1.Animation(this.plt, this.enteringView.pageRef());
  36. this.add(this.enteringPage.beforeAddClass('show-page'));
  37. // Resize content before transition starts
  38. this.beforeAddRead(function () {
  39. _this.enteringView.readReady.emit();
  40. });
  41. this.beforeAddWrite(function () {
  42. _this.enteringView.writeReady.emit();
  43. });
  44. }
  45. };
  46. PageTransition.prototype.destroy = function () {
  47. _super.prototype.destroy.call(this);
  48. this.enteringPage && this.enteringPage.destroy();
  49. this.enteringPage = null;
  50. };
  51. return PageTransition;
  52. }(transition_1.Transition));
  53. exports.PageTransition = PageTransition;
  54. });
  55. //# sourceMappingURL=page-transition.js.map