aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel/style-sheet.reel/style-sheet.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/css-panel/style-sheet.reel/style-sheet.js')
-rw-r--r--js/panels/css-panel/style-sheet.reel/style-sheet.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/js/panels/css-panel/style-sheet.reel/style-sheet.js b/js/panels/css-panel/style-sheet.reel/style-sheet.js
index daa614c2..a4fe5960 100644
--- a/js/panels/css-panel/style-sheet.reel/style-sheet.js
+++ b/js/panels/css-panel/style-sheet.reel/style-sheet.js
@@ -34,19 +34,21 @@ exports.StyleSheet = Montage.create(Component, {
34 this._name = text; 34 this._name = text;
35 } 35 }
36 }, 36 },
37 _styleSheet : { 37 _source : {
38 value: null 38 value: null
39 }, 39 },
40 styleSheet : { 40 source : {
41 get: function() { 41 get: function() {
42 return this._styleSheet; 42 return this._source;
43 }, 43 },
44 set: function(sheet) { 44 set: function(sheet) {
45 console.log('sheet being set');
45 if(sheet.href) { 46 if(sheet.href) {
46 this.name = sheet.href.substring(sheet.href.lastIndexOf('/')); 47 this.name = sheet.href.substring(sheet.href.lastIndexOf('/'));
47 } else { 48 } else {
48 this.name = 'Style Tag'; 49 this.name = 'Style Tag';
49 } 50 }
51 this._source = sheet;
50 } 52 }
51 } 53 }
52}); \ No newline at end of file 54}); \ No newline at end of file