Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

play nicely within an Ender build

  • Loading branch information...
commit f8afa2e465dac53f34de3ef93dfcc1d3e31e0dc9 1 parent 6a5d0d4
@rvagg rvagg authored
Showing with 7 additions and 3 deletions.
  1. +1 −0  ender.js
  2. +2 −1  moment.js
  3. +4 −2 package.json
View
1  ender.js
@@ -0,0 +1 @@
+$.ender({ moment: require('moment') })
View
3  moment.js
@@ -735,7 +735,8 @@
if (hasModule) {
module.exports = moment;
}
- if (typeof window !== 'undefined') {
+ /*global ender:false */
+ if (typeof window !== 'undefined' && typeof ender === 'undefined') {
window.moment = moment;
}
/*global define:false */
View
6 package.json
@@ -6,7 +6,8 @@
"author": "Tim Wood <washwithcare@gmail.com> (http://timwoodcreates.com/)",
"keywords": [
"moment",
- "date"
+ "date",
+ "ender"
],
"main": "./moment.js",
"engines": {
@@ -28,5 +29,6 @@
"jshint" : "latest",
"uglify-js" : "latest",
"nodeunit" : "latest"
- }
+ },
+ "ender": "./ender.js"
}
Please sign in to comment.
Something went wrong with that request. Please try again.