diff options
Diffstat (limited to 'js/components/layout/bread-crumb-button.reel/bread-crumb-button.js')
-rwxr-xr-x | js/components/layout/bread-crumb-button.reel/bread-crumb-button.js | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.js b/js/components/layout/bread-crumb-button.reel/bread-crumb-button.js deleted file mode 100755 index c1ac99bd..00000000 --- a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.js +++ /dev/null | |||
@@ -1,59 +0,0 @@ | |||
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.BreadcrumbButton = Montage.create(Component, { | ||
11 | |||
12 | button: { | ||
13 | value: null | ||
14 | }, | ||
15 | |||
16 | data: { | ||
17 | value: null | ||
18 | }, | ||
19 | |||
20 | // Bound container for the button | ||
21 | container: { | ||
22 | value: null | ||
23 | }, | ||
24 | |||
25 | prepareForDraw: { | ||
26 | value: function() { | ||
27 | this.element.addEventListener("mousedown", this, false); | ||
28 | } | ||
29 | }, | ||
30 | |||
31 | draw: { | ||
32 | value: function() { | ||
33 | |||
34 | // Temporary until we have the new template | ||
35 | /* | ||
36 | if(this.container.id === "UserContent") { | ||
37 | this.button.innerHTML = "Body"; | ||
38 | } else { | ||
39 | this.button.innerHTML = this.container.nodeName.toLowerCase(); | ||
40 | } | ||
41 | */ | ||
42 | // | ||
43 | |||
44 | if(this.data.element.id === "UserContent") { | ||
45 | this.button.innerHTML = "Body"; | ||
46 | } else { | ||
47 | this.button.innerHTML = this.data.element.nodeName; | ||
48 | } | ||
49 | |||
50 | } | ||
51 | }, | ||
52 | |||
53 | handleMousedown: { | ||
54 | value: function(event) { | ||
55 | NJevent('breadCrumbTrail',this.data); | ||
56 | } | ||
57 | } | ||
58 | |||
59 | }); \ No newline at end of file | ||