Skip to content

Commit

Permalink
Bump version to v0.4.3 and updated dist files.
Browse files Browse the repository at this point in the history
  • Loading branch information
fvanwijk committed Aug 18, 2015
1 parent 58d0649 commit 9ac3352
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mox",
"main": "dist/mox.js",
"version": "0.4.2",
"version": "0.4.3",
"authors": [
"Frank van Wijk <fvanwijk@xebia.com>"
],
Expand Down
18 changes: 9 additions & 9 deletions dist/mox.js
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ function MoxBuilder() {
* 1. a directive name: the same as with an array, but just for one directive
* 2. a directive factory object, for your own mock implementation.
* - name property is required
* - scope, priority and restrict properties are not overwritable
* - template, templateUrl, require, controller, link and compile properties are overwritable
* 3. an array of directive names (see 1) or objects (see 2)
*
* @param {...string|string[]|...Object|Object[]} directiveName directive(s) to mock
Expand All @@ -798,17 +798,17 @@ function MoxBuilder() {
* We decorate the original directive so that we can reuse the isolate bindings and other non-mockable DDO properties.
*/
$provide.decorator(mock.name + 'Directive', function ($delegate) {
angular.extend(mock, {
name: $delegate[0].name,
$$isolateBindings: $delegate[0].$$isolateBindings,
scope: $delegate[0].scope,
index: $delegate[0].index,
priority: $delegate[0].priority,
restrict: $delegate[0].restrict
angular.extend($delegate[0], {
require: mock.require || undefined,
template: mock.template || undefined,
templateUrl: mock.templateUrl || undefined,
controller: mock.controller || undefined,
compile: mock.compile || undefined,
link: mock.link || undefined
});

// All directives are unregistered and replaced with this mock
return [mock];
return [$delegate[0]];
});
});
});
Expand Down
Loading

0 comments on commit 9ac3352

Please sign in to comment.