Skip to content

Commit 1bfafad

Browse files
committed
Code cleanup
1 parent 252e834 commit 1bfafad

File tree

1 file changed

+1
-46
lines changed

1 file changed

+1
-46
lines changed

test/AngularSpec.js

+1-46
Original file line numberDiff line numberDiff line change
@@ -160,54 +160,9 @@ describe('angular', function() {
160160
});
161161

162162
it('should return the object with the cloned properties, even if empty', function(){
163-
var forEach, extend, options;
164-
forEach = function(obj, iterator, context) {
165-
var key;
166-
if (obj) {
167-
if (isFunction(obj)){
168-
for (key in obj) {
169-
if (key != 'prototype' && key != 'length' && key != 'name' && obj.hasOwnProperty(key)) {
170-
iterator.call(context, obj[key], key);
171-
}
172-
}
173-
} else if (obj.forEach && obj.forEach !== forEach) {
174-
obj.forEach(iterator, context);
175-
} else if (isArrayLike(obj)) {
176-
dump('In isArrayLike.')
177-
for (key = 0; key < obj.length; key++){
178-
dump('key:' + key);
179-
dump('iterator: ' + iterator.toString());
180-
iterator.call(context, obj[key], key);
181-
}
182-
} else {
183-
for (key in obj) {
184-
if (obj.hasOwnProperty(key)) {
185-
iterator.call(context, obj[key], key);
186-
}
187-
}
188-
}
189-
}
190-
return obj;
191-
};
192-
extend = function(dst) {
193-
var h = dst.$$hashKey;
194-
forEach(arguments, function(obj){
195-
if (obj !== dst) {
196-
forEach(obj, function(value, key){
197-
dump('in iterator');
198-
dump('value: ' + value);
199-
dump('key: ' + key);
200-
dst[key] = value;
201-
});
202-
}
203-
});
204-
205-
setHashKey(dst,h);
206-
return dst;
207-
}
163+
var options;
208164
options = {};
209165
options = extend(options, {radius: 30, length: 0});
210-
dump(options);
211166
expect(options.hasOwnProperty('radius')).toBe(true);
212167
});
213168

0 commit comments

Comments
 (0)