aboutsummaryrefslogtreecommitdiff
path: root/js/panels/history-panel/history-item.reel/history-item.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-04-20 10:44:02 -0700
committerJose Antonio Marquez2012-04-20 10:44:02 -0700
commit0b7848540a7ca84b7c67821fedc275cf243eff2f (patch)
treea26b2986d412a02eb93fc7fa1b0f495cab40e757 /js/panels/history-panel/history-item.reel/history-item.js
parent154d1a8fdbbe050dbfc97cd13baa8981d8fc1e47 (diff)
parent8a546291a9d0de3bda1a7765ae9008f2ad052bba (diff)
downloadninja-0b7848540a7ca84b7c67821fedc275cf243eff2f.tar.gz
Merge branch 'refs/heads/Ninja-Internal' into FileIO
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.js32
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>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No 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
7var Montage = require("montage/core/core").Montage,
8 Component = require("montage/ui/component").Component;
9
10exports.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