mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Using single Model class require
This commit is contained in:
@@ -10,16 +10,11 @@ _ = require 'underscore-plus'
|
||||
{CompositeDisposable, Emitter} = require 'event-kit'
|
||||
fs = require 'fs-plus'
|
||||
{convertStackTrace, convertLine} = require 'coffeestack'
|
||||
|
||||
Model = require './model'
|
||||
{$} = require './space-pen-extensions'
|
||||
WindowEventHandler = require './window-event-handler'
|
||||
StylesElement = require './styles-element'
|
||||
|
||||
if includeDeprecations
|
||||
{Model} = require 'theorist'
|
||||
else
|
||||
Model = require './model'
|
||||
|
||||
# Essential: Atom global for dealing with packages, themes, menus, and the window.
|
||||
#
|
||||
# An instance of this class is always available as the `atom` global.
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
Grim = require 'grim'
|
||||
if Grim.includeDeprecations
|
||||
module.exports = require('theorist').Model
|
||||
return
|
||||
|
||||
PropertyAccessors = require 'property-accessors'
|
||||
|
||||
nextInstanceId = 1
|
||||
|
||||
Reference in New Issue
Block a user