diff --git a/README.md b/README.md index 0ec682f..1f4b0ef 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ Including all libraries, for access to extra methods: // Above-mentioned will work or use this simple form require.config({ paths: { - 'require-js': 'path-to/bower_components/crypto-js/crypto-js' + 'crypto-js': 'path-to/bower_components/crypto-js/crypto-js' } }); diff --git a/bower.json b/bower.json index c09f851..040a841 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "crypto-js", - "version": "3.1.6", + "version": "3.1.7", "description": "JavaScript library of crypto standards.", "license": "MIT", "homepage": "http://github.com/brix/crypto-js", diff --git a/core.js b/core.js index 8b0128b..afff428 100644 --- a/core.js +++ b/core.js @@ -63,7 +63,7 @@ } // Create default initializer - if (!subtype.hasOwnProperty('init')) { + if (!subtype.hasOwnProperty('init') || this.init === subtype.init) { subtype.init = function () { subtype.$super.init.apply(this, arguments); }; diff --git a/crypto-js.js b/crypto-js.js index 2f535fc..7d42a14 100644 --- a/crypto-js.js +++ b/crypto-js.js @@ -63,7 +63,7 @@ } // Create default initializer - if (!subtype.hasOwnProperty('init')) { + if (!subtype.hasOwnProperty('init') || this.init === subtype.init) { subtype.init = function () { subtype.$super.init.apply(this, arguments); }; diff --git a/package.json b/package.json index 6cfc41d..0687181 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "crypto-js", - "version": "3.1.6", + "version": "3.1.7", "description": "JavaScript library of crypto standards.", "license": "MIT", "author": {