diff options
author | Jose Antonio Marquez | 2012-02-29 15:15:51 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-02-29 15:15:51 -0800 |
commit | b0b4a1ee6792d98f06cbd8ecf5291e66db8a4eef (patch) | |
tree | 5978eb8742df65de0e0b98454bfc04c2b4cac6e7 /js/components/layout/bread-crumb-button.reel/bread-crumb-button.js | |
parent | 3a25881b3a463e4f695be2f663f141710ba1d1c1 (diff) | |
parent | b09956e4a9a35c5588cc7cd1f01efb617cbe0884 (diff) | |
download | ninja-b0b4a1ee6792d98f06cbd8ecf5291e66db8a4eef.tar.gz |
Merge branch 'refs/heads/Ninja-Internal' into Color
Conflicts:
js/controllers/elements/shapes-controller.js
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 | 51 |
1 files changed, 0 insertions, 51 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 3f5b87e1..00000000 --- a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.js +++ /dev/null | |||
@@ -1,51 +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 | prepareForDraw: { | ||
21 | value: function() { | ||
22 | this.element.addEventListener("mousedown", this, false); | ||
23 | } | ||
24 | }, | ||
25 | |||
26 | draw: { | ||
27 | value: function() { | ||
28 | if(this.data.element.id === "UserContent") { | ||
29 | this.button.innerHTML = "Body"; | ||
30 | } else { | ||
31 | this.button.innerHTML = this.data.element.nodeName; | ||
32 | } | ||
33 | } | ||
34 | }, | ||
35 | |||
36 | handleMousedown: { | ||
37 | value: function(event) { | ||
38 | |||
39 | //this.data.selected=true; | ||
40 | NJevent('breadCrumbTrail',this.data); | ||
41 | //this.data.selected=false; | ||
42 | |||
43 | } | ||
44 | } | ||
45 | |||
46 | |||
47 | |||
48 | |||
49 | |||
50 | |||
51 | }); \ No newline at end of file | ||