This commit is contained in:
Misko Hevery
2010-04-19 14:41:36 -07:00
parent 618a2b423d
commit 9f9bdcf3d1
6 changed files with 13 additions and 13 deletions

View File

@@ -214,8 +214,8 @@ angularWidget('NG:INCLUDE', function(element){
angularWidget('NG:SWITCH', function ngSwitch(element){
var compiler = this,
watchExpr = element.attr("on"),
whenExpr = (element.attr("using") || 'equals').split(":");
whenFn = ngSwitch[whenExpr.shift()];
whenExpr = (element.attr("using") || 'equals').split(":"),
whenFn = ngSwitch[whenExpr.shift()],
changeExpr = element.attr('change') || '',
cases = [];
if (!whenFn) throw "Using expression '" + usingExpr + "' unknown.";