UNPKG

aurelia-onsenui

Version:
28 lines (19 loc) 1 kB
define(['exports', 'aurelia-dependency-injection', 'aurelia-pal', 'aurelia-templating', 'aurelia-router'], function (exports, _aureliaDependencyInjection, _aureliaPal, _aureliaTemplating, _aureliaRouter) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.OnsBackButton = undefined; var _dec, _dec2, _class; var OnsBackButton = exports.OnsBackButton = (_dec = (0, _aureliaTemplating.customElement)('ons-back-button'), _dec2 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _aureliaRouter.Router), _dec(_class = (0, _aureliaTemplating.noView)(_class = _dec2(_class = function () { function OnsBackButton(element, router) { this.router = router; this.element = element; this.element.onClick = this.onClick.bind(this); } OnsBackButton.prototype.onClick = function onClick() { this.router.navigateBack(); }; return OnsBackButton; }()) || _class) || _class) || _class); });