diff options
author | Armen Kesablyan | 2012-03-15 15:14:28 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-03-15 15:14:28 -0700 |
commit | 725bb869618b9e0ebb2820a24bca5d1cf53a4810 (patch) | |
tree | a89562f07ff974a518da88689e49b0c958d567c8 /js | |
parent | 089534a80c64226bf7d124ab9147afce386fdb5c (diff) | |
download | ninja-725bb869618b9e0ebb2820a24bca5d1cf53a4810.tar.gz |
Initial Data Binding Mediator
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js')
-rw-r--r-- | js/mediators/binding-mediator.js | 14 | ||||
-rwxr-xr-x | js/mediators/keyboard-mediator.js | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/js/mediators/binding-mediator.js b/js/mediators/binding-mediator.js new file mode 100644 index 00000000..10d3f7c6 --- /dev/null +++ b/js/mediators/binding-mediator.js | |||
@@ -0,0 +1,14 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | |||
7 | var Montage = require("montage/core/core").Montage; | ||
8 | var Component = require("montage/ui/component").Component; | ||
9 | |||
10 | exports.bindingMediator = Montage.create(Component, { | ||
11 | |||
12 | |||
13 | |||
14 | }); \ No newline at end of file | ||
diff --git a/js/mediators/keyboard-mediator.js b/js/mediators/keyboard-mediator.js index 65dd34cd..85a46739 100755 --- a/js/mediators/keyboard-mediator.js +++ b/js/mediators/keyboard-mediator.js | |||
@@ -203,6 +203,8 @@ exports.KeyboardMediator = Montage.create(Component, { | |||
203 | } | 203 | } |
204 | 204 | ||
205 | 205 | ||
206 | |||
207 | |||
206 | if((evt.keyCode == Keyboard.ENTER) && (evt.ctrlKey || evt.metaKey)) { | 208 | if((evt.keyCode == Keyboard.ENTER) && (evt.ctrlKey || evt.metaKey)) { |
207 | this.application.ninja.executeChromePreview(); | 209 | this.application.ninja.executeChromePreview(); |
208 | return; | 210 | return; |