1
0
Fork 0
easejs/lib
Mike Gerwitz 60920f18a6
Fail intelligently if provided class in place of definition object
This is intended mainly to handle cases where the user forgets the second
argument when extending a class:

  Class.extend( Base )  // missing second argument (definition object)

* lib/ClassBuilder.js
  (exports.isClass): Move from lib/class.js.
  (exports.prototype.build): Throw error if definition object is a class.
* lib/class.js (module.exports.isClass): Reference `ClassBuilder.isClass'.
* test/Class/ExtendTest.js: Add respective test case.
2017-11-04 01:07:06 -04:00
..
ctor Error constructor `after' support 2016-07-15 00:18:42 -04:00
util [copyright] Copyright update 2015-05-28 01:01:51 -04:00
warn [copyright] Copyright update 2015-05-28 01:01:51 -04:00
ClassBuilder.js Fail intelligently if provided class in place of definition object 2017-11-04 01:07:06 -04:00
FallbackMemberBuilder.js [copyright] Copyright update 2015-05-28 01:01:51 -04:00
FallbackVisibilityObjectFactory.js [copyright] Copyright update 2015-05-28 01:01:51 -04:00
MemberBuilder.js Extracted warning handlers into their own prototypes 2014-06-11 23:42:20 -04:00
MemberBuilderValidator.js `override' implies `virtual' 2017-06-30 02:01:40 -04:00
MethodWrapperFactory.js [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00
MethodWrappers.js method.super references now ES3-compatible 2014-08-07 22:24:25 -04:00
Trait.js Correct Trait#__inst in ES3 environments 2017-11-04 00:34:00 -04:00
VisibilityObjectFactory.js No longer using __dirname in requires 2014-04-20 21:11:38 -04:00
VisibilityObjectFactoryFactory.js [copyright] Copyright update 2015-05-28 01:01:51 -04:00
class.js Fail intelligently if provided class in place of definition object 2017-11-04 01:07:06 -04:00
class_abstract.js No longer using __dirname in requires 2014-04-20 21:11:38 -04:00
class_final.js [copyright] Copyright update 2015-05-28 01:01:51 -04:00
interface.js [copyright] Copyright update for recent changes 2015 2015-10-26 22:49:28 -04:00
prop_parser.js [copyright] Copyright update for recent changes 2015 2015-10-26 22:49:28 -04:00
util.js Added Global prototype 2014-06-11 23:08:48 -04:00
version.js.in [copyright] Copyright assignment to the FSF 2014-04-09 19:05:07 -04:00
warn.js Extracted warning handlers into their own prototypes 2014-06-11 23:42:20 -04:00