Don't extend Model in 1.0 mode

This commit is contained in:
Kevin Sawicki 2015-03-25 18:09:00 -07:00
parent bb53548ba0
commit 8ceb2e2028

View File

@ -16,11 +16,13 @@ fs = require 'fs-plus'
WindowEventHandler = require './window-event-handler'
StylesElement = require './styles-element'
SuperClass = if includeDeprecations then Model else Object
# Essential: Atom global for dealing with packages, themes, menus, and the window.
#
# An instance of this class is always available as the `atom` global.
module.exports =
class Atom extends Model
class Atom extends SuperClass
@version: 1 # Increment this when the serialization format changes
# Load or create the Atom environment in the given mode.
@ -230,7 +232,7 @@ class Atom extends Model
@openDevTools()
@executeJavaScriptInDevTools('InspectorFrontendAPI.showConsole()')
@emit 'uncaught-error', arguments...
@emit 'uncaught-error', arguments... if includeDeprecations
@emitter.emit 'did-throw-error', {message, url, line, column, originalError}
@disposables?.dispose()