1
0
Fork 0

Commit Graph

  • 5e999b8167 IE doesn't like using reserved words as properties - This is one thing I'll have to complement IE on. Every browser should blow up on reserved words. Mike Gerwitz 2010-12-20 08:42:05 -0500
  • 72f4dd0757 Added make targets: default, mkbuild, combine, clean Mike Gerwitz 2010-12-19 23:51:22 -0500
  • 78179c3d9d [*] Added tools/combine script for client-side (browser) distributable file - It should be noted that this won't yet work in IE6/7 (I'm not positive on IE7), since they are picky with trailing commas, and currently ease.js uses trailing commas on all array and object declarations Mike Gerwitz 2010-12-19 23:41:46 -0500
  • cd9ef1ea71 Finished refactoring to remove result_data object in class extend() function Mike Gerwitz 2010-12-19 13:54:31 -0500
  • 1ff9408885 Rearranged util.overrideMethod() arguments to match methodOverride propCopy() action (to avoid unnecessary mistakes and confusion) Mike Gerwitz 2010-12-19 00:12:41 -0500
  • 600e389b40 Refactored abstract method logic out of util.propCopy() into class extend() Mike Gerwitz 2010-12-19 00:11:39 -0500
  • 2789e5fcf9 Abstract map no longer passed to method_override() - it's only used in that method Mike Gerwitz 2010-12-18 10:57:00 -0500
  • e39cfea741 Now exporting util's array_shrink() as util.arrayShrink() Mike Gerwitz 2010-12-18 09:38:58 -0500
  • 3a2ddbb29b class.js 'extending' var is an argument and shouldn't be declared with var keyword Mike Gerwitz 2010-12-18 08:24:15 -0500
  • 2c49e9719f util.propParse() now ignores instance prototype properties Mike Gerwitz 2010-12-18 07:07:27 -0500
  • f2baf82100 Removed unneeded var Mike Gerwitz 2010-12-18 06:59:35 -0500
  • 53a62742c5 Added another subtype to test case to ensure parent property intialization of class instances is recursive Mike Gerwitz 2010-12-17 00:01:22 -0500
  • ec27eb2286 Added index to propCopy() performDefault test message Mike Gerwitz 2010-12-16 23:57:41 -0500
  • 755b79725f Corrected attach_prop_init() documentation (__propInit => __initProps) Mike Gerwitz 2010-12-16 23:56:35 -0500
  • a06d9a7204 Ensured __initProps() is treated as a reserved method and cannot be declared within Classes Mike Gerwitz 2010-12-16 23:55:56 -0500
  • a60fe9c2de Class extend() now implements propCopy's performDefault (see previous commit) Mike Gerwitz 2010-12-16 23:51:22 -0500
  • 6b6ffe0134 propCopy() parser function overrides can now invoke default functionality Mike Gerwitz 2010-12-16 23:49:52 -0500
  • 591434b82f [*] Previous commit (property cloning per instance) now applied to subtypes as well Mike Gerwitz 2010-12-16 23:37:18 -0500
  • fe853b505b [*] Properties are no longer shared between class instances - Properties were previously shared on the prototype level, acting as though they were static class properties, which can cause some nasty bugs Mike Gerwitz 2010-12-16 23:18:30 -0500
  • 6efaba7fc5 Added util.clone(); does not yet support deep cloning Mike Gerwitz 2010-12-16 23:15:42 -0500
  • a2c894b6bb Added ability to override propCopy() parser functions Mike Gerwitz 2010-12-16 21:11:07 -0500
  • 5126c71a2d Using TypeError instead of Error for property type inconsistiencies Mike Gerwitz 2010-12-10 00:00:47 -0500
  • 25dc7e031e Ensured properties cannot be overridden with methods Mike Gerwitz 2010-12-07 20:24:51 -0500
  • 459335cf62 attempt_override() within propCopy() no longer needed after previous commit Mike Gerwitz 2010-12-07 00:49:00 -0500
  • eced0a7e91 Both concrete and abstract methods now use the same callback in propParse() - Now uses an is_abstract parameter - Intended to reduce clutter and duplicate code Mike Gerwitz 2010-12-07 00:46:50 -0500
  • 52b1ef657f Resolved failing test (methods may only be overridden with methods) with propParse() 'each' Mike Gerwitz 2010-12-07 00:41:30 -0500
  • 994b8e16fa [1 failing test] Added support for 'each' in propParse() Mike Gerwitz 2010-12-07 00:39:25 -0500
  • abefb0858b [1 failing test] Crude beginning of implementation of propParse() - Looks ugly now because it is. Attempting to refactor before doing a proper implementation. Baby steps. Mike Gerwitz 2010-12-07 00:38:51 -0500
  • fd2b3ccc6d Added support for getters/setters in propParse() Mike Gerwitz 2010-12-05 20:50:13 -0500
  • 20b78ba73a Minor formatting change in propParse test Mike Gerwitz 2010-12-04 14:05:56 -0500
  • 6fd31a8e76 Added abstract method support to propParse() Mike Gerwitz 2010-12-04 14:03:26 -0500
  • 4037cc1343 Began adding util.propParse() to simplify design (supports scalar, arr and obj props and concrete methods) Mike Gerwitz 2010-12-04 13:59:06 -0500
  • 729b977088 Fix of unintended global var Mike Gerwitz 2010-12-03 07:19:16 -0500
  • 60025bd048 Added extend method to Interface Mike Gerwitz 2010-12-01 23:27:31 -0500
  • 78e1913eb9 Comment spelling correction Mike Gerwitz 2010-12-01 23:19:59 -0500
  • 611ee9ab35 Added tests to assure that intefaces can be extended from other interfaces Mike Gerwitz 2010-12-01 23:13:21 -0500
  • 0d45716a43 Added missing space to error string Mike Gerwitz 2010-12-01 23:04:22 -0500
  • 84dcca35d2 Interface prototype contains defined methods Mike Gerwitz 2010-12-01 23:01:20 -0500
  • 789c7f9b5e Moved extend-related tests to their own file for interfaces in preparation for additional extend tests Mike Gerwitz 2010-12-01 21:54:02 -0500
  • 3ebe82c0a5 Interface does not depend on Class Mike Gerwitz 2010-12-01 21:46:36 -0500
  • 287320c09a README.md now reflects abstract method definition change Mike Gerwitz 2010-12-01 21:41:32 -0500
  • c910dafb76 Interfaces permit only abstract methods Mike Gerwitz 2010-12-01 21:39:41 -0500
  • 2e930482d2 Abstract methods of subtypes overriding abstract methods must be compatiable with the previous definition Mike Gerwitz 2010-12-01 21:34:57 -0500
  • 2e8097e21e Altered abstract method declaration (using strings to represent arguments rather than a function) Mike Gerwitz 2010-12-01 21:13:51 -0500
  • 837422c46f Added util.isAbstractMethod Mike Gerwitz 2010-12-01 21:00:15 -0500
  • 54432c78fa abstractMethod() moved to util.defineAbstractMethod Mike Gerwitz 2010-12-01 20:45:27 -0500
  • b3c4b757e7 util.canFreeze removed, replaced with util.freeze() Mike Gerwitz 2010-12-01 20:41:54 -0500
  • c29bd010b0 define_secure_prop moved to util.defineSecureProp Mike Gerwitz 2010-12-01 20:38:50 -0500
  • 2edcb8a75e Only methods are permitted within interface declarations Mike Gerwitz 2010-12-01 19:38:30 -0500
  • b294f84481 Began Interface development Mike Gerwitz 2010-12-01 19:27:40 -0500
  • 1e2e73c9f0 Began moving utility methods into their own module Mike Gerwitz 2010-11-15 23:44:15 -0500
  • 0e232b4a2c Freezing class object after creation Mike Gerwitz 2010-11-15 23:22:24 -0500
  • 0b4ec19911 Case of poor copy-and-paste Mike Gerwitz 2010-11-15 18:31:10 -0500
  • ce038a871b Corrected documentation for abstractMethod Mike Gerwitz 2010-11-15 13:28:36 -0500
  • d8533d6974 Updated README.md with some of the new changes Mike Gerwitz 2010-11-15 12:11:11 -0500
  • f632b93d64 Refactored constructor creation logic for new classes into its own method and placed both functions (and their shared var) into a closure to remove the 'extending' var from the module's scope Mike Gerwitz 2010-11-15 07:07:49 -0500
  • 095683ba42 Simply moved extend() function higher up in the source file, since it will be one of the most commonly referenced functions Mike Gerwitz 2010-11-15 06:54:37 -0500
  • f9d7dca4b3 Removed old code from attach_extend() Mike Gerwitz 2010-11-14 22:07:04 -0500
  • e26d7971ce Refactored abstract method logic Mike Gerwitz 2010-11-14 22:03:55 -0500
  • 52944c4207 Grammar Mike Gerwitz 2010-11-14 21:52:02 -0500
  • 3f169d87ea Refactored method override logic into its own function Mike Gerwitz 2010-11-14 21:50:56 -0500
  • 1a9cc40c31 Refactored abstract method regeneration logic into a array_shrink() function Mike Gerwitz 2010-11-14 21:39:46 -0500
  • d4593725a4 If a definition is provided for an abstract method, the concrete implementation must be compatiable (proper number of arguments) Mike Gerwitz 2010-11-14 21:33:13 -0500
  • e0657e1c44 abstractFlag now defined using define_secure_prop() Mike Gerwitz 2010-11-14 21:18:40 -0500
  • bb631eb706 Added test to ensure constructor of abstract supertypes can be called Mike Gerwitz 2010-11-14 21:09:24 -0500
  • 0d1ba74415 Ensured abstract classes cannot be instantiated and permitted their instantiation during extending so that it may be used in the subclass's prototype Mike Gerwitz 2010-11-14 20:48:39 -0500
  • 746a9ee53d Class.isAbstract() now defined using define_secure_prop Mike Gerwitz 2010-11-14 20:31:23 -0500
  • 113e3b974f Properly implemented abstract methods list Mike Gerwitz 2010-11-14 20:30:33 -0500
  • ad4b317955 Refactored defineProperty() code into define_secure_prop() function to reduce duplicate code Mike Gerwitz 2010-11-14 01:37:12 -0500
  • d5b4477109 Abstract methods are now passed to subtypes Mike Gerwitz 2010-11-14 01:18:49 -0500
  • d3ba8a9dfe Corrected abstract class tests (.equals() = .equal()) Mike Gerwitz 2010-11-14 01:11:24 -0500
  • de979d07f0 Added isAbstract() method to class Mike Gerwitz 2010-11-14 01:10:55 -0500
  • 716db6d086 prop_copy() will now keep track of abstract methods Mike Gerwitz 2010-11-14 01:02:57 -0500
  • e783713ca7 Added a result_data argment to prop_copy() Mike Gerwitz 2010-11-14 00:56:54 -0500
  • 9dc025e6b1 Added setup_props function to prepare for adding multiple properties to generated classes Mike Gerwitz 2010-11-14 00:49:52 -0500
  • a083313538 Began implementing abstract methods Mike Gerwitz 2010-11-14 00:47:27 -0500
  • 88b1a72255 Added some beginning test cases for abstract classes (will currently fail) Mike Gerwitz 2010-11-14 00:41:18 -0500
  • 97f3c5ed5d Added tests to ensure it is possible to extend classes that were not previously created using Class.extend() Mike Gerwitz 2010-11-11 21:02:09 -0500
  • e56ecce61f Added index.js Mike Gerwitz 2010-11-11 08:50:05 -0500
  • 72189eeda1 Initial commit of README.md Mike Gerwitz 2010-11-11 00:12:59 -0500
  • 16a91b728e Methods can no longer be overridden with non-methods (anything other than a Function) Mike Gerwitz 2010-11-10 23:42:26 -0500
  • c34f40db19 Converted vars to conventional function delcarations (no difference; just preference) Mike Gerwitz 2010-11-10 23:35:57 -0500
  • 4e38898c93 Added additional documentation to prop_copy() Mike Gerwitz 2010-11-10 23:31:58 -0500
  • 60bf9deaf5 Moved class extend() export to the top of the module to make it more noticable in the mess of functions Mike Gerwitz 2010-11-10 23:30:30 -0500
  • 86bbef6f77 Added documentation for attach_extend() Mike Gerwitz 2010-11-10 23:29:28 -0500
  • 61985eea47 Added checks for ES5 features Mike Gerwitz 2010-11-10 23:28:20 -0500
  • 8422bea1d6 Added getter/setter override support Mike Gerwitz 2010-11-10 23:19:46 -0500
  • 0c963d1d00 Added access to parent prototype via parent property Mike Gerwitz 2010-11-10 22:54:24 -0500
  • 607bbf7f4c Added support for _super method - Motivation from John Reisg's "Simple Javascript Inheritance": http://ejohn.org/blog/simple-javascript-inheritance/ Mike Gerwitz 2010-11-10 22:49:27 -0500
  • 6ea6fd0bb7 Began adding parent tests (parent method call currently fails) Mike Gerwitz 2010-11-10 22:19:50 -0500
  • 26b70bcd93 Changed license to LGPL Mike Gerwitz 2010-11-10 22:07:03 -0500
  • fdf389ba2e Added inheritance instanceof assertions Mike Gerwitz 2010-11-10 21:39:09 -0500
  • 909542d19b Added support for extending classes via convenience method and tests for property inheritance Mike Gerwitz 2010-11-10 21:10:31 -0500
  • c42598c47b Class.extend() should not be part of the prototype (we're extending the class, not an object instance) Mike Gerwitz 2010-11-10 21:05:52 -0500
  • 7475fa11c6 Corrected makefile to run all tests Mike Gerwitz 2010-11-10 21:00:38 -0500
  • 0d5afa8d71 Moved object extend() assertion to its own file to prepare for extending subtypes Mike Gerwitz 2010-11-10 20:48:35 -0500
  • 6a14b86777 Minor documentation changes Mike Gerwitz 2010-11-10 20:45:33 -0500
  • e870310341 Added Makefile for testing Mike Gerwitz 2010-11-10 19:38:06 -0500
  • 9071a158a2 Added tests for constructor arguments Mike Gerwitz 2010-11-10 19:29:56 -0500
  • bebaee7b46 Moved constructor tests into their own file Mike Gerwitz 2010-11-10 19:21:53 -0500