Skip to content

Commit

Permalink
EnoFJS is now grouping all modules under enofjs namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
EnoF committed Nov 29, 2014
1 parent 2c78cf6 commit 4a30216
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 14 deletions.
10 changes: 5 additions & 5 deletions src/LinkedHashMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
//
// Author Andy Tang
// Fork me on Github: https://github.com/EnoF/EnoFJS
(function LinkedHashMapScope(clazz, undefined) {
(function LinkedHashMapScope(enofjs, undefined) {
'use strict';

// A `Node` containing a `key` `value` pair.
// The `key` supports the types integer and string.
// The `value` however can be of any type.
// The `Node` will also have, when applicable, a reference to it's neighbors in the list.
var Node = clazz(function Node() {
var Node = enofjs.clazz(function Node() {
this.private = {
key: {
getSet: null
Expand All @@ -39,7 +39,7 @@
// The value is the Node.

// var list = new LinkedHashMap();
var LinkedHashMap = clazz(function LinkedHashMap() {
var LinkedHashMap = enofjs.clazz(function LinkedHashMap() {
this.private = {
duplicateKeyError: 'key already exists in LinkedHashMap',
keyNotFoundError: 'key not found',
Expand Down Expand Up @@ -232,5 +232,5 @@
};
});

window.LinkedHashMap = LinkedHashMap;
}(window.clazz));
enofjs.LinkedHashMap = LinkedHashMap;
}(window.enofjs));
8 changes: 4 additions & 4 deletions src/Serializable.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//
// Author Andy Tang
// Fork me on Github: https://github.com/EnoF/EnoFJS
(function SerializableScope(clazz) {
(function SerializableScope(enofjs) {
'use strict';

function Serializable() {
Expand Down Expand Up @@ -90,8 +90,8 @@

}

var SerializableClass = clazz(Serializable);
var SerializableClass = enofjs.clazz(Serializable);
var InnerSerializableReference = SerializableClass;

window.SerializableClass = SerializableClass;
}(window.clazz));
enofjs.SerializableClass = SerializableClass;
}(window.enofjs));
4 changes: 3 additions & 1 deletion src/clazz.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,5 +309,7 @@
};

// Publish the module to the available source.
window.clazz = clazz;
window.enofjs = {
clazz: clazz
};
}());
2 changes: 1 addition & 1 deletion src/whereIt.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@
}


}(window.it, window.LinkedHashMap));
}(window.it, window.enofjs.LinkedHashMap));
2 changes: 1 addition & 1 deletion test/spec/ClassFactorySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// Fork me on Github: https://github.com/EnoF/EnoFJS
(function (undefined) {
'use strict';
var clazz = window.clazz;
var clazz = window.enofjs.clazz;

describe('Class factory', function classFactorySpecs() {

Expand Down
2 changes: 1 addition & 1 deletion test/spec/LinkedHashMapSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
(function LinkedHashMapSpecScope(undefined) {
'use strict';

var LinkedHashMap = window.LinkedHashMap;
var LinkedHashMap = window.enofjs.LinkedHashMap;

describe('LinkedHashMap', function LinkedHashMapSpec() {

Expand Down
2 changes: 1 addition & 1 deletion test/spec/SerializableSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
(function SerializableSpecScope() {
'use strict';

var clazz = window.clazz;
var clazz = window.enofjs.clazz;

describe('Serializable specs', function SerializableSpec() {

Expand Down

0 comments on commit 4a30216

Please sign in to comment.