Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed whitespace

  • Loading branch information...
commit ee9dc92ad2eb47cd3b912e8837f059347f1d82f5 1 parent e77e320
Rubén Medellín authored
View
26 lib/neon.js
@@ -67,11 +67,11 @@
Neon.Module = function Module(nameOrNameSpace, name) {
var nameSpace, moduleName, factory, newModule;
-
+
nameSpace = (nameOrNameSpace && name) ? nameOrNameSpace : this;
moduleName = (nameOrNameSpace && name) ? name :
(nameOrNameSpace) ? nameOrNameSpace : 'module' + Math.random().toString();
-
+
newModule = {
moduleName : moduleName,
prototype : {},
@@ -88,7 +88,7 @@
newModule[property] = module[property];
}
}
-
+
if (module.hasOwnProperty('prototype') && module.prototype) {
for (property in module.prototype) {
if (module.prototype.hasOwnProperty(property)) {
@@ -98,17 +98,17 @@
}
this.__includedModules.push(module);
-
+
return this;
}
};
-
-
+
+
factory = function(definition){
var property;
-
+
newModule.isModule = true;
-
+
for (property in definition) {
if (definition.hasOwnProperty(property) &&
property !== 'prototype' &&
@@ -119,7 +119,7 @@
newModule[property] = definition[property];
}
}
-
+
if (definition.hasOwnProperty('prototype') && definition.prototype) {
for (property in definition.prototype) {
if (definition.prototype.hasOwnProperty(property)) {
@@ -127,19 +127,19 @@
}
}
}
-
+
nameSpace[moduleName] = newModule;
-
+
return nameSpace[moduleName];
};
-
+
factory.includes = function () {
for(var i = 0; i < arguments.length; i++){
newModule.include(arguments[i]);
}
return factory;
};
-
+
return factory;
};
View
4 lib/stdlib/bubbling_support.js
@@ -23,9 +23,9 @@ if(typeof exports !== 'undefined'){
prototype : {
dispatch : function (type, data) {
data = data || {};
-
+
var event = CustomEventSupport.prototype.dispatch.call(this, type, data);
-
+
if (event.isPropagationStopped === false && event.bubbles === true) {
if (this.parent && this.parent.dispatch) {
data.target = event.target;
View
14 lib/stdlib/node_support.js
@@ -14,11 +14,11 @@ if(typeof exports !== 'undefined'){
if(child.parent){
child.parent.removeChild(child);
}
-
+
if(!this.hasOwnProperty('children')){
this.children = [];
}
-
+
this.children.push(child);
this[child.name] = child;
child.setParent(this);
@@ -41,11 +41,11 @@ if(typeof exports !== 'undefined'){
} else {
position = this.children.indexOf(beforeChild);
this.children.splice(position, 0, child);
-
+
this[child.name] = child;
child.setParent(this);
}
-
+
return child;
},
@@ -56,11 +56,11 @@ if(typeof exports !== 'undefined'){
if (child.parent) {
child.parent.removeChild(child);
}
-
+
if (!this.hasOwnProperty('children')) {
this.children = [];
}
-
+
if (typeof position == 'undefined') {
this.children.push(child);
this[child.name] = child;
@@ -76,7 +76,7 @@ if(typeof exports !== 'undefined'){
removeChild : function (child) {
var position = this.children.indexOf(child);
-
+
if (position !== -1) {
this.children.splice(position, 1);
delete this[child.name];
Please sign in to comment.
Something went wrong with that request. Please try again.