mirror of
https://github.com/konvajs/konva.git
synced 2026-01-18 19:51:21 +08:00
created a proper utility function that handles defaults. Integrating the ntew get() method fixes a shadowBlur issue. fixed #587
This commit is contained in:
9
tests/js/unit/utilTests.js
Normal file
9
tests/js/unit/utilTests.js
Normal file
@@ -0,0 +1,9 @@
|
||||
Test.Modules.UTIL = {
|
||||
'util get()': function(containerId) {
|
||||
var get = Kinetic.Util.get;
|
||||
|
||||
test(get(1, 2) === 1, 'get() should return 1');
|
||||
test(get(0, 2) === 0, 'get() should return 0');
|
||||
test(get(undefined, {foo:'bar'}).foo === 'bar', 'get() should return bar');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user