-
Notifications
You must be signed in to change notification settings - Fork 1
Fix inheritance algorithm #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fix inheritance algorithm #19
Conversation
We can simplify things by using the fact that scope has a prototype inheritance.
|
How will this code handle isolated scopes? They do not inherit from $rootScope prototypically. |
|
The question is wrong.. It has nothing to do with $rootScope. $rootScope is just a way for me to They share the same prototype. https://github.com/angular/angular.js/blob/master/src/ng/rootScope.js (lines specifically line 218 I am changing Scope, not $rootScope.. so it will apply. Here is a plunker to demonstrate On Mon, Oct 12, 2015 at 9:24 AM, Sefi Ninio [email protected]
|
|
This looks very elegant (and the ability to affect scopes already created is indeed awesome!) Though I'm not sure it actually works. Your plunk demonstrates prototype inheritance - which, not surprisingly, works. However, before I merge I need to be sure that it does not break the functionality. So, help me do the merge :) |
|
The tests already exists - you wrote them. This is a change to existing functionality. Everything should work the Regarding my previous answer, I just answered the question. insulting On Tue, Oct 13, 2015 at 9:16 AM, Sefi Ninio [email protected]
|
|
I'm not sure exactly what was insulting in what I wrote. You wanna contribute? great! there's an acceptable way to do so. Yours is just rude. However, I'll review and decide on the merge. |
finally I can go to sleep, this has been haunting me.