diff options
-rw-r--r-- | js/controllers/objects-controller.js | 6 | ||||
-rwxr-xr-x | js/data/tools-data.js | 2 | ||||
-rwxr-xr-x | js/document/templates/html/index.html | 5 | ||||
-rwxr-xr-x | js/document/views/design.js | 3 | ||||
-rw-r--r-- | js/panels/objects/objects-panel.reel/objects-panel.js | 15 | ||||
-rwxr-xr-x | js/stage/binding-view.reel/non-visual-component.reel/non-visual-component.css | 5 | ||||
-rwxr-xr-x | js/stage/binding-view.reel/non-visual-component.reel/non-visual-component.html | 27 | ||||
-rwxr-xr-x | js/stage/binding-view.reel/non-visual-component.reel/non-visual-component.js | 18 | ||||
-rwxr-xr-x | node_modules/montage/core/event/binding.js | 134 |
9 files changed, 59 insertions, 156 deletions
diff --git a/js/controllers/objects-controller.js b/js/controllers/objects-controller.js index 54ff14ba..3e35ef5f 100644 --- a/js/controllers/objects-controller.js +++ b/js/controllers/objects-controller.js | |||
@@ -47,12 +47,6 @@ var objectsController = exports.ObjectsController = Montage.create(Montage, { | |||
47 | Object.deleteBinding(this, 'objects'); | 47 | Object.deleteBinding(this, 'objects'); |
48 | this._isBoundToModelObjects = true; | 48 | this._isBoundToModelObjects = true; |
49 | } | 49 | } |
50 | |||
51 | // Object.defineBinding(this, 'objects', { | ||
52 | // boundObject: this.currentDocument.model, | ||
53 | // boundObjectPropertyPath: 'mObjects', | ||
54 | // oneway: false | ||
55 | // }); | ||
56 | } | 50 | } |
57 | }, | 51 | }, |
58 | 52 | ||
diff --git a/js/data/tools-data.js b/js/data/tools-data.js index fb195bd3..8ed6433e 100755 --- a/js/data/tools-data.js +++ b/js/data/tools-data.js | |||
@@ -47,7 +47,7 @@ exports.ToolsData = Montage.create(Montage, { | |||
47 | value: 12 | 47 | value: 12 |
48 | }, | 48 | }, |
49 | bindingToolIndex: { | 49 | bindingToolIndex: { |
50 | value: 12 | 50 | value: 13 |
51 | }, | 51 | }, |
52 | 52 | ||
53 | // NOTE: additions or removal of any tools, or any changes in the order of these entries requires updating the constant index properties above. | 53 | // NOTE: additions or removal of any tools, or any changes in the order of these entries requires updating the constant index properties above. |
diff --git a/js/document/templates/html/index.html b/js/document/templates/html/index.html index bee2e557..8fc0d82f 100755 --- a/js/document/templates/html/index.html +++ b/js/document/templates/html/index.html | |||
@@ -113,10 +113,7 @@ | |||
113 | <script type="text/montage-serialization" data-ninja-template="true"> | 113 | <script type="text/montage-serialization" data-ninja-template="true"> |
114 | { | 114 | { |
115 | "owner": { | 115 | "owner": { |
116 | "prototype": "main", | 116 | "prototype": "main" |
117 | "properties": { | ||
118 | "identifier": "testOwner" | ||
119 | } | ||
120 | } | 117 | } |
121 | } | 118 | } |
122 | </script> | 119 | </script> |
diff --git a/js/document/views/design.js b/js/document/views/design.js index 6a6f565d..4a75a1b4 100755 --- a/js/document/views/design.js +++ b/js/document/views/design.js | |||
@@ -454,8 +454,7 @@ exports.DesignDocumentView = Montage.create(BaseDocumentView, { | |||
454 | initMontage: { | 454 | initMontage: { |
455 | value: function (scripttags) { | 455 | value: function (scripttags) { |
456 | var self = this; | 456 | var self = this; |
457 | // | 457 | |
458 | //debugger; | ||
459 | this.iframe.contentWindow.document.body.addEventListener('mjsTemplateReady', function () { | 458 | this.iframe.contentWindow.document.body.addEventListener('mjsTemplateReady', function () { |
460 | //Initializing template with user's seriliazation | 459 | //Initializing template with user's seriliazation |
461 | var template = this.iframe.contentWindow.mjsTemplate.create(); | 460 | var template = this.iframe.contentWindow.mjsTemplate.create(); |
diff --git a/js/panels/objects/objects-panel.reel/objects-panel.js b/js/panels/objects/objects-panel.reel/objects-panel.js index a1c381a2..727a09aa 100644 --- a/js/panels/objects/objects-panel.reel/objects-panel.js +++ b/js/panels/objects/objects-panel.reel/objects-panel.js | |||
@@ -23,13 +23,6 @@ exports.ObjectsPanel = Montage.create(Component, { | |||
23 | } | 23 | } |
24 | }, | 24 | }, |
25 | 25 | ||
26 | |||
27 | templateDidLoad: { | ||
28 | value: function() { | ||
29 | console.log('objects panel loaded'); | ||
30 | } | ||
31 | }, | ||
32 | |||
33 | prepareForDraw : { | 26 | prepareForDraw : { |
34 | value: function() { | 27 | value: function() { |
35 | 28 | ||
@@ -40,14 +33,6 @@ exports.ObjectsPanel = Montage.create(Component, { | |||
40 | }); | 33 | }); |
41 | 34 | ||
42 | } | 35 | } |
43 | }, | ||
44 | draw : { | ||
45 | value: function() { | ||
46 | console.log("objects panel draw"); | ||
47 | if(this.objects) { | ||
48 | |||
49 | } | ||
50 | } | ||
51 | } | 36 | } |
52 | 37 | ||
53 | }); \ No newline at end of file | 38 | }); \ No newline at end of file |
diff --git a/js/stage/binding-view.reel/non-visual-component.reel/non-visual-component.css b/js/stage/binding-view.reel/non-visual-component.reel/non-visual-component.css deleted file mode 100755 index 018448f1..00000000 --- a/js/stage/binding-view.reel/non-visual-component.reel/non-visual-component.css +++ /dev/null | |||
@@ -1,5 +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> */ | ||
diff --git a/js/stage/binding-view.reel/non-visual-component.reel/non-visual-component.html b/js/stage/binding-view.reel/non-visual-component.reel/non-visual-component.html deleted file mode 100755 index 10abb38d..00000000 --- a/js/stage/binding-view.reel/non-visual-component.reel/non-visual-component.html +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <!-- <copyright> | ||
3 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
4 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
5 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
6 | </copyright> --> | ||
7 | <html> | ||
8 | <head> | ||
9 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
10 | <link rel="stylesheet" type="text/css" href="non-visual-component.css"> | ||
11 | |||
12 | <script type="text/montage-serialization"> | ||
13 | { | ||
14 | "owner": { | ||
15 | "prototype": "js/stage/binding-view.reel/non-visual-component.reel", | ||
16 | "properties": { | ||
17 | "element": {"#": "nonVisualComponent"} | ||
18 | } | ||
19 | } | ||
20 | } | ||
21 | </script> | ||
22 | |||
23 | </head> | ||
24 | <body> | ||
25 | <div data-montage-id="nonVisualComponent" class="nonVisualComponent">Label for options</div> | ||
26 | </body> | ||
27 | </html> | ||
diff --git a/js/stage/binding-view.reel/non-visual-component.reel/non-visual-component.js b/js/stage/binding-view.reel/non-visual-component.reel/non-visual-component.js deleted file mode 100755 index 2ff2e2f7..00000000 --- a/js/stage/binding-view.reel/non-visual-component.reel/non-visual-component.js +++ /dev/null | |||
@@ -1,18 +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 | /** | ||
8 | @requires montage/core/core | ||
9 | @requires montage/ui/component | ||
10 | */ | ||
11 | var Montage = require("montage/core/core").Montage, | ||
12 | Component = require("montage/ui/component").Component; | ||
13 | |||
14 | exports.NonVisualComponent = Montage.create(Component, { | ||
15 | title: { | ||
16 | value: "value" | ||
17 | } | ||
18 | }); \ No newline at end of file | ||
diff --git a/node_modules/montage/core/event/binding.js b/node_modules/montage/core/event/binding.js index 4206e1c2..4091fe6a 100755 --- a/node_modules/montage/core/event/binding.js +++ b/node_modules/montage/core/event/binding.js | |||
@@ -5,13 +5,13 @@ | |||
5 | </copyright> */ | 5 | </copyright> */ |
6 | 6 | ||
7 | /** | 7 | /** |
8 | @module montage/core/event/binding | 8 | @module montage/core/event/binding |
9 | @requires montage/core/core | 9 | @requires montage/core/core |
10 | @requires montage/core/event/mutable-event | 10 | @requires montage/core/event/mutable-event |
11 | @requires montage/core/serializer | 11 | @requires montage/core/serializer |
12 | @requires montage/core/deserializer | 12 | @requires montage/core/deserializer |
13 | @requires montage/core/event/event-manager | 13 | @requires montage/core/event/event-manager |
14 | */ | 14 | */ |
15 | 15 | ||
16 | var Montage = require("montage").Montage, | 16 | var Montage = require("montage").Montage, |
17 | ChangeNotification = require("core/change-notification").ChangeNotification, | 17 | ChangeNotification = require("core/change-notification").ChangeNotification, |
@@ -23,14 +23,14 @@ var Montage = require("montage").Montage, | |||
23 | UNDERSCORE = "_"; | 23 | UNDERSCORE = "_"; |
24 | 24 | ||
25 | /** | 25 | /** |
26 | @class module:montage/core/event/binding.ChangeEventDispatchingArray | 26 | @class module:montage/core/event/binding.ChangeEventDispatchingArray |
27 | */ | 27 | */ |
28 | var ChangeEventDispatchingArray = exports.ChangeEventDispatchingArray = []; | 28 | var ChangeEventDispatchingArray = exports.ChangeEventDispatchingArray = []; |
29 | 29 | ||
30 | /** | 30 | /** |
31 | @class module:montage/core/event/binding.PropertyChangeBindingListener | 31 | @class module:montage/core/event/binding.PropertyChangeBindingListener |
32 | @extends module:montage/core/core.Montage | 32 | @extends module:montage/core/core.Montage |
33 | */ | 33 | */ |
34 | var PropertyChangeBindingListener = exports.PropertyChangeBindingListener = Object.create(Montage, /** module:montage/core/event/binding.PropertyChangeBindingListener# */ { | 34 | var PropertyChangeBindingListener = exports.PropertyChangeBindingListener = Object.create(Montage, /** module:montage/core/event/binding.PropertyChangeBindingListener# */ { |
35 | 35 | ||
36 | useCapture: {value:false, writable: true}, | 36 | useCapture: {value:false, writable: true}, |
@@ -86,11 +86,11 @@ var PropertyChangeBindingListener = exports.PropertyChangeBindingListener = Obje | |||
86 | value:function (notification) { | 86 | value:function (notification) { |
87 | 87 | ||
88 | var bindingOriginTriggeredChange, | 88 | var bindingOriginTriggeredChange, |
89 | // Left | 89 | // Left |
90 | bindingOrigin = this.bindingOrigin, | 90 | bindingOrigin = this.bindingOrigin, |
91 | bindingOriginPropertyPath = this.bindingPropertyPath, | 91 | bindingOriginPropertyPath = this.bindingPropertyPath, |
92 | bindingOriginValue = bindingOrig |