Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/naeramarth7/angular into …
Browse files Browse the repository at this point in the history
…naeramarth7-master
  • Loading branch information
czerwingithub committed Aug 4, 2014
2 parents 8ce4e82 + eb25452 commit b4c620f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions scalyr.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* (c) 2013 Scalyr, Inc. http://scalyr.com
* License: MIT
*/

'use strict';

// You may just depend on the 'sly' module to pull in all of the
// dependencies.
angular.module('sly', ['slyEvaluate', 'slyRepeat']);
Expand Down Expand Up @@ -714,12 +717,12 @@ defineScalyrAngularModule('slyRepeat', ['gatedScope'])
defineScalyrAngularModule('gatedScope', [])
.config(['$provide', function($provide) {
// We use a decorator to override methods in $rootScope.
$provide.decorator('$rootScope', ['$delegate', '$exceptionHandler',
$provide.decorator('$rootScope', ['$delegate', '$exceptionHandler',
function ($rootScope, $exceptionHandler) {

// Make a copy of $rootScope's original methods so that we can access
// them to invoke super methods in the ones we override.
scopePrototype = {};
var scopePrototype = {};
for (var key in $rootScope) {
if (isFunction($rootScope[key]))
scopePrototype[key] = $rootScope[key];
Expand All @@ -743,7 +746,7 @@ defineScalyrAngularModule('gatedScope', [])
// Because of how scope.$new works, the returned result
// should already have our new methods.
var result = scopePrototype.$new.call(this, isolate);

// We just have to do the work that normally a child class's
// constructor would perform -- initializing our instance vars.
result.$$gatingFunction = this.$$gatingFunction;
Expand All @@ -766,7 +769,7 @@ defineScalyrAngularModule('gatedScope', [])
var watch, value,
watchers,
length,
next, current = this, target = this,
next, current = this, target = this, last,
dirty = false;

do { // "traverse the scopes" loop
Expand Down
3 changes: 3 additions & 0 deletions scripts/includeFiles/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* (c) 2013 Scalyr, Inc. http://scalyr.com
* License: MIT
*/

'use strict';

// You may just depend on the 'sly' module to pull in all of the
// dependencies.
angular.module('sly', ['slyEvaluate', 'slyRepeat']);
8 changes: 4 additions & 4 deletions src/js/lib/gatedScope.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
defineScalyrAngularModule('gatedScope', [])
.config(['$provide', function($provide) {
// We use a decorator to override methods in $rootScope.
$provide.decorator('$rootScope', ['$delegate', '$exceptionHandler',
$provide.decorator('$rootScope', ['$delegate', '$exceptionHandler',
function ($rootScope, $exceptionHandler) {

// Make a copy of $rootScope's original methods so that we can access
// them to invoke super methods in the ones we override.
scopePrototype = {};
var scopePrototype = {};
for (var key in $rootScope) {
if (isFunction($rootScope[key]))
scopePrototype[key] = $rootScope[key];
Expand All @@ -45,7 +45,7 @@ defineScalyrAngularModule('gatedScope', [])
// Because of how scope.$new works, the returned result
// should already have our new methods.
var result = scopePrototype.$new.call(this, isolate);

// We just have to do the work that normally a child class's
// constructor would perform -- initializing our instance vars.
result.$$gatingFunction = this.$$gatingFunction;
Expand All @@ -68,7 +68,7 @@ defineScalyrAngularModule('gatedScope', [])
var watch, value,
watchers,
length,
next, current = this, target = this,
next, current = this, target = this, last,
dirty = false;

do { // "traverse the scopes" loop
Expand Down

0 comments on commit b4c620f

Please sign in to comment.