diff options
author | Eric Guzman | 2012-02-22 23:18:12 -0800 |
---|---|---|
committer | Eric Guzman | 2012-02-22 23:18:12 -0800 |
commit | a5ee11857f923d3e49b44c0a8c480e9d0b026d5b (patch) | |
tree | 55bb6d0dc2ee710290ac5af0bb46ec66a6b2e381 /js/panels/css-panel/style-sheet.reel/style-sheet.js | |
parent | 1c528b42f9b1c9be9197921586388c3a3bdc5c17 (diff) | |
download | ninja-a5ee11857f923d3e49b44c0a8c480e9d0b026d5b.tar.gz |
CSS Panel Update
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.js | 8 |
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 |