diff options
author | Nivesh Rajbhandari | 2012-04-17 11:10:10 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-04-17 11:10:10 -0700 |
commit | 6d3af6cb9dc8223102854ad95a5c4c501fc62c8b (patch) | |
tree | 07afdbeacd26f01414933d5b3318786cec30f4a8 /js/panels/history-panel/history-item.reel/history-item.js | |
parent | 2a87a750f06003fc62e8e0e73983e14ce24fc7a7 (diff) | |
parent | cacb4a21825818af392c2949967b0f3c1df509c5 (diff) | |
download | ninja-6d3af6cb9dc8223102854ad95a5c4c501fc62c8b.tar.gz |
Merge branch 'refs/heads/ninja-internal' into WebGLFixes
Diffstat (limited to 'js/panels/history-panel/history-item.reel/history-item.js')
-rw-r--r-- | js/panels/history-panel/history-item.reel/history-item.js | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/js/panels/history-panel/history-item.reel/history-item.js b/js/panels/history-panel/history-item.reel/history-item.js new file mode 100644 index 00000000..8a6e7654 --- /dev/null +++ b/js/panels/history-panel/history-item.reel/history-item.js | |||
@@ -0,0 +1,32 @@ | |||
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 | Component = require("montage/ui/component").Component; | ||
9 | |||
10 | exports.HistoryItem = Montage.create(Component, { | ||
11 | _title: { | ||
12 | value: null | ||
13 | }, | ||
14 | |||
15 | title: { | ||
16 | get: function() { | ||
17 | return this._title; | ||
18 | }, | ||
19 | set: function(value) { | ||
20 | if(value !== this._title) { | ||
21 | this._title = value; | ||
22 | this.needsDraw = true; | ||
23 | } | ||
24 | } | ||
25 | }, | ||
26 | |||
27 | draw: { | ||
28 | value: function() { | ||
29 | this.element.innerHTML = this.title; | ||
30 | } | ||
31 | } | ||
32 | }); \ No newline at end of file | ||