aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-05-08 17:34:04 -0700
committerJose Antonio Marquez2012-05-08 17:34:04 -0700
commitef1daccfad5381badd53b9d045c2687f9b0e090d (patch)
tree1eaf6ce286968cd8fe6b16e5991597ae16084658 /js/controllers
parenta1e8540f5656e62db6a89f3af7829be6b259b7ed (diff)
parentd55b7418119c380241f6a2788ff8c84fcd44e143 (diff)
downloadninja-ef1daccfad5381badd53b9d045c2687f9b0e090d.tar.gz
Merge branch 'refs/heads/Ninja-DOM-Architecture' into Document
Diffstat (limited to 'js/controllers')
-rwxr-xr-xjs/controllers/document-controller.js4
-rwxr-xr-xjs/controllers/styles-controller.js2
2 files changed, 1 insertions, 5 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js
index ed4d33eb..17ae8cc3 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -440,10 +440,6 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
440 440
441 closeDocument: { 441 closeDocument: {
442 value: function(id) { 442 value: function(id) {
443 if(this.activeDocument.needsSave === true){
444 //if file dirty then alert user to save
445 }
446
447 var doc = this._findDocumentByUUID(id); 443 var doc = this._findDocumentByUUID(id);
448 444
449 var closeDocumentIndex = this._findIndexByUUID(id); 445 var closeDocumentIndex = this._findIndexByUUID(id);
diff --git a/js/controllers/styles-controller.js b/js/controllers/styles-controller.js
index ec4314f9..647c0870 100755
--- a/js/controllers/styles-controller.js
+++ b/js/controllers/styles-controller.js
@@ -1102,7 +1102,7 @@ var stylesController = exports.StylesController = Montage.create(Component, {
1102 ///// The dominant rule might not have the style property defined - why? 1102 ///// The dominant rule might not have the style property defined - why?
1103 ///// If no rules have the property defined, we can use the 1103 ///// If no rules have the property defined, we can use the
1104 ///// most-specific single-target rule as the dominant rule (for setting styles) 1104 ///// most-specific single-target rule as the dominant rule (for setting styles)
1105 return element.ownerDocument.defaultView.getComputedStyle(element).getPropertyValue(property); 1105 return (element.ownerDocument.defaultView ? element.ownerDocument.defaultView.getComputedStyle(element).getPropertyValue(property) : null);
1106 } 1106 }
1107 1107
1108 return value; 1108 return value;