Permalink
Browse files

Splitting core class.js file into several class files, and renaming O…

…bjectMethods to Kernel; apparently all the Object methods in Ruby actually live in Kernel.
  • Loading branch information...
1 parent eeb0bcc commit f434a99641b250801a1f5e173bd555e1a55f27b7 @jcoglan jcoglan committed Oct 29, 2008
View
@@ -6,7 +6,16 @@ packer:
shrink_vars: true
private: true
packages:
- class: class
+ class:
+ directory: core
+ files:
+ - utils
+ - module
+ - kernel
+ - class
+ - circulate
+ - interface
+ - singleton
package: package
comparable: comparable
constant_scope: constant_scope
@@ -68,7 +68,7 @@
<pre class="prettyprint">
Foo.ancestors()
- // -> [JS.ObjectMethods, ModA, ModB, ModC, Foo]</pre>
+ // -> [JS.Kernel, ModA, ModB, ModC, Foo]</pre>
If you're debugging using Firebug, it will just print @Object@ or @function()@ for
each of those:
@@ -82,7 +82,7 @@
<pre class="prettyprint">
JS.StackTrace.nameOf(Foo.ancestors())
- // -> ["JS.ObjectMethods", "ModA", "ModB", "ModC", "Foo"]</pre>
+ // -> ["JS.Kernel", "ModA", "ModB", "ModC", "Foo"]</pre>
If that's not enough information, you can ask @JS.Class@ to explicitly look up methods
for you so you can see the order that inherited methods will be called in. You can
Oops, something went wrong.

0 comments on commit f434a99

Please sign in to comment.