document.title is set as the window title

This commit is contained in:
Corey Johnson 2012-03-09 11:02:08 -08:00
parent 99f659fd58
commit 8e97fbd5ed
4 changed files with 10 additions and 8 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
<data>
<int key="IBDocument.SystemTarget">1060</int>
<int key="IBDocument.SystemTarget">1070</int>
<string key="IBDocument.SystemVersion">11C74</string>
<string key="IBDocument.InterfaceBuilderVersion">1938</string>
<string key="IBDocument.AppKitVersion">1138.23</string>
@ -40,7 +40,7 @@
<int key="NSWindowBacking">2</int>
<string key="NSWindowRect">{{196, 240}, {637, 578}}</string>
<int key="NSWTFlags">544735232</int>
<string key="NSWindowTitle">Window</string>
<string key="NSWindowTitle"/>
<string key="NSWindowClass">NSWindow</string>
<nil key="NSViewClass"/>
<nil key="NSUserInterfaceItemIdentifier"/>
@ -50,6 +50,7 @@
<string key="NSFrameSize">{637, 578}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
</object>
<string key="NSScreenRect">{{0, 0}, {2560, 1418}}</string>
<string key="NSMaxSize">{10000000000000, 10000000000000}</string>
@ -184,10 +185,6 @@
</object>
<int key="IBDocument.localizationMode">0</int>
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
<real value="1060" key="NS.object.0"/>
</object>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3</string>
<integer value="3000" key="NS.object.0"/>

View File

@ -5,6 +5,8 @@ nakedLoad 'jasmine-focused'
$ = require 'jquery'
document.title = "Benchmark Suite"
$('head').append $$ ->
@link rel: "stylesheet", type: "text/css", href: "static/jasmine.css"
@ -21,4 +23,3 @@ jasmineEnv.specFilter = (spec) -> trivialReporter.specFilter(spec)
require 'benchmark-suite'
jasmineEnv.execute()

View File

@ -5,6 +5,8 @@ nakedLoad 'jasmine-focused'
$ = require 'jquery'
document.title = "Spec Suite"
$('head').append $$ ->
@link rel: "stylesheet", type: "text/css", href: "static/jasmine.css"

View File

@ -166,6 +166,7 @@ class Editor extends View
@screenLineCount() - 1
setBuffer: (@buffer) ->
document.title = @buffer.path
@renderer = new Renderer(@buffer)
@undoManager = new UndoManager(@buffer)
@renderLines()
@ -245,6 +246,7 @@ class Editor extends View
if not @buffer.path
path = $native.saveDialog()
return if not path
document.title = path
@buffer.path = path
@buffer.save()