1
0
mirror of https://github.com/videojs/video.js.git synced 2025-07-15 01:34:23 +02:00

@mmcc deprecated the options() function and removed internal uses. closes #2229

This commit is contained in:
Matthew McClure
2015-06-04 17:33:34 -07:00
committed by heff
parent dac91a7b7b
commit 42f00f2bfc
13 changed files with 55 additions and 27 deletions

View File

@ -95,7 +95,7 @@ test('should do a deep merge of child options', function(){
}
});
var mergedOptions = comp.options();
var mergedOptions = comp.options_;
var children = mergedOptions['example'];
strictEqual(children['childOne']['foo'], 'baz', 'value three levels deep overridden');
@ -132,7 +132,7 @@ test('should allows setting child options at the parent options level', function
} catch(err) {
ok(false, 'Child with `false` option was initialized');
}
equal(parent.children()[0].options()['foo'], true, 'child options set when children array is used');
equal(parent.children()[0].options_['foo'], true, 'child options set when children array is used');
// using children object
options = {
@ -154,7 +154,7 @@ test('should allows setting child options at the parent options level', function
} catch(err) {
ok(false, 'Child with `false` option was initialized');
}
equal(parent.children()[0].options()['foo'], true, 'child options set when children object is used');
equal(parent.children()[0].options_['foo'], true, 'child options set when children object is used');
});
test('should dispose of component and children', function(){