7785 }
7786 stopped = true;
7787 for ( ; index < length ; index++ ) {
7788 animation.tweens[ index ].run( 1 ); 7789 }
7790
7791 // resolve when we played the last frame
7744 length = animation.tweens.length;
7745
7746 for ( ; index < length ; index++ ) {
7747 animation.tweens[ index ].run( percent ); 7748 }
7749
7750 deferred.notifyWith( elem, [ animation, percent, remaining ] );
4353 throw new TypeError("No method named \"" + config + "\"");
4354 }
4355
4356 data[config](this);4357 }
4358 });
4359 };
4137 throw new TypeError("No method named \"" + config + "\"");
4138 }
4139
4140 data[config]();4141 }
4142 });
4143 };
3892 throw new TypeError("No method named \"" + config + "\"");
3893 }
3894
3895 data[config]();3896 }
3897 });
3898 };
When using a module, avoid using a variable and instead use chaining with the getter syntax. It produces readable code and avoids variable collisions or leaks.
app.controller('MyController', function () {
// ...
});
angular.module('myModule').controller('MyController', function () {
// ...
});