Skip to content

Commit 142b7de

Browse files
committed
added version targets for examples
1 parent 31d0ace commit 142b7de

43 files changed

Lines changed: 172 additions & 86 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/airFriction.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ Example.airFriction = function() {
8080
};
8181
};
8282

83+
Example.airFriction.for = '>=0.14.2';
84+
8385
if (typeof module !== 'undefined') {
84-
module.exports = Example[Object.keys(Example)[0]];
85-
}
86+
module.exports = Example.airFriction;
87+
}

examples/avalanche.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ Example.avalanche = function() {
9191
};
9292
};
9393

94+
Example.avalanche.for = '>=0.14.2';
95+
9496
if (typeof module !== 'undefined') {
95-
module.exports = Example[Object.keys(Example)[0]];
96-
}
97+
module.exports = Example.avalanche;
98+
}

examples/ballPool.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ Example.ballPool = function() {
9999
};
100100
};
101101

102+
Example.ballPool.for = '>=0.14.2';
103+
102104
if (typeof module !== 'undefined') {
103-
module.exports = Example[Object.keys(Example)[0]];
104-
}
105+
module.exports = Example.ballPool;
106+
}

examples/bridge.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ Example.bridge = function() {
124124
};
125125
};
126126

127+
Example.bridge.for = '>=0.14.2';
128+
127129
if (typeof module !== 'undefined') {
128-
module.exports = Example[Object.keys(Example)[0]];
129-
}
130+
module.exports = Example.bridge;
131+
}

examples/broadphase.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ Example.broadphase = function() {
9595
};
9696
};
9797

98+
Example.broadphase.for = '>=0.14.2';
99+
98100
if (typeof module !== 'undefined') {
99-
module.exports = Example[Object.keys(Example)[0]];
100-
}
101+
module.exports = Example.broadphase;
102+
}

examples/car.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ Example.car = function() {
8989
};
9090
};
9191

92+
Example.car.for = '>=0.14.2';
93+
9294
if (typeof module !== 'undefined') {
93-
module.exports = Example[Object.keys(Example)[0]];
94-
}
95+
module.exports = Example.car;
96+
}

examples/catapult.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ Example.catapult = function() {
9696
};
9797
};
9898

99+
Example.catapult.for = '>=0.14.2';
100+
99101
if (typeof module !== 'undefined') {
100-
module.exports = Example[Object.keys(Example)[0]];
101-
}
102+
module.exports = Example.catapult;
103+
}

examples/chains.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ Example.chains = function() {
122122
};
123123
};
124124

125+
Example.chains.for = '>=0.14.2';
126+
125127
if (typeof module !== 'undefined') {
126-
module.exports = Example[Object.keys(Example)[0]];
127-
}
128+
module.exports = Example.chains;
129+
}

examples/circleStack.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ Example.circleStack = function() {
8181
};
8282
};
8383

84+
Example.circleStack.for = '>=0.14.2';
85+
8486
if (typeof module !== 'undefined') {
85-
module.exports = Example[Object.keys(Example)[0]];
86-
}
87+
module.exports = Example.circleStack;
88+
}

examples/cloth.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ Example.cloth = function() {
8484
};
8585
};
8686

87+
Example.cloth.for = '>=0.14.2';
88+
8789
if (typeof module !== 'undefined') {
88-
module.exports = Example[Object.keys(Example)[0]];
89-
}
90+
module.exports = Example.cloth;
91+
}

0 commit comments

Comments
 (0)