non working layers

This commit is contained in:
Jeena 2014-08-30 16:27:05 +02:00
parent 57135f3acc
commit 222fd09f3f
7 changed files with 58 additions and 30 deletions

View file

@ -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) {