Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #862 from accessibleweb/patch-1
Browse files Browse the repository at this point in the history
Update chaplin.layout.md
  • Loading branch information
paulmillr committed Jun 29, 2015
2 parents e81fc49 + 130b3be commit d3a563c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/chaplin.layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,20 +72,20 @@ events: {
}
```

To open all external links (different hostname) in a new window, you can set `openExternalLinksInNewWindow` to true when initializing `Chaplin.Layout` in your `Application`:
To open all external links (different hostname) in a new window, you can set `openExternalToBlank` to true when initializing `Chaplin.Layout` in your `Application`:

```coffeescript
class MyApplication extends Chaplin.Application
initialize: ->
# ...
@initLayout openExternalLinksInNewWindow: true
@initLayout openExternalToBlank: true
```

```javascript
var MyApplication = Chaplin.Application.extend({
initialize: function() {
// ...
this.initLayout({openExternalLinksInNewWindow: true});
this.initLayout({openExternalToBlank: true});
}
});
```
Expand Down

0 comments on commit d3a563c

Please sign in to comment.