From 4d6a8add6e1c46f332520d0115760ff7b67610eb Mon Sep 17 00:00:00 2001 From: svtux Date: Sat, 14 Dec 2013 15:37:07 +0300 Subject: [PATCH 1/2] Fix mistake in ImagePreloader docs --- Docs/En/Declare/ImagePreloader.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Docs/En/Declare/ImagePreloader.md b/Docs/En/Declare/ImagePreloader.md index 0e5d0a2..7d96a2d 100644 --- a/Docs/En/Declare/ImagePreloader.md +++ b/Docs/En/Declare/ImagePreloader.md @@ -72,8 +72,8 @@ Checks, if image with name `name` was loaded. Returns image with name `name`, if exists, or throws `Error` otherwise - imagePreloader.exists( 'unit-traktor' ); // returns image - imagePreloader.exists( 'unit-diablo' ); // throws Error + imagePreloader.get( 'unit-traktor' ); // returns image + imagePreloader.get( 'unit-diablo' ); // throws Error ## atom.ImagePreloader.run From 57b5d2ceff55ecdb1f2aa246c743112da71294a8 Mon Sep 17 00:00:00 2001 From: svtux Date: Sat, 14 Dec 2013 15:44:20 +0300 Subject: [PATCH 2/2] Fix mistakes in Core docs --- Docs/En/Core.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Docs/En/Core.md b/Docs/En/Core.md index 8ddc83e..28c20c2 100644 --- a/Docs/En/Core.md +++ b/Docs/En/Core.md @@ -1,7 +1,7 @@ Atom Core ========= -* title: ore +* title: Core * group: core @@ -18,8 +18,8 @@ Checks if `fn` is function If `key` is not object - returns object, where `key` is single key & `value` is value of this key. Else - returns `key` - atom.core.objectize( 'test', 'foo' ); // { test: 'foo' ) - atom.core.objectize({ test: 'foo' }); // { test: 'foo' ) + atom.core.objectize( 'test', 'foo' ); // { test: 'foo' } + atom.core.objectize({ test: 'foo' }); // { test: 'foo' } Can be used, when you what to be sure, you works with object: