UNPKG

electron-devtools-vendor

Version:

<div align="center"> <h2>electron-devtools-vendor</h2> <img alt="MIT" src="https://img.shields.io/github/license/BlackHole1/electron-devtools-vendor?color=9cf&style=flat-square"> <img alt="GitHub repo size" src="https://img.shields.io/github/r

24 lines (16 loc) 685 B
/* View activated when the application isn't in debug mode, allowing to activate it. */ define(["backbone", "underscore", "jquery", "views/View", "templates/debugDisabled"], function(Backbone, _, $, View, template) { var DebugDisabledView = View.extend({ template: template, initialize: function(options) { View.prototype.initialize.apply(this, arguments); this.render(); }, render: function() { this.el.innerHTML = this.template(); // DON'T use this.$el.html() because it removes the jQuery event handlers of existing sub-views return this; } }); return DebugDisabledView; });