From 620ae8f53d4da25c65adb675c0b0ee187e5754fc Mon Sep 17 00:00:00 2001
From: Jose Antonio Marquez
Date: Tue, 15 May 2012 16:49:32 -0700
Subject: Adding special preview for templates
---
js/io/templates/files/animation.txt | 6 ++++++
js/io/templates/files/banner.txt | 6 ++++++
2 files changed, 12 insertions(+)
(limited to 'js/io')
diff --git a/js/io/templates/files/animation.txt b/js/io/templates/files/animation.txt
index 8a3dbd41..a850f186 100755
--- a/js/io/templates/files/animation.txt
+++ b/js/io/templates/files/animation.txt
@@ -8,6 +8,12 @@
diff --git a/js/io/templates/files/banner.txt b/js/io/templates/files/banner.txt
index f26accf6..fcfac14c 100755
--- a/js/io/templates/files/banner.txt
+++ b/js/io/templates/files/banner.txt
@@ -8,6 +8,12 @@
--
cgit v1.2.3
From f9f8fdc3000042ba5b4504d91870dc9a32ef25eb Mon Sep 17 00:00:00 2001
From: Valerio Virgillito
Date: Wed, 16 May 2012 01:00:22 -0700
Subject: Squashed master into dom-architecture
Signed-off-by: Valerio Virgillito
---
js/io/system/ninjalibrary.js | 28 ++++++++++++----------------
js/io/system/ninjalibrary.json | 4 ++--
2 files changed, 14 insertions(+), 18 deletions(-)
(limited to 'js/io')
diff --git a/js/io/system/ninjalibrary.js b/js/io/system/ninjalibrary.js
index 78bdbe53..3de5fb69 100644
--- a/js/io/system/ninjalibrary.js
+++ b/js/io/system/ninjalibrary.js
@@ -152,7 +152,8 @@ exports.NinjaLibrary = Montage.create(Object.prototype, {
//
this.chromeApi = chrome;
//
- var i, l, libs, libjson, xhr = new XMLHttpRequest(), tocopylibs = [], copied;
+// debugger;
+ var i, l, libs, libjson, xhr = new XMLHttpRequest(), tocopylibs = [];
//Getting known json list of libraries to copy to chrome
xhr.open("GET", '/js/io/system/ninjalibrary.json', false);
xhr.send();
@@ -166,23 +167,18 @@ exports.NinjaLibrary = Montage.create(Object.prototype, {
if (chromeLibs.length > 0) {
//
for (i=0; chromeLibs[i]; i++) {
- copied = false;
for (var j in libs.libraries) {
if (String(libs.libraries[j].name+libs.libraries[j].version).toLowerCase() === chromeLibs[i]) {
- copied = true;
- }
- }
- //
- if (!copied) {
- if (libs.libraries[j].file) {
- tocopylibs.push({name: String(libs.libraries[j].name+libs.libraries[j].version).toLowerCase(), path: libs.libraries[j].path, file: libs.libraries[j].file});
- } else {
- tocopylibs.push({name: String(libs.libraries[j].name+libs.libraries[j].version).toLowerCase(), path: libs.libraries[j].path});
- }
- } else {
- //TODO: Remove, currently manually removing copied libraries
- //this.chromeApi.directoryDelete(chromeLibs[i]);
- }
+ //TODO: Remove, currently manually removing copied libraries
+ // //this.chromeApi.directoryDelete(chromeLibs[i]);
+ } else {
+ if (libs.libraries[j].file) {
+ tocopylibs.push({name: String(libs.libraries[j].name+libs.libraries[j].version).toLowerCase(), path: libs.libraries[j].path, file: libs.libraries[j].file});
+ } else {
+ tocopylibs.push({name: String(libs.libraries[j].name+libs.libraries[j].version).toLowerCase(), path: libs.libraries[j].path});
+ }
+ }
+ }
}
} else {
diff --git a/js/io/system/ninjalibrary.json b/js/io/system/ninjalibrary.json
index e236f2e0..feced079 100644
--- a/js/io/system/ninjalibrary.json
+++ b/js/io/system/ninjalibrary.json
@@ -1,6 +1,6 @@
{
"libraries": [
- {"name": "Montage", "path": "/node_modules/descriptor.json", "version": "0.7.0.0"},
- {"name": "RDGE", "path": "/assets/descriptor.json", "version": "0.5.5.0"}
+ {"name": "Montage", "path": "/node_modules/descriptor.json", "version": "0.8.0.0"},
+ {"name": "RDGE", "path": "/assets/descriptor.json", "version": "0.5.6.0"}
]
}
\ No newline at end of file
--
cgit v1.2.3
From 13ae16997d4bbca14e255d5989d1c44a76eac72c Mon Sep 17 00:00:00 2001
From: Valerio Virgillito
Date: Wed, 16 May 2012 15:23:48 -0700
Subject: montage v.0.10 integration
Signed-off-by: Valerio Virgillito
---
js/io/system/ninjalibrary.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'js/io')
diff --git a/js/io/system/ninjalibrary.json b/js/io/system/ninjalibrary.json
index feced079..041e7ed7 100644
--- a/js/io/system/ninjalibrary.json
+++ b/js/io/system/ninjalibrary.json
@@ -1,6 +1,6 @@
{
"libraries": [
- {"name": "Montage", "path": "/node_modules/descriptor.json", "version": "0.8.0.0"},
+ {"name": "Montage", "path": "/node_modules/descriptor.json", "version": "0.10.0.0"},
{"name": "RDGE", "path": "/assets/descriptor.json", "version": "0.5.6.0"}
]
}
\ No newline at end of file
--
cgit v1.2.3
From fd54dabad7cbc27a0efb0957155c00d578912909 Mon Sep 17 00:00:00 2001
From: Valerio Virgillito
Date: Wed, 16 May 2012 15:32:36 -0700
Subject: changing @change to propertyChangeListener
Signed-off-by: Valerio Virgillito
---
js/io/ui/file-picker/file-input-field.reel/file-input-field.js | 2 +-
js/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js | 2 +-
js/io/ui/save-as-dialog.reel/save-as-dialog.js | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
(limited to 'js/io')
diff --git a/js/io/ui/file-picker/file-input-field.reel/file-input-field.js b/js/io/ui/file-picker/file-input-field.reel/file-input-field.js
index 9e77759f..a5fab11c 100755
--- a/js/io/ui/file-picker/file-input-field.reel/file-input-field.js
+++ b/js/io/ui/file-picker/file-input-field.reel/file-input-field.js
@@ -16,7 +16,7 @@ var FileInputField = exports.FileInputField = Montage.create(Component, {
this.findDirectory.identifier = "findDirectory";
this.findDirectory.addEventListener("click", this, false);
this.eventManager.addEventListener("pickerSelectionsDone", this.handleFileInputPickerSelectionsDone, false);
- this.addEventListener("change@newFileDirectory.value", this.handleNewFileDirectoryChange, false);
+ this.addPropertyChangeListener("newFileDirectory.value", this.handleNewFileDirectoryChange, false);
this.newFileDirectory.element.addEventListener("keyup", this, false);
}
},
diff --git a/js/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js b/js/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js
index 3ac38d02..e8a699cc 100755
--- a/js/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js
+++ b/js/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js
@@ -22,7 +22,7 @@ var NewFileLocation = exports.NewFileLocation = Montage.create(Component, {
value: function() {
this.fileInputField.selectDirectory = true;
- this.addEventListener("change@newFileName.value", this.newFileNameChange, false);
+ this.addPropertyChangeListener("newFileName.value", this.newFileNameChange, false);
this.newFileName.element.addEventListener("keyup", this, false);
this.newFileName.element.focus();
this.newFileName.element.select();
diff --git a/js/io/ui/save-as-dialog.reel/save-as-dialog.js b/js/io/ui/save-as-dialog.reel/save-as-dialog.js
index e2f50ff5..a27d9d13 100644
--- a/js/io/ui/save-as-dialog.reel/save-as-dialog.js
+++ b/js/io/ui/save-as-dialog.reel/save-as-dialog.js
@@ -57,7 +57,7 @@ var SaveAsDialog = exports.SaveAsDialog = Montage.create(Component, {
this.fileInputField.selectDirectory = true;
this.fileInputField.pickerName = "saveAsDirectoryPicker";
- this.addEventListener("change@newFileName.value", this.handleNewFileNameChange, false);
+ this.addPropertyChangeListener("newFileName.value", this.handleNewFileNameChange, false);
this.newFileName.element.addEventListener("keyup", this, false);
this.eventManager.addEventListener("newFileDirectorySet", function(evt){self.handleNewFileDirectorySet(evt);}, false);
this.okButton.addEventListener("click", function(evt){self.handleOkButtonAction(evt);}, false);
--
cgit v1.2.3