Skip to content

Commit d328037

Browse files
committed
Update to latest AMD spec
1 parent 56205de commit d328037

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/links.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* Copyright (c) 2007 Kris Zyp SitePen (www.sitepen.com)
44
* Licensed under the MIT (MIT-LICENSE.txt) license.
55
*/
6-
require.def||(require.def=function(deps, factory){module.exports = factory();});
7-
require.def([], function(){
6+
define||(define=function(deps, factory){module.exports = factory();});
7+
define([], function(){
88
var exports = {};
99
exports.cacheLinks = true;
1010
exports.getLink = function(relation, instance, schema){

lib/validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ empty list will be returned. A validation error will have two properties:
1313
"property" which indicates which property had the error
1414
"message" which indicates what the error was
1515
*/
16-
require.def||(require.def=function(deps, factory){module.exports = factory();});
17-
require.def([], function(){
16+
define||(define=function(deps, factory){module.exports = factory();});
17+
define([], function(){
1818
var exports = validate;
1919
// setup primitive classes to be JSON Schema types
2020
String.type = "string";

0 commit comments

Comments
 (0)