diff options
Diffstat (limited to 'js/panels/Timeline/Layer.reel/Layer.js')
-rw-r--r-- | js/panels/Timeline/Layer.reel/Layer.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js index c9dd5328..9fb33956 100644 --- a/js/panels/Timeline/Layer.reel/Layer.js +++ b/js/panels/Timeline/Layer.reel/Layer.js | |||
@@ -60,7 +60,7 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
60 | } | 60 | } |
61 | }, | 61 | }, |
62 | _styleCounter : { | 62 | _styleCounter : { |
63 | value: 0 | 63 | value: 4 |
64 | }, | 64 | }, |
65 | styleCounter:{ | 65 | styleCounter:{ |
66 | serializable:true, | 66 | serializable:true, |
@@ -557,7 +557,7 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
557 | // Or at the end, if no rule is selected. | 557 | // Or at the end, if no rule is selected. |
558 | 558 | ||
559 | var newLength = 0, | 559 | var newLength = 0, |
560 | mySelection = 0, | 560 | // mySelection = 0, |
561 | // newStyle = LayerStyle.create(), | 561 | // newStyle = LayerStyle.create(), |
562 | newStyle = {}, | 562 | newStyle = {}, |
563 | newEvent = document.createEvent("CustomEvent"); | 563 | newEvent = document.createEvent("CustomEvent"); |
@@ -571,7 +571,7 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
571 | newEvent.layerEventType = "newStyle"; | 571 | newEvent.layerEventType = "newStyle"; |
572 | newEvent.layerID = this.layerID; | 572 | newEvent.layerID = this.layerID; |
573 | newEvent.styleIndex = this.styleCounter; | 573 | newEvent.styleIndex = this.styleCounter; |
574 | newEvent.styleID = this.layerID + "@" + this.styleCounter; | 574 | newEvent.styleID = this.layerID + "@" + this.styleCounter; // is this property needed? |
575 | 575 | ||
576 | newStyle.styleID = newEvent.styleID; | 576 | newStyle.styleID = newEvent.styleID; |
577 | newStyle.whichView = "hintable"; | 577 | newStyle.whichView = "hintable"; |
@@ -583,7 +583,7 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
583 | 583 | ||
584 | // Set up the event info and dispatch the event | 584 | // Set up the event info and dispatch the event |
585 | this.styleCounter += 1; | 585 | this.styleCounter += 1; |
586 | newEvent.styleSelection = mySelection; | 586 | // newEvent.styleSelection = mySelection; |
587 | defaultEventManager.dispatchEvent(newEvent); | 587 | defaultEventManager.dispatchEvent(newEvent); |
588 | } | 588 | } |
589 | }, | 589 | }, |