diff options
author | Valerio Virgillito | 2012-05-31 11:06:43 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-31 11:06:43 -0700 |
commit | 19e3d87a8428a44c9edf3df47998c3bfe93b3c90 (patch) | |
tree | 707e789f7e9af3568b262ef3ab113175f0629484 /js/components | |
parent | d04aa0b195826b3b3c70f68aa8aba1be9e30a648 (diff) | |
parent | 6042bdc5f2aada4412912fd01602d32c9088dc26 (diff) | |
download | ninja-19e3d87a8428a44c9edf3df47998c3bfe93b3c90.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into document-bindings-fix
Diffstat (limited to 'js/components')
-rw-r--r-- | js/components/toolbar.reel/toolbar-button.js | 28 | ||||
-rw-r--r-- | js/components/toolbar.reel/toolbar.html | 2 |
2 files changed, 29 insertions, 1 deletions
diff --git a/js/components/toolbar.reel/toolbar-button.js b/js/components/toolbar.reel/toolbar-button.js new file mode 100644 index 00000000..9ada9b29 --- /dev/null +++ b/js/components/toolbar.reel/toolbar-button.js | |||
@@ -0,0 +1,28 @@ | |||
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").Montage, | ||
8 | Component = require("montage/ui/component").Component, | ||
9 | Button = require("montage/ui/button.reel/button").Button; | ||
10 | |||
11 | var ToolbarButton = exports.ToolbarButton = Montage.create(Button, { | ||
12 | hasTemplate : { | ||
13 | value: false | ||
14 | }, | ||
15 | _sourceObject : { | ||
16 | value: null | ||
17 | }, | ||
18 | sourceObject : { | ||
19 | get: function() { | ||
20 | return this._sourceObject; | ||
21 | }, | ||
22 | set: function(value) { | ||
23 | if(value === this._sourceObject) { return; } | ||
24 | |||
25 | this._sourceObject = value; | ||
26 | } | ||
27 | } | ||
28 | }); \ No newline at end of file | ||
diff --git a/js/components/toolbar.reel/toolbar.html b/js/components/toolbar.reel/toolbar.html index d2c5972a..51e7ebec 100644 --- a/js/components/toolbar.reel/toolbar.html +++ b/js/components/toolbar.reel/toolbar.html | |||
@@ -30,7 +30,7 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot | |||
30 | }, | 30 | }, |
31 | 31 | ||
32 | "button": { | 32 | "button": { |
33 | "prototype": "montage/ui/button.reel", | 33 | "prototype": "js/components/toolbar.reel/toolbar-button", |
34 | "properties": { | 34 | "properties": { |
35 | "element": {"#": "button" }, | 35 | "element": {"#": "button" }, |
36 | "label": " " | 36 | "label": " " |