Index: trunk/parsers/wikidom/lib/synth/views/es.SurfaceView.js |
— | — | @@ -43,7 +43,7 @@ |
44 | 44 | // Resize |
45 | 45 | var surfaceView = this; |
46 | 46 | $(window).resize( function() { |
47 | | - var width = surface.$.width(); |
| 47 | + var width = surfaceView.$.width(); |
48 | 48 | if ( surfaceView.width !== width ) { |
49 | 49 | surfaceView.width = width; |
50 | 50 | surfaceView.documentView.renderContent(); |
— | — | @@ -51,7 +51,7 @@ |
52 | 52 | } ); |
53 | 53 | |
54 | 54 | // MouseDown on surface |
55 | | - this.view.$.bind( { |
| 55 | + this.$.bind( { |
56 | 56 | 'mousedown' : function(e) { |
57 | 57 | return surfaceView.onMouseDown( e ); |
58 | 58 | } |
— | — | @@ -60,7 +60,7 @@ |
61 | 61 | // Hidden input |
62 | 62 | var $document = $(document); |
63 | 63 | this.$input = $( '<input class="editSurface-input" />' ) |
64 | | - .prependTo( this.view.$ ) |
| 64 | + .prependTo( this.$ ) |
65 | 65 | .bind( { |
66 | 66 | 'focus' : function() { |
67 | 67 | $(document).bind({ |