Commit graph

46 commits

Author SHA1 Message Date
Jürg Lehni
6c9c16ad3d Update copyright information comments, and year. 2013-01-28 18:03:27 -08:00
Jürg Lehni
24b5f870bd Change Base.isObject() to also check for instances of plain Base objects, and rename it to Base.isPlainObject(). 2012-12-30 17:30:13 +01:00
Jürg Lehni
10385267f9 Remove Base.iterator() functionality, since we don't need it in Paper.js 2012-12-26 14:12:42 +01:00
Jürg Lehni
81b8a57a7c Improve Base.isObject() to only return true for real "vanilla" JS objects. 2012-12-23 16:21:18 +01:00
Jürg Lehni
734cc1cc61 Undo commit 4445376c0204cb5a2e408c64b77a5b6fa09305ba since it clashes with magnification. 2012-12-21 16:41:57 +01:00
Jürg Lehni
846744d301 Better document new Bootstrap feature. 2012-12-15 19:52:52 +01:00
Jürg Lehni
b535d9f843 Implement new Bootstrap feature that allows hiding of getter parameters to make sure beans are produced, and use it across the library. 2012-12-15 19:51:31 +01:00
Jürg Lehni
32eb10b43b Define Base.isObject(). 2012-11-14 01:31:16 -08:00
Jürg Lehni
b354e01f49 Move Base.equals() to Base extension, where it belongs. 2012-11-06 07:19:04 -08:00
Jürg Lehni
43a7e6cfcc Further improve Base.equals(). 2012-11-05 11:15:41 -08:00
Jürg Lehni
0a537f0712 Fix issues with Base.equals(). 2012-11-05 10:56:53 -08:00
Jürg Lehni
b979c3b362 Define Base.equals(), supporting Arrays and Objects.
And use it for style comparisons.
2012-11-04 09:00:40 -08:00
Jürg Lehni
9ec5ad29ef Remove Base.has() in favor of now supported Object#hasOwnProperty. 2012-11-04 08:31:14 -08:00
Jürg Lehni
a51f5af9c8 More Bootstrap.js simplifications. 2012-11-03 22:24:42 -07:00
Jürg Lehni
6ed1d67ada Modernize Bootstrap.js, introduce Base.create() and use it instead of the Constructor.dont hack for object creation without the calling of initialize. 2012-11-03 21:49:37 -07:00
Jürg Lehni
297daaf577 Update Bootstrap.js to support enumerable on instances. 2012-09-30 20:15:53 -07:00
Jürg Lehni
7c8409d7c2 Do not mess with native prototypes in Bootstrap.js 2011-12-25 16:27:46 +01:00
Jürg Lehni
e813ffd102 Only check for getters, not setters when deciding wether an object is a simple value or an accesor description. Workaround for a bug where Point is interpreted as accessor due to its #set(x, y) method. 2011-11-11 14:45:16 +01:00
Jürg Lehni
5655981f6d Clean up white spaces. 2011-07-07 16:09:02 +02:00
Jürg Lehni
c6105bace2 Fix white spaces in libs. 2011-06-23 00:21:41 +01:00
Jürg Lehni
3226147e00 Use a version of Bootstrap that always produces beans and remove all beans: true instructions. 2011-06-17 18:42:29 +01:00
Jürg Lehni
ffa79f4fd1 Clean up white spaces in comments. 2011-06-14 22:59:45 +01:00
Jürg Lehni
7c57324b3a Switch to Bootstrap.js version that is produced by compiling it with CORE_ONLY flag, and adapt Base.js so Base still gets exported. 2011-06-03 21:20:36 +01:00
Jürg Lehni
a0e120ac5c No need to call has(), since __proto__ is hidden using define(). 2011-06-03 13:57:57 +01:00
Jürg Lehni
8e1c030230 Clean up Bootstrap.js micro-lib, synchronize Paper.js sepcific changes with Bootstrap.js project and bring over comments. 2011-06-03 13:42:50 +01:00
Jürg Lehni
6854f7d026 Update comments in bootstrap.js. 2011-05-19 18:33:34 +01:00
Jürg Lehni
ed2ef0231f Have ctor functions be unnamed, so they don't show as 'ctor' prototypes in debugging. 2011-05-14 20:06:25 +01:00
Jürg Lehni
4d999d57e2 Replace all type converting string compares with ===, !==. 2011-04-28 13:23:17 +01:00
Jürg Lehni
261fa819d7 Change Bootstrap.js to only make beans if gettes has no function parameters defined, in order to avoid beans for functions that start with get but expect arguments when called. 2011-03-08 17:09:13 +00:00
Jürg Lehni
7956b50886 Use === for undefined comparisons. 2011-03-07 11:52:04 +00:00
Jürg Lehni
e1a7aff2f0 Add copyright notice and license file. 2011-03-07 00:50:44 +00:00
Jürg Lehni
f5d8f24faa Small changes. 2011-03-05 20:43:00 +00:00
Jürg Lehni
737d57db24 Define Base#each in a way so it can be used in future Bootstrap changes for Hash and Array. 2011-03-05 20:39:30 +00:00
Jürg Lehni
736b79fa29 Further optimise / clean-up Bootstrap core. 2011-03-05 20:07:58 +00:00
Jürg Lehni
8e25a951bc Move Base.capitalize() and Base.read() out of Bootstrap core into Paper.js, so normal Bootstrap libs can work with it too. 2011-03-05 14:17:17 +00:00
Jürg Lehni
352b3f0d40 More work on Bootstrap core, move Base.isArray back to Array.isArray. 2011-03-05 13:53:18 +00:00
Jürg Lehni
7b237ceedc Further clean-up Bootstrap code. 2011-03-04 22:22:22 +00:00
Jürg Lehni
c25db2377f Clean up Bootstrap core further and move Base.capitalize there. 2011-03-04 22:14:23 +00:00
Jürg Lehni
84790780e3 Change Bootstrap core so no standard prototypes are modified, not even Function.prototype. 2011-03-04 22:02:40 +00:00
Jürg Lehni
8a61599c7d More work on Bootstrap core. 2011-03-04 21:46:50 +00:00
Jürg Lehni
9bd8950e33 Make sure Base object is scoped locally. 2011-03-04 21:38:42 +00:00
Jürg Lehni
630c3431d8 Commit hand-crafted Bootstrap core, changes that need to be backported to the full Bootstrap later. 2011-03-04 21:37:58 +00:00
Jürg Lehni
101cb11973 Change Base.read to not return an object if only null is provided. 2011-03-04 19:06:05 +00:00
Jürg Lehni
bbf19840d3 Fix Base.read() to support alternative objcets returned by initialize(). 2011-03-04 17:01:15 +00:00
Jürg Lehni
c6d79f964c Generalise all read() functions in Base.read(), fix an issue in by making sure arguments passed to initialie are never larger than length, and have Color's initialize create an RGBColor, to still be able to use Color.read(). 2011-03-04 13:19:07 +00:00
Jürg Lehni
a543801598 Rename Bootstrap.js file to lowercase bootstrap.js. 2011-03-03 16:56:31 +00:00
Renamed from lib/Bootstrap.js (Browse further)