created a proper utility function that handles defaults. Integrating the ntew get() method fixes a shadowBlur issue. fixed #587

This commit is contained in:
Eric Rowell
2013-08-28 09:48:42 -07:00
parent 188bf2d8d0
commit 2f0c889b1e
3 changed files with 35 additions and 9 deletions

View 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');
}
};