enketo-core
Advanced tools
Comparing version 4.4.2 to 4.4.3
@@ -6,2 +6,7 @@ Change Log | ||
[4.4.3] - 2015-11-24 | ||
-------------------- | ||
##### Added | ||
- Ability to obtain deprecatedID from model. | ||
[4.4.2] - 2015-11-13 | ||
@@ -8,0 +13,0 @@ -------------------- |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://enketo.org", | ||
"version": "4.4.2", | ||
"version": "4.4.3", | ||
"license": "Apache-2.0", | ||
@@ -34,7 +34,7 @@ "os": [ "darwin", "linux" ], | ||
"grunt-contrib-jshint": "0.x.x", | ||
"grunt-contrib-uglify": "0.9.x", | ||
"grunt-contrib-uglify": "0.11.x", | ||
"grunt-contrib-watch": "0.x.x", | ||
"grunt-jsbeautifier": "0.x.x", | ||
"grunt-karma": "0.12.x", | ||
"grunt-sass": "1.0.x", | ||
"grunt-sass": "1.1.x", | ||
"jasmine-core": "2.3.x", | ||
@@ -57,3 +57,3 @@ "karma": "0.13.x", | ||
"dependencies": { | ||
"bootstrap-datepicker": "1.4.x", | ||
"bootstrap-datepicker": "1.5.x", | ||
"bootstrap-slider-basic": "3.2.x", | ||
@@ -60,0 +60,0 @@ "bootstrap-timepicker": "0.2.x", |
@@ -300,2 +300,11 @@ if ( typeof exports === 'object' && typeof exports.nodeName !== 'string' && typeof define !== 'function' ) { | ||
/** | ||
* Gets the deprecated ID | ||
* | ||
* @return {string} deprecatedID | ||
*/ | ||
FormModel.prototype.getDeprecatedID = function() { | ||
return this.node( '/*/meta/deprecatedID' ).getVal()[ 0 ] || ""; | ||
}; | ||
/** | ||
* Gets the instance Name | ||
@@ -302,0 +311,0 @@ * |
@@ -324,2 +324,16 @@ var Model = require( '../../src/js/Form-model' ); | ||
describe( 'DeprecatedID value getter', function() { | ||
it( 'returns "" if deprecatedID node does not exist', function() { | ||
var model = new Model( '<model><instance><data></data></instance></model>' ); | ||
model.init(); | ||
expect( model.getDeprecatedID() ).toEqual( '' ); | ||
} ); | ||
it( 'returns value of deprecatedID node', function() { | ||
var model = new Model( '<model><instance><data><meta><deprecatedID>a</deprecatedID></data></instance></model>' ); | ||
model.init(); | ||
expect( model.getDeprecatedID() ).toEqual( 'a' ); | ||
} ); | ||
} ); | ||
describe( 'XPath Evaluator (see github.com/MartijnR/xpathjs_javarosa for comprehensive tests!)', function() { | ||
@@ -326,0 +340,0 @@ var i, t = [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5772354
53113
+ Addedbootstrap-datepicker@1.5.1(transitive)
- Removedbootstrap-datepicker@1.4.1(transitive)
Updatedbootstrap-datepicker@1.5.x