Skip to content
Permalink
Browse files

Fixed indentation & typo

  • Loading branch information
Hristo Chakarov Hristo Chakarov
Hristo Chakarov authored and Hristo Chakarov committed Sep 24, 2014
1 parent e4c3631 commit 86b89c7b82e1ce144f3f9a600f6976d1fbbb3c53
Showing with 5 additions and 5 deletions.
  1. +3 −3 Docs/Class/Class.Singleton.md
  2. +2 −2 Specs/Class/Class.Singleton.js
@@ -5,13 +5,13 @@ Extends [Class][];. Creates a class that always returns the same instance.

### Simple Example

var MyClass = new Class.Singleton({
var MyClass = new Class.Singleton({

foo : function () {
foo : function () {
alert('bar');
}

});
});

new MyClass() === new MyClass(); // returns true

@@ -56,9 +56,9 @@ describe('Class.Singleton', function(){

it( 'should properly implement methods from the prototype', function () {
expect( typeof instanceA.getOption == 'function' ).toBeTruthy();
expect( typeof instanceA.setOption == 'function' ).toBeTruthy();
expect( typeof instanceA.setOptions == 'function' ).toBeTruthy();
expect( typeof instanceA.fireEvent == 'function' ).toBeTruthy();
expect( typeof instanceA.addEvent == 'function' ).toBeTruthy();
expect( typeof instanceA.addEvent == 'function' ).toBeTruthy();
});

it( 'should take into considerations constructor parameters', function () {

0 comments on commit 86b89c7

Please sign in to comment.
You can’t perform that action at this time.