Rename 'window' module to 'browser_window' module. Fix #3.

This commit is contained in:
Cheng Zhao 2013-05-15 19:19:35 +08:00
parent f477ec09c0
commit 072ac8ba0b
7 changed files with 15 additions and 15 deletions

View file

@ -2,7 +2,7 @@ var app = require('app');
var delegate = require('atom_delegate');
var ipc = require('ipc');
var Menu = require('menu');
var Window = require('window');
var BrowserWindow = require('browser_window');
var mainWindow = null;
var menu = null;
@ -13,7 +13,7 @@ app.on('window-all-closed', function() {
});
delegate.browserMainParts.preMainMessageLoopRun = function() {
mainWindow = new Window({ width: 800, height: 600 });
mainWindow = new BrowserWindow({ width: 800, height: 600 });
mainWindow.loadUrl('file://' + __dirname + '/index.html');
mainWindow.on('page-title-updated', function(event, title) {