mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
non working layers
This commit is contained in:
parent
57135f3acc
commit
222fd09f3f
7 changed files with 58 additions and 30 deletions
|
|
@ -44,7 +44,6 @@ function (Nc, Exception, Layer) {
|
|||
}
|
||||
|
||||
var layer = new Layer(id, parallaxSpeed);
|
||||
|
||||
var layerIndex = behind ? referenceIndex -1 : referenceIndex;
|
||||
|
||||
this.layers.splice(layerIndex, 0, layer);
|
||||
|
|
@ -58,7 +57,7 @@ function (Nc, Exception, Layer) {
|
|||
return layer;
|
||||
}
|
||||
};
|
||||
console.warn('No such layer: ' + id);
|
||||
throw new Exception('No such layer: ' + id);
|
||||
};
|
||||
|
||||
LayerManager.prototype.delegate = function(methodName, layerId) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue